Added screenshot shortcut and script
This commit is contained in:
parent
3aabd84a49
commit
72dbe8ae20
|
@ -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:
|
||||
#
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue