-
-
Notifications
You must be signed in to change notification settings - Fork 295
Closed
Labels
binThe issue will be deletedThe issue will be deleted
Description
Sanity check
Body
sometimes I want to see a window at the center of main display with predefined width.
with the command below, I can move the window to main display and resize, but I have to manually move the location of the window.
['move-node-to-monitor 1','flatten-workspace-tree','resize width 400']
so I tried to move the windows by counting windows on workspace but this count floating windows too.
I couldn't find a way to count only tiled windows.
node_center.sh
`#!/bin/bash
count=$(aerospace list-windows --workspace focused --count)
moves=$(( (count) / 2 ))
for ((i=0; i < count; i++)); do
aerospace move right --boundaries-action stop
done
for ((i=0; i < moves; i++)); do
aerospace move left
done
`
Metadata
Metadata
Assignees
Labels
binThe issue will be deletedThe issue will be deleted