Skip to content

Instantly share code, notes, and snippets.

@bxt
Created July 18, 2011 17:15
Show Gist options
  • Save bxt/1090081 to your computer and use it in GitHub Desktop.
Save bxt/1090081 to your computer and use it in GitHub Desktop.
IceWM Dual Screen expanding howto (very basic)

Step 1: Make sure xrandr works fine

Check your screen's names by typing:

xrandr -q

Step 2: Expand your screen

Then disable one of them: (notice VGA-1 is the name of the screen, will differ, e.g. HDMI-1 if the screen is connected via HDMI)

xrandr --output VGA-1 --off

And then expand it:

xrandr --output VGA-1 --auto --left-of DVI-I-1

Depending on which screen turned black after the first command, you can choose left/right here.

Step 3: Restart IceWM

At this point it should pretty much look like the final result, except you can't move windows to the other screen. Just right-click on the background and choose Logout... > Restart Icewm, be sure to click the arrow symbol for opening the log out menu.

And that did it for me.

Sources

I found a thinkwiki.org entry on xrandr which explains everything with nice examples, so you don't need to read manpages and figrue options.

Everything else is from a question in IceWM mailing list about dual screen.

@T-3B
Copy link

T-3B commented Apr 10, 2025

@LouGit looking at man icewm-preferences, it seems that

       XRRPrimaryScreenName=""
           Screen/output name of the primary screen.

is what you're looking for.
I don't know at all how it works (if it does), but this my best bet.

Otherwise you could probably specify the correct order of your monitors in a file here /etc/X11/xorg.conf.d/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment