summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-02-04 14:09:56 +0100
committerDaniel Weipert <code@drogueronin.de>2023-10-30 09:52:23 +0100
commitaac699069c97fe85581fca4950bec5c7bddc7e2d (patch)
tree308654b77739c00d5ed5131005a81f0fe241f2e6
parent4822bc417854bd73c7c5c2bc367414b479b58ee2 (diff)
[sway] fix enabling screenshot with workaround
-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 $@