Reposition login greeter dynamically

Various KDE 1.-4. Improvements

Source (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
Score 50.0%
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.

DanaKil

10 years ago

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)

Report

kbo

10 years ago

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.

Report

12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1
updated Dec 09 2009
added Dec 09 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0