Added screenshot mode

This commit is contained in:
julian 2020-11-19 18:05:05 +01:00
parent ba4b779a39
commit c6e020d1b4
2 changed files with 12 additions and 0 deletions

1
i3-scrot.conf Normal file
View File

@ -0,0 +1 @@
scrot_dir=/home/julian/Pictures

View File

@ -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