Taking a KDM Screenshot

To take a screenshot of KDM or Ksplash, here’s a couple tricks. Didn’t find this information readily, so hopefully this helps someone out.

In ‘/usr/share/config/kdm/Xsetup’ add this line:

sleep 10 && import -window root /tmp/kdm.png &

Xsetup runs root commands before the login screen appears. This can’t be run from the command line because Xsetup adds environment variables that allows you to do this (not sure what they are). The ‘sleep 10’ second time is going to depend on how quickly your Xorg server loads. If it comes up slowly, increase that value.

For Ksplash screenshots, the only reliable way I’ve found to do this, is the ‘Test the theme’ in System Settings. First:

scrot -q 100 -d 14 Preview.png

Then start the test.

About Todd Partridge (Gently)

Good times, good people, good fun.

Posted on 2009-12-07, in Linux. Bookmark the permalink. 4 Comments.

  1. Thanks for the tip, it worked for me

  2. Doesn’t work !

  3. Here is the same… nothing happened after reboot :(

    (linux mint nadia, kde 4.10)

  4. /usr/share/config/kdm/Xsetup does not exist on my openSUSE 13.1 KDE4/KDM4 installation. /etc/X11/xdm/Xsetup does exist, but adding sleep 10 && import -window root /tmp/kdm.png & to it (on line above last exit 0) produces no screenshot. What’s missing here? Roughly what amount of clock time does sleep 10 equate to? Where in Xsetup does that line belong?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 58 other followers

%d bloggers like this: