From 67d68a9946eb5405fa41f0843696e2ed31136d75 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Mon, 5 May 2025 15:10:07 +0200 Subject: [PATCH] Fix waybar not visible on second monitor after toggling mirroring twice --- homes/julian/features/hyprland/toggle-screen-mirroring.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/homes/julian/features/hyprland/toggle-screen-mirroring.sh b/homes/julian/features/hyprland/toggle-screen-mirroring.sh index da76a29..52de189 100644 --- a/homes/julian/features/hyprland/toggle-screen-mirroring.sh +++ b/homes/julian/features/hyprland/toggle-screen-mirroring.sh @@ -62,5 +62,6 @@ if [ "$MIRROR_SETTING" = "none" ]; then echo "mirroring..." hyprctl keyword monitor "$EXTERNAL_MONITOR, preferred, auto, 1, mirror, $INTERNAL_MONITOR" else + hyprctl keyword monitor "$EXTERNAL_MONITOR, disable" # shortly disable monitor so waybar recognizes the new monitor again # TODO: find better solution hyprctl keyword monitor "$EXTERNAL_MONITOR, preferred, auto, 1" fi