now sceenrecording also works

main
The_miro 2026-02-12 16:01:55 +01:00
parent a57969e26f
commit 8950e8f42a
2 changed files with 18 additions and 1 deletions

View File

@ -52,7 +52,7 @@ $vimright = l
$vimup = k $vimup = k
$vimdown = j $vimdown = j
bind = $mainMod CTRL, P, exec, bash ~/.config/scripts/togglewinbars.sh bind = $mainMod CTRL, P, exec, ~/.config/scripts/screenrec.sh
#bind = $mainMod, E, hyprexpo:expo, toggle #bind = $mainMod, E, hyprexpo:expo, toggle
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more

View File

@ -0,0 +1,17 @@
#!/bin/bash
mkdir -p ~/Videos
statecon=$( pidof wf-recorder )
if [ "$statecon" == '' ]; then
rm ~/Videos/lastrec.mp4
notify-send "recording started"
wf-recorder -g "$(slurp)" -a -f ~/Videos/lastrec.mp4
else
notify-send "recording ended"
killall -s SIGINT wf-recorder
wl-copy < ~/Videos/lastrec.mp4
fi