Onelined the dynamic screenshot keybind.
This commit is contained in:
parent
226ce2a46d
commit
565b9ff5a2
|
|
@ -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
|
||||
|
|
@ -48,7 +48,7 @@ in {
|
|||
"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
|
||||
"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
|
||||
XF86MonBrightnessUp = "exec bash ${changebrightness} 1";
|
||||
XF86MonBrightnessDown = "exec bash ${changebrightness} -1";
|
||||
|
|
|
|||
Loading…
Reference in a new issue