Navigation improvements

This commit is contained in:
2026-03-31 21:52:20 +01:00
parent b27f3fa744
commit 2e83db4b69
5 changed files with 61 additions and 68 deletions

View File

@@ -0,0 +1,12 @@
#!/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"