update screenshotter

This commit is contained in:
Yorick van Pelt 2024-06-08 11:02:42 +02:00
parent d6f0f86e9f
commit 9f2c79b773
Signed by: yorick
GPG key ID: D8D3CC6D951384DE
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@ fileurl="$webpath$myfile"
# copy-paste
wl-copy <<< "$fileurl"
grimshot save window "$HOME/screenshot-tmp.ppm"
grimshot save anything "$HOME/screenshot-tmp.ppm"
cwebp -preset picture -q 100 "$HOME/screenshot-tmp.ppm" -o "$HOME/public/s/$myfile"
rm "$HOME/screenshot-tmp.ppm"

View file

@ -83,6 +83,7 @@ in {
"XF86AudioPause" = "exec playerctl pause";
"XF86AudioPlay" = "exec playerctl play";
"${mod}+Shift+s" = exec bin.screenshot_public "screenshot_public";
"${mod}+Ctrl+Shift+s" = exec pkgs.sway-contrib.grimshot "grimshot --notify copy anything";
"Print" = exec bin.screenshot_public "screenshot_public";
"${mod}+Shift+t" =
"exec --no-startup-id /home/yorick/dotfiles/bin/toggle_solarized.sh";