From cfbe0fa5363aa36caa133e2387bafcb8eb3f7d56 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 13 Sep 2014 17:29:40 +0200 Subject: [PATCH] xscreensaver: add and use --- setup.sh | 4 ++++ xinitrc | 8 +++++--- xscreensaver | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 xscreensaver diff --git a/setup.sh b/setup.sh index eb7e8c2..be55e52 100755 --- a/setup.sh +++ b/setup.sh @@ -76,6 +76,10 @@ if installed X; then link XCompose ~/.XCompose fi +if installed xscreensaver; then + link xscreensaver ~/.xscreensaver +fi + if installed xpdf; then link xpdfrc ~/.xpdfrc fi diff --git a/xinitrc b/xinitrc index b433a3f..0f3aa1e 100755 --- a/xinitrc +++ b/xinitrc @@ -129,9 +129,11 @@ if installed redshift; then redshift -l 49.9:10.9 -t 5500:4500 >/dev/null & fi -# Automatically lock the screen after x minutes of inactivity if `xautolock` -# is available. Warn if locker wasn't found. -if installed xautolock; then +# Automatically lock the screen after x minutes of inactivity if +# `xscreensaver` or `xautolock` is available. Warn if no locker was found. +if installed xscreensaver; then + xscreensaver & +elif installed xautolock; then if installed "$screen_locker"; then xautolock -secure -time "$screen_lock_time" -locker "$screen_locker" & else diff --git a/xscreensaver b/xscreensaver new file mode 100644 index 0000000..61da017 --- /dev/null +++ b/xscreensaver @@ -0,0 +1,48 @@ +# XScreenSaver preferences file. + +# Copyright (C) 2014 Simon Ruderich +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . + + +# Just blank the screen, no fancy screen savers. +mode: blank + +# Blank after x time (h:mm:ss). +timeout: 0:10:00 +# Lock screen after x time. +lockTimeout: 2:00:00 +# Immediately lock when timeout is reached. +lock: True + +# No fade effects, enable/disable monitor immediately. +fade: False +unfade: False + +# Enable monitor power management. +dpmsEnabled: True +# Disable monitor immediately when locking the screen. +dpmsQuickOff: True +# Put monitor into standby (gets black), suspend (power-saving mode) and off +# after x time. +dpmsStandby: 0:10:00 +dpmsSuspend: 0:30:00 +dpmsOff: 1:00:00 + +# Display splash screen on startup for x time. +splash: True +splashDuration: 0:00:01 + +# Disable "New Login" button. +newLoginCommand: /bin/false -- 2.43.2