From 71118d83095b710e6aa80ab1795ca7b7d8160efd Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 16 Oct 2023 22:26:12 +0200 Subject: [PATCH] pinwheel: Force restart `waybar` when monitor (dis)connects --- hosts/pinwheel/modules/hyprland/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/pinwheel/modules/hyprland/default.nix b/hosts/pinwheel/modules/hyprland/default.nix index dabfd4f..eb73511 100644 --- a/hosts/pinwheel/modules/hyprland/default.nix +++ b/hosts/pinwheel/modules/hyprland/default.nix @@ -149,6 +149,9 @@ script = '' update() { + # waybar is buggy and duplicates workspaces somtimes + pkill waybar && waybar & disown + HDMI_STATUS=$(cat /sys/class/drm/card0-HDMI-A-1/status) INTERNAL_WIDTH=1920