Navigation improvements
This commit is contained in:
12
.local/bin/station-move-to-workspace
Executable file
12
.local/bin/station-move-to-workspace
Executable 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"
|
||||
Reference in New Issue
Block a user