now sceenrecording also works
parent
a57969e26f
commit
8950e8f42a
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue