From 3d1ab1098da84bb36bb1cc9e0133df727f846071 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Fri, 8 Sep 2017 12:01:28 +0200 Subject: [PATCH] i3: add key binding for print screen --- i3/multi/config | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/i3/multi/config b/i3/multi/config index a59e8b6..401651e 100644 --- a/i3/multi/config +++ b/i3/multi/config @@ -209,9 +209,10 @@ assign [class="^URxvt$" instance="^lesportecles-code$"] workspace 3 assign [class="^URxvt$" instance="^lesportecles-rails$"] workspace 8 bindsym XF86Calculator exec urxvtc -name float -for_window [class="^URxvt$" instance="^float$"] floating toggle -for_window [class="^mpv$"] floating toggle -for_window [class="^Pinentry$"] floating toggle +for_window [class="^URxvt$" instance="^float$"] floating enable +for_window [class="^mpv$"] floating enable +for_window [class="^Pinentry$"] floating enable +for_window [class="^TeamViewer$"] floating enable bindsym XF86HomePage workspace 2 bindsym XF86Mail workspace 10 @@ -226,6 +227,8 @@ bindsym XF86AudioPlay exec --no-startup-id mpc toggle bindsym XF86AudioNext exec --no-startup-id mpc next bindsym XF86AudioPrev exec --no-startup-id mpc previous -new_window pixel 1 +bindsym Print exec --no-startup-id scrot -u -e 'mv $f ~/pictures/screenshots' '%F-%H%M%S_$wx$h_scrot.png' + +new_window pixel 2 mouse_warping none