Skip to content

ViliamKovac1223/slock-foreground-image-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

slock-foreground-image-patch

This patch adds foreground image to slock. Link to patch at the official suckless website

configuration options

  1. imgpath - is path to image to display, image must be xpm file
  2. imgwidth - width of the image
  3. imgheight - height of the image
  4. imgoffsetx - image offset from left side
  5. imgoffsety - image offset from top side
  6. showimgonlyatstart - if set to 1 image will be shown only at the start (before tipying), if set to 0 image will be always shown

installation

Download slock and slock-foreground-image.diff. Copy slock-foreground-image.diff to the same folder where you have slock source code.

patch -p1 < slock-foreground-image-20211210.diff

xpm image

Xpm image is bitmap image used by X Windows System. It's one of the few image formats that is supported by Xorg by default.

Convert jpg to xpm:

convert image.jpg -geometry 1920x1080 -colors 216 image.xpm

About

patch for slock to add foreground image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published