add:screen video capture

This commit is contained in:
kokopi-dev
2025-10-28 17:49:44 +09:00
parent 5e8503b456
commit 1452d726fb
3 changed files with 6 additions and 0 deletions

View File

@@ -279,6 +279,9 @@ $mainMod = SUPER # Sets "Windows" key as main modifier
# Annotated screenshots (with Satty)
bind = $mainMod ALT, P, exec, grim -g "$(slurp)" - | satty --filename - --output-filename ~/pictures/$(date +"%Y-%m-%d_%H-%M-%S").png --early-exit --copy-command wl-copy
# Screencapture region
bind = $mainMod ALT, V, exec, bash -c 'if pgrep -x wl-screenrec > /dev/null; then pkill -INT wl-screenrec && notify-send "🎥 Recording Stopped" "Saved to ~/videos"; else GEOMETRY=$(slurp); if [ -n "$GEOMETRY" ]; then notify-send "🎥 Recording Started" "Press Super+Alt+v to stop" && wl-screenrec -g "$GEOMETRY" -f ~/videos/recording-$(date +"%Y-%m-%d_%H-%M-%S").mp4 & fi; fi'
bind = $mainMod, Return, exec, $terminal
# bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager