From aac699069c97fe85581fca4950bec5c7bddc7e2d Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 4 Feb 2023 14:09:56 +0100 Subject: [sway] fix enabling screenshot with workaround --- .config/sway/config | 7 +++---- bin/screenshot | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100755 bin/screenshot 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 $@ -- cgit v1.2.3