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:
@@ -175,6 +175,7 @@ in
|
|||||||
|
|
||||||
path = [
|
path = [
|
||||||
pkgs.procps # to include `pkill`
|
pkgs.procps # to include `pkill`
|
||||||
|
pkgs.waybar
|
||||||
pkgs.hyprland
|
pkgs.hyprland
|
||||||
pkgs.socat
|
pkgs.socat
|
||||||
pkgs.jq
|
pkgs.jq
|
||||||
@@ -196,7 +197,7 @@ in
|
|||||||
''
|
''
|
||||||
update() {
|
update() {
|
||||||
# waybar is buggy and duplicates workspaces somtimes
|
# 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)
|
HDMI_STATUS=$(cat /sys/class/drm/card1-HDMI-A-1/status)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user