pinwheel: Add waybar to PATH and start it in subshell

To avoid having the monitor managing script fail due to waybar errors
This commit is contained in:
Alexander Heldt
2024-07-12 10:10:36 +02:00
parent 2c7fa2dabf
commit 8ebb0bb4e9

View File

@@ -175,6 +175,7 @@ in
path = [
pkgs.procps # to include `pkill`
pkgs.waybar
pkgs.hyprland
pkgs.socat
pkgs.jq
@@ -196,7 +197,7 @@ in
''
update() {
# waybar is buggy and duplicates workspaces somtimes
pkill waybar && waybar & disown
$(pkill waybar; waybar & disown)
HDMI_STATUS=$(cat /sys/class/drm/card1-HDMI-A-1/status)