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.

@pjtait
Copy link

pjtait commented Jan 17, 2018

Nice succinct accurate instructions, thanks!

@T-3B
Copy link

T-3B commented Jan 6, 2023

Worked like a charm, thanks!

Did not even need to restart icewm.

It's just a shame that the taskbar is only on one of the 2 screens.

@LouGit
Copy link

LouGit commented Apr 10, 2025

Yes, it would be handy if the taskbar could be duplicated (or triplicated, in my case) among all available screens.

What I find disturbing is that, using the same exact configuration, whenever I reboot my machine and connect the screens, the IceWM taskbar goes to some random (apparently) screen, it is not predictable.

I'd like to send it either to all screens, or to a particular one, but so far I haven't found a way to do it.
Has anyone some idea, to address this problem?

@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