tweaks to desktop stuff

This commit is contained in:
Chris Cochrun 2024-02-09 09:58:31 -06:00
parent d924e65fd6
commit 543c78db6c
3 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,11 @@
#!/usr/bin/env bash
kill $(pgrep waybar) && waybar &
waybar=$(pgrep waybar)
if [[ $waybar > 0 ]]; then
kill $waybar;
echo "killing $waybar"
else
exec waybar
echo "starting waybar"
fi