Reposition login greeter dynamically

Various KDE 1.-4. Improvements

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Available as/for:
Description:
This is only a suggestion!
On my system, I've a dual monitor setup through a nvidia card, with two monitors. Nvidia provides TwinView, which gives one big screen. It's different from Xinerama, which offers two screens, like :0.0 and :0.1. Now with TwinView it's one big screen (:0.0) divided by the nvcard over the two monitors. X (and KDE) "think" it's just one screen, with dimensions 2560x1024. The problem now here is that the logingreeter appears in the center of the screen (x=50%). I can solve this by manually edit the xml file of the theme, by changing the relevant x positions, and change it from 50% to 75%.
This is sometimes a not so easy job. Some xml theme files are complicated, where the x has to be changed on several places. This is then a trial and error thing, which is not necessary.
The lates xml file I'm using (KDE 4.4beta, oxygen-air) is relativly easy, I had to change the x position only on 3 places.
Now my idea is to automate this. KDM offers the possibility to make a script run before the greeter appears.
This is very possible, but the big issue is here, how does this "adjusttheme script" know what x positions to change and which not. Second, the script has to decide when to change the x positions, and when not.

I've done already a script, which uses xwininfo to determine the size of the screen. Bigger than a certain value means TwinView.

Ratings & Comments

2 Comments

DanaKil

Hi, you really should check if there is not already an open bug report in bugs.kde.org/. If not, maybe you can open a new bug here. You could try to post in KDE Brainstorm too (http://forum.kde.org/brainstorm.php)

kbo

Hi, I had the same problem. TwinView merges the two screens into a single one but somehow Xinerama can still work with the individual displays. Try activating Xinerama in your xorg.conf and compile qt with Xinerama support. I did not change any themes but have the greeter displayed centered on the left monitor. Works with KDE 4.3.1 and 4.3.3 for me.

Pling
0 Affiliates
Details
license
version 1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Various KDE 1.-4. Improvements from stefbon:

Menu improvement idea.
stefbon
last update date: 17 years ago

Score 5.0

Merge desktop items.
stefbon
last update date: 19 years ago

Score 5.0

Other Various KDE 1.-4. Improvements:

Slicker Debian Package for Woody
cirrusgr
last update date: 22 years ago

Score 5.0

Konqueror/kdesktop suggestion
PovMan
last update date: 22 years ago

Score 5.0

Biiig buttons
dbojan
last update date: 20 years ago

Score 5.0

Yet Another KControl
Frans
last update date: 21 years ago

Score 5.0

Next window and next/previos window
dbojan
last update date: 20 years ago

Score 5.0

Fantasie Toolbar
katoe
last update date: 20 years ago

Score 5.0