chore: update configs

This commit is contained in:
2025-05-21 15:32:27 +02:00
parent fb086cb885
commit d15fe0104c
7 changed files with 44 additions and 49 deletions

View File

@@ -8,7 +8,7 @@ set $right l
# wf-recorder
set $screenrecorder `bash $HOME/.config/sway/scripts/toggle-screen-recorder.sh`
set $screenrecorder `bash $HOME/.config/sway/scripts/open-screen-recorder.sh`
bindsym --to-code $mod+Shift+R exec $screenrecorder
# background

View File

@@ -1,9 +1,10 @@
#!/bin/bash
main() {
local pid="$(pgrep "wf-recorder" || pgrep "slurp")"
pid="$(pgrep "wf-recorder" || pgrep "slurp")"
status=$?
if [[ $? != 0 ]]; then
if [[ $status != 0 ]]; then
GEO="$(slurp)" && wf-recorder -g "$GEO" -f "$HOME/Pictures/$(date +'recording_%Y-%m-%d-%H%M%S.mp4')"
else
pkill --signal SIGINT wf-recorder