From 4ed60e442ed9f40cea34fd993770266397d093a9 Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 13 Sep 2024 14:22:21 -0500 Subject: [PATCH] nix: update toggle.sh comments Signed-off-by: Myned --- options/custom/scripts/toggle.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/options/custom/scripts/toggle.sh b/options/custom/scripts/toggle.sh index 3ae0f6f..28e9df6 100644 --- a/options/custom/scripts/toggle.sh +++ b/options/custom/scripts/toggle.sh @@ -44,7 +44,11 @@ fi current_workspace="$(hyprctl -j clients | jq -r "first(.[] | select(.$type | test(\"$expression\")).workspace.name)")" if [[ "$current_workspace" == "$workspace" ]]; then - hyprctl dispatch movetoworkspacesilent "0,$type:$expression" # Move to current workspace first, otherwise some windows freeze + # HACK: Move to current workspace before pinning, otherwise some windows freeze + # https://github.com/hyprwm/Hyprland/issues/7609 + # https://github.com/hyprwm/Hyprland/issues/7191 + hyprctl dispatch movetoworkspacesilent "0,$type:$expression" + hyprctl dispatch pin "$type:$expression" # Pin if "$focus"; then