logoalt Hacker News

throw567643u8today at 4:10 AM2 repliesview on HN

Does anyone have links on how to set up multi monitor on Sway?


Replies

opantoday at 6:35 AM

I use a docked ThinkPad with the lid closed and two external monitors. Here are my config bits.

  set $laptop eDP-1
  set $landscape 'Hewlett Packard HP ZR24w CNT037144C'
  set $portrait 'Hewlett Packard HP ZR24w CNT03512JN'
  bindswitch --reload --locked lid:on output $laptop disable
  bindswitch --reload --locked lid:off output $laptop enable
  
  ### Output configuration
  output $laptop bg $HOME/pictures/wallpaper/1529004448340.jpg fill
  output $landscape bg $HOME/pictures/wallpaper/1529004448340.jpg fill
  output $portrait bg $HOME/pictures/wallpaper/portrait/DYabJ0FV4AACG69.jpg fill 
  # pos args are x coords and y coords, transform is degrees of rotation counter-clockwise
  # set $portrait as left monitor and rotate it counterclockwise
  output $portrait pos 0 1200 transform 270
singrontoday at 4:44 AM

The default config file explains some common things you might want to do. E.g. left or right side and scaling factor.