aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2020-03-09 13:26:21 +0100
committerKarel Kočí <karel.koci@nic.cz>2020-03-09 13:26:21 +0100
commitb0dc1eeb37f9c75b82ee1f110338508e1cafecf6 (patch)
tree4f428483c180a5b3605e8b3b0b89e95140f85208 /config
parent6fb6b40249d7c33f999a6cb666c17dbc5de54df9 (diff)
downloadmyconfigs-b0dc1eeb37f9c75b82ee1f110338508e1cafecf6.tar.gz
myconfigs-b0dc1eeb37f9c75b82ee1f110338508e1cafecf6.tar.bz2
myconfigs-b0dc1eeb37f9c75b82ee1f110338508e1cafecf6.zip
i3: get password from store without terminal
Diffstat (limited to 'config')
-rw-r--r--config/i3/config4
-rwxr-xr-xconfig/i3/scripts/pass6
2 files changed, 9 insertions, 1 deletions
diff --git a/config/i3/config b/config/i3/config
index e8bf708..aa4adec 100644
--- a/config/i3/config
+++ b/config/i3/config
@@ -17,6 +17,8 @@ bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --entry-type=name
bindsym $mod+Shift+d exec --no-startup-id surf-menu
bindsym $mod+Shift+p exec --no-startup-id surf-menu --socks
+# Passwords
+bindsym $mod+Shift+w exec --no-startup-id ~/.config/i3/scripts/pass
# Notes
bindsym $mod+Shift+n exec --no-startup-id ~/.config/i3/scripts/notes
for_window [ title="notes-terminal-window" ] floating enable sticky enable
@@ -131,7 +133,7 @@ mode "$displays" {
bindsym Return mode "default"
bindsym Escape mode "default"
}
-bindsym $mod+Shift+w mode "$displays"
+bindsym $mod+o mode "$displays"
set $xshot Xshot: (w)indow or (d)desktop
mode "$xshot" {
diff --git a/config/i3/scripts/pass b/config/i3/scripts/pass
new file mode 100755
index 0000000..aa2ad96
--- /dev/null
+++ b/config/i3/scripts/pass
@@ -0,0 +1,6 @@
+#!/bin/sh
+find ~/.password-store -type f -printf '%P\n' | \
+ sed 's/\.gpg$//' | dmenu -p 'Pass:' | \
+ while read -r psw; do
+ pass -c "$psw"
+done