5

How do I set up xscreensaver to run in the background on login? Will a simple xscreensaver & do the trick?

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
Mario Kamenjak
  • 601
  • 2
  • 8
  • 16

3 Answers3

4

if I understand it you want to put xscreensaver after starting i3wm ? if you enter into the i3wm config file as the last line exec xscreensaver

2

Yes, usually just

xscreensaver &

will do what you want. But it depends on what else you have in your .xinitrc (or .xsession) file. For both of those, you need to leave some program running in the foreground to prevent the script from completing (and stopping X).

If you have a workable script, when adding your command before that final program should work.

Further reading:

Thomas Dickey
  • 75,040
  • 9
  • 171
  • 268
0

Simply adding exec --no-startup-id xscreensaver line to your i3wm config file (default ~/.i3/config) should do.

Appending & is not necessary since i3wm doesn't block on the exec commands.

Yuri
  • 419
  • 3
  • 14