From d2f43a3441f21bfad31bf7743c94e16cb7e08cf9 Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 12 Feb 2026 16:40:50 +0100 Subject: [PATCH] now sceenrecording also works - sadly not to clipboard, but timestamped --- desktopenvs/hyprland/scripts/screenrec.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/desktopenvs/hyprland/scripts/screenrec.sh b/desktopenvs/hyprland/scripts/screenrec.sh index 78d7263..90c99a3 100755 --- a/desktopenvs/hyprland/scripts/screenrec.sh +++ b/desktopenvs/hyprland/scripts/screenrec.sh @@ -2,16 +2,17 @@ mkdir -p ~/Videos statecon=$( pidof wf-recorder ) -if [ "$statecon" == '' ]; then - rm ~/Videos/lastrec.mp4 + +outfile="$HOME/Videos/$(date +'%Y%m%d%H%M%S').mp4" +$outfile + +if [ "$statecon" == '' ]; then notify-send "recording started" - wf-recorder -g "$(slurp)" -a -f ~/Videos/lastrec.mp4 + wf-recorder -g "$(slurp)" -f $outfile else - - notify-send "recording ended" + notify-send "recording ended - output to $outfile" killall -s SIGINT wf-recorder - wl-copy < ~/Videos/lastrec.mp4 fi