How do I set up xscreensaver to run in the background on login?
Will a simple xscreensaver & do the trick?
Asked
Active
Viewed 4,233 times
5
Gilles 'SO- stop being evil'
- 807,993
- 194
- 1,674
- 2,175
Mario Kamenjak
- 601
- 2
- 8
- 16
3 Answers
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
Oscar Andrea Merandi
- 328
- 1
- 9
-
Yeah, but should I add the '&' as well? – Mario Kamenjak Aug 24 '16 at 20:04
-
1I do not think there is need of & , try anyway – Oscar Andrea Merandi Aug 25 '16 at 08:51
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