Added screenshot shortcut and script

This commit is contained in:
Felipe M 2020-12-28 16:50:37 +01:00
parent 3aabd84a49
commit 72dbe8ae20
2 changed files with 14 additions and 0 deletions

View File

@ -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:
#

7
.dotfiles/bin/screenshot.sh Executable file
View File

@ -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