mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
feat: Moves local scripts directory. Handles systemd configurations.
This commit is contained in:
11
env/.local/scripts/toggle-waybar
vendored
Executable file
11
env/.local/scripts/toggle-waybar
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
WAYBAR_PID=$(pgrep -x waybar)
|
||||
|
||||
if [ -n "$WAYBAR_PID" ]; then
|
||||
# kill waybar process if it's running.
|
||||
kill "$WAYBAR_PID"
|
||||
else
|
||||
# start waybar in the background.
|
||||
waybar &
|
||||
fi
|
||||
Reference in New Issue
Block a user