mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-04-21 18:05:50 +00:00
Further setups and all-around fixes
This commit is contained in:
Executable
+14
@@ -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" "$@"
|
||||
|
||||
Reference in New Issue
Block a user