From 9a9514a18eaf235eab9ff51c1ca55e00084bb6cf Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 16 Feb 2022 15:28:10 +0100 Subject: [sway+zshrc] enable screenshot --- .config/sway/config | 9 +++++++++ .zshrc | 1 + 2 files changed, 10 insertions(+) diff --git a/.config/sway/config b/.config/sway/config index d7da3d2..ccf1455 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -121,6 +121,15 @@ mouse_warping none bindsym Shift+XF86AudioLowerVolume exec amixer set Master 1%- bindsym Shift+XF86AudioRaiseVolume exec amixer set Master 1%+ +# +# Screenshot +# + + set $print_key F13 + set $print_code 183 + bindcode $print_code exec grim + bindcode $mod+$print_code exec grim -g "$(slurp)" + # # Moving around: # diff --git a/.zshrc b/.zshrc index 140270b..426b14c 100644 --- a/.zshrc +++ b/.zshrc @@ -21,4 +21,5 @@ alias ls="exa" alias tree="exa --tree" export NNN_PLUG='n:nuke;p:addtoplaylist' +export GRIM_DEFAULT_DIR=~/Images/Screenshots -- cgit v1.2.3