diff --git a/.config/sway/config b/.config/sway/config index ce5d460..bd36903 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -165,6 +165,13 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # Move focus to the parent container bindsym $mod+a focus parent + +# +# Keybinds: +# +bindsym alt+shift+4 exec ~/.dotfiles/bin/screenshot.sh + + # # Gaps: # diff --git a/.dotfiles/bin/screenshot.sh b/.dotfiles/bin/screenshot.sh new file mode 100755 index 0000000..7642a3c --- /dev/null +++ b/.dotfiles/bin/screenshot.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +FILE_PATH=$HOME/Pictures/Screenshots/$(date -u +"%Y-%m-%d_%H-%M-%S").png + +grim -g "$(slurp)" $FILE_PATH + +cat $FILE_PATH | wl-copy