save screenshots and send notification
This commit is contained in:
@@ -22,8 +22,20 @@ riverctl map normal $mod m spawn 'riverctl exit'
|
||||
riverctl map normal $mod+Shift l spawn 'waylock -init-color 0x000000 -input-color 0x111111 -fail-color 0x220000'
|
||||
|
||||
# Screenshots
|
||||
riverctl map normal None Print spawn 'grim - | wl-copy --type image/png'
|
||||
riverctl map normal None XF86SelectiveScreenshot spawn 'grim -g "$(slurp)" - | wl-copy --type image/png'
|
||||
riverctl map normal None Print spawn '
|
||||
FILE_NAME=$(date +"%Y-%m-%d-%H-%M-%S") &&
|
||||
FILE="$HOME/$FILE_NAME.png" &&
|
||||
grim - | wl-copy --type image/png &&
|
||||
wl-paste --type image/png > "$FILE" &&
|
||||
notify-send --icon="$FILE" "$FILE_NAME" "Full screen shot saved and copied"
|
||||
'
|
||||
riverctl map normal None XF86SelectiveScreenshot spawn '
|
||||
FILE_NAME=$(date +"%Y-%m-%d-%H-%M-%S") &&
|
||||
FILE="$HOME/$FILE_NAME.png" &&
|
||||
grim -g "$(slurp)" - | wl-copy --type image/png &&
|
||||
wl-paste --type image/png > "$FILE" &&
|
||||
notify-send --icon="$FILE" "$FILE_NAME" "Screen region shot saved and copied"
|
||||
'
|
||||
|
||||
# Volume
|
||||
riverctl map normal None XF86AudioRaiseVolume spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+'
|
||||
|
||||
Reference in New Issue
Block a user