Removed duplicate declaration of screenshot path, one in sway.nix for
full screen print screen, one in dynscreenshot.sh for selected region print screen.
This commit is contained in:
parent
68e2f30a0c
commit
e83eb62626
|
|
@ -36,7 +36,7 @@ in {
|
|||
keybindings = let screenshotPath = "Pictures/Screenshots/screenshot`date +%Y%m%d%H%M%S`.png"; in lib.mkOptionDefault ({ # Screenshot keybinds
|
||||
"Print" = "exec grim - | wl-copy && wl-paste > ${screenshotPath}"; # Take screenshot of whole screen, save it, and copy it to clipboard
|
||||
"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}"; # Take screenshot of selection, save it, and copy it to clipboard
|
||||
"Ctrl+Print" = "exec bash ${dynscreenshot} ${screenshotPath}"; # Take screenshot of selection, save it, and copy it to clipboard
|
||||
} // { # Function Media Keys
|
||||
XF86MonBrightnessUp = "exec bash ${changebrightness} 1";
|
||||
XF86MonBrightnessDown = "exec bash ${changebrightness} -1";
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
shotpath="$HOME/Pictures/Screenshots/screenshot`date +%Y%m%d%H%M%S`.png"
|
||||
shotpath=$1 # "$HOME/Pictures/Screenshots/screenshot`date +%Y%m%d%H%M%S`.png"
|
||||
grim -g "$(slurp)" - | wl-copy
|
||||
wl-paste > $shotpath
|
||||
|
|
|
|||
Loading…
Reference in a new issue