dotfiles/bin/w-screenrecord

10 lines
288 B
Plaintext
Raw Permalink Normal View History

2023-08-14 19:28:08 -04:00
#!/bin/bash
SCREENCAST_FILE="$HOME/Videos/$(date +'%Y-%m-%d_%H:%M').mp4"
geometry=$(slurp -d -f "%wx%h %x,%y")
status=$(pkill -f "wf-recorder" || wf-recorder -f $SCREENCAST_FILE --codec=libx264)
notify-send "Screen recording started" -i "$HOME/.config/dunst/icons/record.png" -t 1000