Added screenshot shortcut and script
This commit is contained in:
parent
3aabd84a49
commit
72dbe8ae20
2 changed files with 14 additions and 0 deletions
|
@ -165,6 +165,13 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
||||||
|
|
||||||
# Move focus to the parent container
|
# Move focus to the parent container
|
||||||
bindsym $mod+a focus parent
|
bindsym $mod+a focus parent
|
||||||
|
|
||||||
|
#
|
||||||
|
# Keybinds:
|
||||||
|
#
|
||||||
|
bindsym alt+shift+4 exec ~/.dotfiles/bin/screenshot.sh
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Gaps:
|
# Gaps:
|
||||||
#
|
#
|
||||||
|
|
7
.dotfiles/bin/screenshot.sh
Executable file
7
.dotfiles/bin/screenshot.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue