From ff4d1af6ccfda6c5a67d041dd3e9d0f76c542f4c Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 15 Apr 2022 19:46:54 +0300 Subject: [PATCH] sway/config.d: add grimshot.conf --- conf/sway/config.d/grimshot.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 conf/sway/config.d/grimshot.conf diff --git a/conf/sway/config.d/grimshot.conf b/conf/sway/config.d/grimshot.conf new file mode 100644 index 00000000..5356109d --- /dev/null +++ b/conf/sway/config.d/grimshot.conf @@ -0,0 +1,23 @@ +# Improved from `man grimshot` + +# It will store things to XDG_SCREENSHOTS_DIR. +# Run `xdg-user-dirs-update`, edit `~/.config/user-dirs.dirs` and rerun +# Create the directory if it doesn't exist, and screenshots will start +# going there. + +# To not repeat the --notify so much +set $grimshot grimshot --notify + +# Shift+PrintScreen: Current window +bindsym Shift+Print exec $grimshot save active + +# Super+Shift+Print: Select area +bindsym $mod+Shift+Print exec $grimshot save area + +# Super+Alt+p (or PrintScreen) Current output +bindsym $mod+Mod1+p exec $grimshot save output +bindsym Print exec $grimshot save output + +# Super+Ctrl+p (or Super+Ctrl+PrintScreen) Select a window +bindsym $mod+Ctrl+p exec $grimshot save window +bindsym $mod+Ctrl+Print exec $grimshot save window