refactor(hypr): improve handling of closing waybar
This commit is contained in:
parent
baf9807480
commit
462e0a6293
@ -1,9 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
if pidof waybar >/dev/null 2>&1; then
|
kill -9 "$(pidof waybar)" >/dev/null
|
||||||
killall -9 waybar
|
|
||||||
fi
|
|
||||||
waybar &
|
waybar &
|
||||||
}
|
}
|
||||||
main
|
main
|
||||||
|
Loading…
Reference in New Issue
Block a user