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