2c851c7561
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>
6 lines
127 B
Bash
Executable File
6 lines
127 B
Bash
Executable File
#!/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
|