Question, when sending windows to special workspaces, should this also work with floating and perhaps pinned windows as well ? I have a plexamp window set as floater and have it pinned but i would like to send it to special workspace to get it out of my way. I have following bound to SUPER+M to “minimise” into special and SUPER+SHIFT+M to “restore” but this doesn’t seem to function with plexamp window.
#!/bin/bash
QUEUE_FILE="$XDG_RUNTIME_DIR/hypr_minimise_queue"
CURRENT_WORKSPACE=$(hyprctl monitors -j | jq '.[] | .activeWorkspace | .name' | sed 's/"//g')
case "$1" in
"push")
ADDRESS=$(hyprctl activewindow -j | jq -r '.address')
echo "$ADDRESS" >> "$QUEUE_FILE"
hyprctl dispatch movetoworkspacesilent special:queue,address:$ADDRESS
;;
"pop")
if [[ -f "$QUEUE_FILE" && -s "$QUEUE_FILE" ]]; then
LAST_ADDRESS=$(tail -n1 "$QUEUE_FILE")
sed -i '$d' "$QUEUE_FILE"
hyprctl dispatch movetoworkspace name:$CURRENT_WORKSPACE,address:$LAST_ADDRESS
fi
;;
"clear")
rm -f "$QUEUE_FILE"
;;
esac