diff --git a/scripts/dynscreenshot.sh b/scripts/dynscreenshot.sh deleted file mode 100644 index f17657b..0000000 --- a/scripts/dynscreenshot.sh +++ /dev/null @@ -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 diff --git a/snippets/sway.nix b/snippets/sway.nix index 1131658..ca6cf3e 100644 --- a/snippets/sway.nix +++ b/snippets/sway.nix @@ -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";