Onelined the dynamic screenshot keybind.

This commit is contained in:
vorboyvo 2024-12-05 14:06:17 -05:00
parent 226ce2a46d
commit 565b9ff5a2
2 changed files with 1 additions and 4 deletions

View file

@ -1,3 +0,0 @@
shotpath=$1 # "$HOME/Pictures/Screenshots/screenshot`date +%Y%m%d%H%M%S`.png"
grim -g "$(slurp)" - | wl-copy
wl-paste > $shotpath

View file

@ -48,7 +48,7 @@ in {
"Shift+Print" = '' "Shift+Print" = ''
exec swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - | wl-copy && wl-paste > ${screenshotPath}''; # Take screenshot of current window, save it, and copy it to clipboard exec swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - | wl-copy && wl-paste > ${screenshotPath}''; # Take screenshot of current window, save it, and copy it to clipboard
"Ctrl+Print" = "Ctrl+Print" =
"exec bash ${dynscreenshot} ${screenshotPath}"; # Take screenshot of selection, save it, and copy it to clipboard "exec grim -g \"`slurp`\" - | wl-copy && wl-paste > ${screenshotPath}";
} // rec { # Function Media Keys } // rec { # Function Media Keys
XF86MonBrightnessUp = "exec bash ${changebrightness} 1"; XF86MonBrightnessUp = "exec bash ${changebrightness} 1";
XF86MonBrightnessDown = "exec bash ${changebrightness} -1"; XF86MonBrightnessDown = "exec bash ${changebrightness} -1";