chore: improve screen recorder script
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
"return-type": "json",
|
||||
"exec": "echo '{\"class\": \"recording\"}'",
|
||||
"exec-if": "pgrep wf-recorder",
|
||||
"on-click": "$HOME/.config/waybar/scripts/close-screen-recorder.sh"
|
||||
"on-click": "$HOME/.config/sway/scripts/screen-recorder.sh"
|
||||
},
|
||||
"privacy": {
|
||||
"icon-spacing": 4,
|
||||
|
@@ -1,12 +0,0 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
main() {
|
||||
pid="$(pgrep "wf-recorder" || pgrep "slurp")"
|
||||
status=$?
|
||||
|
||||
if [[ $status == 0 ]]; then
|
||||
pkill --signal SIGINT wf-recorder
|
||||
fi
|
||||
}
|
||||
|
||||
main $@
|
Reference in New Issue
Block a user