add waybar-restart script and Mod+Shift+B keybind

scripts/waybar-restart.sh: kills waybar, waits for it to exit, then
relaunches detached via setsid. Symlinked into ~/.local/bin and bound
to Mod+Shift+B in niri.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
funman300
2026-04-30 21:59:33 -07:00
parent 1305b1cda1
commit 2c851c7561
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
pkill -x waybar
while pgrep -x waybar >/dev/null; do sleep 0.05; done
setsid -f waybar </dev/null >/dev/null 2>&1