diff options
Diffstat (limited to 'hypr')
| -rw-r--r-- | hypr/hyprland/keybinds.conf | 1 | ||||
| -rw-r--r-- | hypr/wf-recorder/record.sh | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/hypr/hyprland/keybinds.conf b/hypr/hyprland/keybinds.conf index a83f449..5803061 100644 --- a/hypr/hyprland/keybinds.conf +++ b/hypr/hyprland/keybinds.conf @@ -12,6 +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 # 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 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 |
