diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2025-10-26 23:39:33 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2025-10-26 23:39:33 +0530 |
| commit | b0d6c3079183602e5d010f958f370570d069a157 (patch) | |
| tree | 56b0a3fd602d916270d1e4473dbe12bcfae4b3cb /hypr/wf-recorder/record.sh | |
| parent | 9aa0070e137ac3e2b90284ed82f1751a601e18e1 (diff) | |
home manager symlink + vlc + screen recorder (incomplete)
Diffstat (limited to 'hypr/wf-recorder/record.sh')
| -rw-r--r-- | hypr/wf-recorder/record.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
