Fix screenshot command

This commit is contained in:
Aleksey Samoilov 2023-08-31 09:20:02 +04:00
parent f89d5a444c
commit bf215ea7f9

View file

@ -16,14 +16,14 @@ volume_bar="/usr/share/river/scripts/volume-notify.sh"
brightness_bar="/usr/share/river/scripts/brightness-notify.sh" brightness_bar="/usr/share/river/scripts/brightness-notify.sh"
# Screenshot notify # Screenshot notify
screenshot_notify="[[ $(wl-paste -l) == "image/png" ]] && notify-send "Screenshot copied to clipboard"" screenshot_notify="eval [[ $(wl-paste -l) == "image/png" ]] && notify-send 'Screenshot copied to clipboard'"
# Calculate step to change brightness # Calculate step to change brightness
brightness_step="echo $(( $(light -Mr) / 100 * 5 < 1 ? 1 : $(( $(light -Mr) / 100 * 5 )) ))" brightness_step="echo $(( $(light -Mr) / 100 * 5 < 1 ? 1 : $(( $(light -Mr) / 100 * 5 )) ))"
# Screenshot scripts # Screenshot scripts
riverctl map normal "None" Print spawn "/usr/bin/river-grimshot save screen - | swappy -f - && $screenshot_notify" riverctl map normal "None" Print spawn "/usr/bin/river-grimshot save screen - | swappy -f - && bash -c $screenshot_notify"
riverctl map normal "$mod" Print spawn "/usr/bin/river-grimshot save area - | swappy -f - && $screenshot_notify" riverctl map normal "$mod" Print spawn "/usr/bin/river-grimshot save area - | swappy -f - && bash -c $screenshot_notify"
# $mod+Shift+Return to start an instance of terminal # $mod+Shift+Return to start an instance of terminal
riverctl map normal $mod Return spawn $term riverctl map normal $mod Return spawn $term