Further setups and all-around fixes

This commit is contained in:
2025-10-23 13:49:02 +02:00
parent 490be89cb7
commit f8cc90d09b
6 changed files with 83 additions and 74 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
# Which output contains the focused node?
output=$(i3-msg -t get_tree | jq -r '.. | select(.focused? == true) | .output')
# Get its geometry from i3 directly
geometry=$(i3-msg -t get_outputs \
| jq -r --arg out "$output" '.[] | select(.name==$out and .active)
| .rect | "\(.width)x\(.height)+\(.x)+\(.y)"')
# Shoot that output
exec maim -u -g "$geometry" "$@"