summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/sway/config7
-rwxr-xr-xbin/screenshot3
2 files changed, 6 insertions, 4 deletions
diff --git a/.config/sway/config b/.config/sway/config
index aaf0ceb..4d8b959 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -127,10 +127,9 @@ seat * hide_cursor when-typing enable
# Screenshot
#
- set $print_key F13
- set $print_code 183
- bindcode $print_code exec grim
- bindcode $mod+$print_code exec grim -g "$(slurp)"
+ set $print_key_code 191
+ bindcode $print_key_code exec $HOME/bin/screenshot
+ bindcode $mod+$print_key_code exec $HOME/bin/screenshot -g "$(slurp)"
#
# Moving around:
diff --git a/bin/screenshot b/bin/screenshot
new file mode 100755
index 0000000..78b6d19
--- /dev/null
+++ b/bin/screenshot
@@ -0,0 +1,3 @@
+#!/bin/zsh
+
+GRIM_DEFAULT_DIR=$HOME/Images/Screenshots grim $@