diff --git a/dotfiles/river/.config/river/init-keymaps b/dotfiles/river/.config/river/init-keymaps index 4b9f46b..4072352 100755 --- a/dotfiles/river/.config/river/init-keymaps +++ b/dotfiles/river/.config/river/init-keymaps @@ -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%+'