Skip to content

Feature: count only tiled windows #1589

@Gureum-and-Yeoreum

Description

@Gureum-and-Yeoreum

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

No one assigned

    Labels

    binThe issue will be deleted

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions