dotfiles/bin/w-screenrecord

10 lines
288 B
Bash
Executable File

#!/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