Created
September 24, 2020 21:05
-
-
Save dangle/45c61e96dac4f43c91e2fa8121f6eddd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
herbstclient list_monitors | awk -F '[:+x\" ]' '/\[FOCUS\]/{ | |
print "ID=" $1 | |
print "WIDTH=" $3 | |
print "HEIGHT=" $4 | |
print "XOFFSET=" $5 | |
print "YOFFSET=" $6 | |
print "TAG=" $10 | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment