Files
dotfiles/.local/bin/station-move-to-workspace

13 lines
338 B
Plaintext
Raw Normal View History

2026-03-31 21:52:20 +01:00
#!/bin/bash
# Moves the active window to the relevant workspace
workspace=$1
active_window=$(hyprctl activewindow -j | jq -r ".address")
active_workspace=$(hyprctl activeworkspace -j | jq -r ".id")
new_workspace=$((($workspace*2)-($active_workspace%2)))
hyprctl dispatch movetoworkspacesilent "$new_workspace,address:$active_window"