News for hackers. Stuff that matters.
Re:Show HN: Change screen layout when connecting/disconnecti... by paol on Tuesday April 26, 2016 @08:33AM (#11571273)
May I ask what desktop environment you use, and what you usually use this for?

I ask because a good DE should remember the settings pertaining to each monitor configuration (display positions of course, but also things like panels placed in secondary monitors). I've been using Plasma (KDE) for about a year and it handles this reasonably well.

Re:Show HN: Change screen layout when connecting/disconnecti... by mbrock on Tuesday April 26, 2016 @08:39AM (#11571304)
Lots of people don't use any "desktop environment." I just use ratpoison, for example.
Re:Show HN: Change screen layout when connecting/disconnecti... by paol on Tuesday April 26, 2016 @08:51AM (#11571369)
Well, call it a "window manager" then, it still should handle this. But that's just my opinion of the responsibilities of WMs/DEs/whatever you call them, and I understand that some don't.
Re:Show HN: Change screen layout when connecting/disconnecti... by creshal on Tuesday April 26, 2016 @08:58AM (#11571411)
No, handling screen layout isn't the window manager's responsibility. That's what external tools like xrandr and its various GUIs are for.
Re:Show HN: Change screen layout when connecting/disconnecti... by jlpc on Tuesday April 26, 2016 @04:48PM (#11575489)
I use dwm on my laptop, and I have 2 external monitors.

Every morning I had to make an xrandr call when I plugged them, and another one at the end of the day when I unplugged them to make my window manager aware of my screen layout.

I was tired so I automated the thing.

Re:Show HN: Change screen layout when connecting/disconnecti... by kingosticks on Tuesday April 26, 2016 @08:56AM (#11571394)
I agree that good software should do this but unfortunately multi-monitor configuration software isn't always very good. My Ubuntu 15.10 system with Unity desktop decides to move the taskbar/dock thing to the other monitor every time I turn the other monitor on in the morning. There is nothing in the Screen Display GUI that seems to allow me to stop this from happening. Out of frustration I've resorted to running the xrandr command a few times (once is sometimes not enough!) to fix it each time. This tool would at least automate the task for me and seems useful.
Re:Show HN: Change screen layout when connecting/disconnecti... by tlackemann on Tuesday April 26, 2016 @09:06AM (#11571482)
My laptop running i3 is often moved between a dock on my desk and used as a regular laptop, I have to say I've been looking to write something like this but it fell by the wayside. Very useful IMO
Re:Show HN: Change screen layout when connecting/disconnecti... by leppr on Tuesday April 26, 2016 @10:29AM (#11572140)
This issue is the very reason I use KDE Plasma, I never came across another DE that handled multi-monitors correctly.
Re:Show HN: Change screen layout when connecting/disconnecti... by cmiles74 on Tuesday April 26, 2016 @09:23AM (#11571595)
Gnome doesn't do this. Without fail, every time, it puts the dock on the wrong external display. Every. Time.
Re:Show HN: Change screen layout when connecting/disconnecti... by bechampion on Tuesday April 26, 2016 @10:09AM (#11571967)
feel your frustration , I just never take mine of the dock cause i can't be arsed anymore.