From e08fe1b262265051a66c0c1985483adbb0bc77aa Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 11 Aug 2020 16:07:37 +0100 Subject: [PATCH] i3: bind to active window with xdotool auto-type Prevents accidentally typing into other windows when focus is moved. Allows the user to perform other tasks whilst the typing continues in the background. Signed-off-by: Joe Groocock --- i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/config b/i3/config index 64eebb1..8c6d328 100644 --- a/i3/config +++ b/i3/config @@ -153,7 +153,7 @@ bindsym $mod+$alt+space exec systemd-run-i3 -s background -n ~/.config/i bindsym $mod+numbersign exec systemd-run-i3 -s app -n i3-sensible-terminal --hold -e sh -c 'xclip -o | gpg --decrypt 2>&1' 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 -s app -n notify-send -c transfer "$(gist -PRpc)" -bindsym --release $mod+i exec systemd-run-i3 -s background -n sh -c 'sleep 0.5 && xdotool type --delay 400 "$(xclip -o -selection clipboard)"' +bindsym --release $mod+i exec systemd-run-i3 -s background -n sh -c 'sleep 0.5 && xdotool getactivewindow type --delay 250 "$(xclip -o -selection clipboard)"' # Media player controls bindsym XF86AudioPlay exec --no-startup-id playerctl -a play-pause