Skip to content

Instantly share code, notes, and snippets.

@dangle
Created September 24, 2020 21:05
Show Gist options
  • Save dangle/45c61e96dac4f43c91e2fa8121f6eddd to your computer and use it in GitHub Desktop.
Save dangle/45c61e96dac4f43c91e2fa8121f6eddd to your computer and use it in GitHub Desktop.
#!/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