diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2025-10-27 11:54:42 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2025-10-27 11:54:42 +0530 |
| commit | 4b7011aa4c2028d0a804dc19c550cb7a7985057f (patch) | |
| tree | f74374400986a7a77577d1bc86158a87bc666e4e /hypr/wf-recorder/record.sh | |
| parent | b49553a6fd6a1376b61a57f3e414099e86e513cc (diff) | |
screen recorder
Diffstat (limited to 'hypr/wf-recorder/record.sh')
| -rwxr-xr-x[-rw-r--r--] | hypr/wf-recorder/record.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hypr/wf-recorder/record.sh b/hypr/wf-recorder/record.sh index a9ef87a..1c174d5 100644..100755 --- a/hypr/wf-recorder/record.sh +++ b/hypr/wf-recorder/record.sh @@ -1,6 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash -notify-send "mkc" # Check if a recording is already in progress if pgrep -x wf-recorder > /dev/null then @@ -8,5 +7,7 @@ then 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 + mkdir -p ~/Videos + mkdir -p ~/Videos/Screencasts/ + notify-send -h string:wf-recorder:record -t 1000 "Recording Started" && wf-recorder -f ~/Videos/Screencasts/$(date '+%H%M%S-%d-%m-%Y').mp4 fi |
