1
1
Fork 0

nix: update toggle.sh comments

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-09-13 14:22:21 -05:00
parent f21920fc9f
commit 4ed60e442e
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -44,7 +44,11 @@ fi
current_workspace="$(hyprctl -j clients | jq -r "first(.[] | select(.$type | test(\"$expression\")).workspace.name)")" current_workspace="$(hyprctl -j clients | jq -r "first(.[] | select(.$type | test(\"$expression\")).workspace.name)")"
if [[ "$current_workspace" == "$workspace" ]]; then 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 hyprctl dispatch pin "$type:$expression" # Pin
if "$focus"; then if "$focus"; then