#!/bin/bash # Get active window info WINDOW_CLASS=$(hyprctl activewindow -j | jq -r '.class') WINDOW_ADDRESS=$(hyprctl activewindow -j | jq -r '.address') # First make the window floating and resize it hyprctl dispatch togglefloating address:$WINDOW_ADDRESS hyprctl dispatch resizeactive exact 60% 60% hyprctl dispatch centerwindow address:$WINDOW_ADDRESS hyprctl dispatch borderradius 12 address:$WINDOW_ADDRESS # Then move it to special workspace hyprctl dispatch movetoworkspace special # Single notification notify-send "📦 Moved to Special" "$WINDOW_CLASS" -t 1500 # Navigate workspace [ "$1" = "left" ] && hyprctl dispatch workspace e+1 [ "$1" = "right" ] && hyprctl dispatch workspace e-1