wdisplays
wdisplays copied to clipboard
Script to export to kanshi
Thanks for this great tool!
I’ve found myself to export the display configuration after the setup in the GUI to kanshi with a command like:
swaymsg -t get_outputs | jq -r '.[] | {active, make, model, serial, mode_w: .current_mode.width, mode_h: .current_mo
de.height, mode_r: .current_mode.refresh, pos_x: .rect.x, pos_y: .rect.y, scale, transform} | "output \"\(.make) \(.model) \(.serial)\" position \(.pos_x),\(.pos_y) mode \(.mode_w)x\(.mode_h)@\(.mode_r) scale \(.scale) transform \(.transform) \(.active)"'
Feel free to add it to the README.md if you think there is value in doing that.