fix(waybar): fix apps working on bar

This commit is contained in:
Black_Raven committed 2026-08-07 21:48:03 +03:00
1 parent ad474292fd
commit 76f6e74305
1 file changed
+2 -1
+2 -1
View File
@@ -146,7 +146,7 @@
cp -f "${leftbarCss.collapsed}" "$css"
while true; do
pos="$($hyprctl cursorpos 2>/dev/null)" || pos=""
pos="$(${pkgs.coreutils}/bin/timeout 1 "$hyprctl" cursorpos 2>/dev/null)" || pos=""
x="''${pos%%,*}"
if [ -n "$x" ]; then
if [ "$state" != expanded ] && [ "$x" -ge 0 ] && [ "$x" -le 1 ]; then
@@ -505,6 +505,7 @@ in {
};
Service = {
ExecStart = "${lib.getExe pkgs.waybar} -c %t/leftbar.json -s %t/leftbar.css";
KillMode = "process";
Restart = "on-failure";
RestartSec = 2;
};