From 8c8834ad154034b9478fb267f490dd0420f20625 Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 18 Mar 2024 21:08:19 -0500 Subject: [PATCH] Fixes multimonitor hyprworkspace script --- user/wm/hyprland/hyprland.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 3735310..1d2ca92 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -351,7 +351,7 @@ activemonitor=$(grep -B 11 "focused: yes" "$monitors" | awk 'NR==1 {print $2}') passivemonitor=$(grep -B 6 "($workspace)" "$monitors" | awk 'NR==1 {print $2}') #activews=$(grep -A 2 "$activemonitor" "$monitors" | awk 'NR==3 {print $1}' RS='(' FS=')') - passivews=$(grep -A 6 "Monitor $passivemonitor" "$monitors" | awk 'NR==4 {print $1}' RS='(' FS=')') + passivews=$(grep -A 6 "Monitor $passivemonitor" "$monitors" | awk 'NR==3 {print $1}' RS='(' FS=')') if [[ $workspace -eq $passivews ]] && [[ $activemonitor != "$passivemonitor" ]]; then hyprctl dispatch workspace "$workspace" && hyprctl dispatch swapactiveworkspaces "$activemonitor" "$passivemonitor" && hyprctl dispatch workspace "$workspace"