From b0d6c3079183602e5d010f958f370570d069a157 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sun, 26 Oct 2025 23:39:33 +0530 Subject: home manager symlink + vlc + screen recorder (incomplete) --- hypr/wf-recorder/record.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hypr/wf-recorder/record.sh (limited to 'hypr/wf-recorder/record.sh') diff --git a/hypr/wf-recorder/record.sh b/hypr/wf-recorder/record.sh new file mode 100644 index 0000000..a9ef87a --- /dev/null +++ b/hypr/wf-recorder/record.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +notify-send "mkc" +# Check if a recording is already in progress +if pgrep -x wf-recorder > /dev/null +then + # If recording, stop it + notify-send -h string:wf-recorder:record -t 1000 "Recording Stopped" && pkill wf-recorder +else + # If not recording, start it + notify-send -h string:wf-recorder:record -t 1000 "Recording Started" && wf-recorder -a [audio_device] -f /path/to/your/video.mp4 +fi -- cgit v1.2.3