aboutsummaryrefslogtreecommitdiff
path: root/hypr/wf-recorder/record.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hypr/wf-recorder/record.sh')
-rwxr-xr-x[-rw-r--r--]hypr/wf-recorder/record.sh7
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