From c6e020d1b459858213a4b2e0b09d53f12e987a67 Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 19 Nov 2020 18:05:05 +0100 Subject: [PATCH] Added screenshot mode --- i3-scrot.conf | 1 + i3/config | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 i3-scrot.conf 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