Creating KDM themes - A useful tip

KDM4 Themes

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

3
Score 67.1%
Description:

If you are creating KDM themes (either for KDE3 or KDE4) you may find it very tiring of restarting the Xserver everytime that you change something in the xml file and want to see how it looks.

I recently came across a very nice way of checking your KDM theme from within the current session without having to restart the Xserver. It also allows you to easily take screenshots of your theme using the ksnapshot.

The following instructions originate from the user moonrise (see link below). I upload them here as well.

http://kubuntuforums.net/forums/index.php?topic=3089403.msg135907#msg135907



Here is what you have to do:

1. Install Xephyr... Either through Adept Manager or through konsole:
"sudo apt-get install xserver-xephyr"

2. Edit "/etc/kde4/kdm/kdmrc" with kate as root.
konsole: "kdesudo kate /etc/kde4/kdm/kdmrc"


Change: [xdmcp]
Enable=false

to: [xdmcp]
Enable=true

3. Edit "/etc/kde4/kdm/Xaccess" with kate as root.
konsole: "kdesudo kate /etc/kde4/kdm/Xaccess"

Change: #* #any host can get a login window

to: * #any host can get a login window

4. Reboot your system.

5. After rebooting. Log in. Start Konsole.
In konsole: "Xephyr -query localhost -screen 800x600 :1"

if the last command gives you a black sceen, try:

"Xephyr :1 -query 127.0.0.1 -screen 800x600"

6. This should bring up a screen @ the designated resolution of 800x600. You can play with the resolution to check if your theme looks fine under different resolutions.

7. You can also use "Ksnapshot" to make a screen shot of the resulting screen that appears.

8. If you are using KDE3 change the word "kde4" to "kde3".

Note that you do not have to install-uninstall your theme everytime you make a change in the xml file. Instead, edit directly your installed xml file (for example, the one in "/usr/share/apps/kdm/themes/your_theme") and then call Xephyr. You will see that the changes have taken place.

bdheeman

11 years ago

Aye! you forget to mention a nice tool xnest(1), the same can also be achieved using Xnest server/client:

Xnest :1 -query localhost

I also second, that editing and modifying files in /usr/share/apps/kdm/themes/<whatever> is better option, though not the best.

Report

bdheeman

11 years ago

Aye! you forget to mention a nice tool xnest(1), the same can also be achieved using Xnest server/client:

Xnest :1 -query localhost

I also second, that editing and modifying files in /usr/share/apps/kdm/themes/<whatever> is better option, though not the best.

Report

nexxuz

11 years ago

This post is needed. That process is exactly what I do. Although I do wish there was an easier way still other than: edit file, tar it, uninstall old, install new, start xypher. And do that over and over and over.

Report

C

linuxfever

11 years ago

No, what you will do is edit directly the xml file from /usr/share/apps/kdm/themes/"your_theme_name" and then load Xephyr.

If you do not like what you see then continue editing the xml file in the above directory. You do NOT have to tar, untar etc.. :-)))

Report

12345678910
3
product-maker Contrast Aug 30 2013 9 excellent
product-maker nowardev Feb 22 2012 9 excellent
product-maker AWhiteKISA Aug 06 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
skilltik
Apr 12 2014
janet
Jul 11 2010
cialdo99
Jun 18 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated Jun 18 2010
added Sep 30 2008
downloads 24h
0
pageviews 24h 3
System Tags linux unix