From 8e91156b4e061070f87b6d03d727ce3aee55f89c Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Mon, 10 Aug 2020 20:26:49 +0100 Subject: [PATCH] i3: generate secure passwords, strip newline Add -s flag to pwgen to generate cryptographically secure passwords and strip the newline when adding the value to the clipboard to prevent accidental submit actions when pasting. Signed-off-by: Joe Groocock --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index 376d335..8726c29 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -149,7 +149,7 @@ bindsym --release $mod+Print exec imgur-screenshot bindsym $mod+Shift+x exec systemd-run-i3 -n i3-sensible-terminal --class floating-term --hold -e /bin/echo "$(xprop -id $(xdotool getactivewindow))" bindsym $mod+$alt+space exec systemd-run-i3 -n ~/.config/i3/cycleaudio.py && pkill -RTMIN+10 i3blocks bindsym $mod+numbersign exec systemd-run-i3 -n i3-sensible-terminal --hold -e sh -c 'xclip -o | gpg --decrypt 2>&1' -bindsym $mod+r exec bash -c 'pwgen -nc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i' +bindsym $mod+r exec bash -c 'pwgen -snc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i -r' bindsym $mod+g exec systemd-run-i3 -n notify-send -c transfer "$(gist -PRpc)" bindsym --release $mod+i exec systemd-run-i3 -n sh -c 'sleep 0.5 && xdotool type --delay 400 "$(xclip -o -selection clipboard)"'