chore(sway): update sway config

This commit is contained in:
Andrea
2024-06-02 09:45:52 +02:00
parent 6d95da6e68
commit 7eea0dde04
2 changed files with 23 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
pid="$(pgrep "wf-recorder" || pgrep "slurp")"
status=$?
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
fi