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:
@@ -59,6 +59,7 @@ ln -sf "$(pwd)/scripts/clipboard.sh" ~/.local/bin/clipboard-picker
|
||||
ln -sf "$(pwd)/scripts/power-profile.sh" ~/.local/bin/power-profile
|
||||
ln -sf "$(pwd)/scripts/fan-profile.sh" ~/.local/bin/fan-profile
|
||||
ln -sf "$(pwd)/scripts/screenshot.sh" ~/.local/bin/screenshot
|
||||
ln -sf "$(pwd)/scripts/waybar-restart.sh" ~/.local/bin/waybar-restart
|
||||
|
||||
echo "==> Enabling systemd user services"
|
||||
mkdir -p ~/.config/systemd/user
|
||||
|
||||
@@ -52,6 +52,7 @@ binds {
|
||||
Mod+Return { spawn "alacritty"; }
|
||||
Mod+D { spawn "wofi" "--show" "drun"; }
|
||||
Mod+E { spawn "thunar"; }
|
||||
Mod+Shift+B { spawn "waybar-restart"; }
|
||||
|
||||
Mod+H { focus-column-left; }
|
||||
Mod+L { focus-column-right; }
|
||||
|
||||
Executable
+5
@@ -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
|
||||
Reference in New Issue
Block a user