diff options
| author | Justine Smithies <justine@smithies.me.uk> | 2026-04-15 21:22:51 +0100 |
|---|---|---|
| committer | Justine Smithies <justine@smithies.me.uk> | 2026-04-15 21:22:51 +0100 |
| commit | 547bcf45d17ff30193384b68b8ce545de22b76f0 (patch) | |
| tree | 37e0f258112252572d84421136ba5b9c653fa971 /.local | |
| parent | ddcb1197455493f7082ee28b237e7f4d90c0e2ea (diff) | |
Added toggle-waybar.sh script
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/toggle-waybar.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/toggle-waybar.sh b/.local/bin/toggle-waybar.sh new file mode 100755 index 0000000..312b6f6 --- /dev/null +++ b/.local/bin/toggle-waybar.sh @@ -0,0 +1,8 @@ +#!/bin/sh +if pgrep -x waybar >/dev/null 2>&1; then + # stop all exact-match waybar processes + pgrep -x waybar | xargs -r kill +else + # start waybar in background + waybar >/dev/null 2>&1 & +fi |
