diff --git a/i3-scrot.conf b/i3-scrot.conf new file mode 100644 index 0000000..78da6bb --- /dev/null +++ b/i3-scrot.conf @@ -0,0 +1 @@ +scrot_dir=/home/julian/Pictures diff --git a/i3/config b/i3/config index a4e206a..c18e95b 100644 --- a/i3/config +++ b/i3/config @@ -225,6 +225,17 @@ mode "$mode_system" { } bindsym $mod+Shift+e mode "$mode_system" +set $mode_screenshot Screenshot (w) Active window, (s) Selection +mode "$mode_screenshot" { + bindsym w exec --no-startup-id "i3-scrot -w", mode "default" + bindsym s exec --no-startup-id "flameshot gui", mode "default" + bindsym Return exec --no-startup-id "flameshot gui", mode "default" + + # back to normal: Escape + bindsym Escape mode "default" +} +bindsym $mod+Print mode "$mode_screenshot" + bindsym $mod+Ctrl+Right move workspace to output right bindsym $mod+Ctrl+Left move workspace to output right