Dienstag, 25. September 2012

Show single image with xlock

Took me a while to figure out how to simply show an image when locking with xlock:

$ xlock -mode image -bitmap image.xpm -count 1

-mode image: sets the mode to only display random sun images
-bitmap image.xpm: replace the random sun images with image.xpm (*)
-count 1: sets the amount of images that shall be shown at the screen at once to 1

* use ImageMagicks 'convert' method to convert to xpm: $ convert input.jpg output.xpm

Have fun!

Kommentare:

  1. Hi - can you elaborate on the location of image.xpm please :)

    AntwortenLöschen
  2. It's located where ever you place it. After converting your image with ImageMagick (convert or mogrify) you'll have an xpm-File that you can place wherever you want (/home/user/pictures/image.xpm). Then you'll just call xlock with:

    $ xlock -mode image -bitmap /home/user/picture/image.xpm -count 1

    Were I able to help you?

    Best
    Marc

    AntwortenLöschen