From 4b7011aa4c2028d0a804dc19c550cb7a7985057f Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Mon, 27 Oct 2025 11:54:42 +0530 Subject: screen recorder --- hypr/wf-recorder/record.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 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 old mode 100644 new mode 100755 index a9ef87a..1c174d5 --- 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 -- cgit v1.2.3