chore: update configs
This commit is contained in:
14
.config/sway/scripts/open-screen-recorder.sh
Executable file
14
.config/sway/scripts/open-screen-recorder.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
main() {
|
||||
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
|
||||
}
|
||||
|
||||
main
|
Reference in New Issue
Block a user