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 | |
| parent | b49553a6fd6a1376b61a57f3e414099e86e513cc (diff) | |
screen recorder
| -rw-r--r-- | hypr/hyprland/keybinds.conf | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | hypr/wf-recorder/record.sh | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/hypr/hyprland/keybinds.conf b/hypr/hyprland/keybinds.conf index 5803061..e7f60d4 100644 --- a/hypr/hyprland/keybinds.conf +++ b/hypr/hyprland/keybinds.conf @@ -12,7 +12,7 @@ bind = $mainMod, R, exec, $menu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = CTRL SHIFT, escape, exec, $taskManager -# bind = $mainMod SHIFT, R, exec, ~/.config/hypr/wf-recorder/record.sh +bind = $mainMod SHIFT, R, exec, ~/.config/hypr/wf-recorder/record.sh # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l 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 |
