Add multiple tool screenshotting capabilities.

This commit is contained in:
David Tomaschik
2020-10-19 17:59:46 -07:00
parent 2a71557663
commit 3c83cb1761
2 changed files with 68 additions and 11 deletions

View File

@@ -158,20 +158,15 @@ bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
# screenshots
set $scrotformat %F-%T.png
set $screendir ~/Pictures/Screenshots
# whole screen
# region/selection
bindsym --release Print exec --no-startup-id \
mkdir -p $screendir && \
/usr/bin/scrot $screendir/$scrotformat
# current window
~/bin/screenshot.sh region
# full screen
bindsym --release Shift+Print exec --no-startup-id \
mkdir -p $screendir && \
/usr/bin/scrot -u $screendir/$scrotformat
# selection
~/bin/screenshot.sh full
# single window
bindsym --release $alt+Sys_Req exec --no-startup-id \
mkdir -p $screendir && \
/usr/bin/scrot -s $screendir/$scrotformat
~/bin/screenshot.sh window
# useful utilities
exec --no-startup-id gnome-keyring-daemon --start --components=pkcs11,secrets