Sunday, March 25, 2018

Un-ugly Xscreensaver (Or At Least Try...)

The lock screen of XFCE, at least on Linux Mint is awful.
This is the first step towards making it a little easier on the eyes.
The contents of my ~/.Xresources file:

xscreensaver.splash: false

!font settings 9x15, the best fixed old school font in the Universe
xscreensaver.Dialog.headingFont:        9x15
xscreensaver.Dialog.bodyFont:           9x15
xscreensaver.Dialog.labelFont:          9x15
xscreensaver.Dialog.unameFont:          9x15
xscreensaver.Dialog.buttonFont:         9x15
xscreensaver.Dialog.dateFont:           9x15
xscreensaver.passwd.passwdFont:         9x15

!general dialog box (affects main hostname, username, password text)
xscreensaver.Dialog.foreground: #ffffff
xscreensaver.Dialog.background: #111111
xscreensaver.Dialog.topShadowColor: #111111
xscreensaver.Dialog.bottomShadowColor: #111111
xscreensaver.Dialog.Button.foreground: #666666
xscreensaver.Dialog.Button.background: #ffffff

!username/password input box and date text colour
xscreensaver.Dialog.text.foreground: #666666
xscreensaver.Dialog.text.background: #ffffff
xscreensaver.Dialog.borderWidth: 0
xscreensaver.Dialog.shadowThickness: 2

!timeout bar (background is actually determined by Dialog.text.background)
!xscreensaver.passwd.thermometer.foreground: #ff0000
!xscreensaver.passwd.thermometer.background: #000000
!xscreensaver.passwd.thermometer.width: 8

! Same color as the background so this "thermometer" dissapears...
xscreensaver.passwd.thermometer.foreground: #111111
xscreensaver.passwd.thermometer.background: #111111
xscreensaver.passwd.thermometer.width: 2

!datestamp format–see the strftime(3) manual page for details
xscreensaver.dateFormat: %I:%M%P %a %b %d, %Y

To test this, I'm currently doing this, after making changes to the file, on a Terminal:

killall xscreensaver

Then start it via Demo:


Then see the changes by:


Labels: , , , , , , ,


Anonymous Anonymous said...

Hey thanks for this. I'd like to get rid of the image too but I'm guessing that's not easy. In any case, your changes are much easier on the eyes. Cheers

9:56 AM  
Blogger hictio said...

I'm glad you found that useful somehow :)

10:37 PM  

Post a Comment

<< Home