dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 1e622cbadf903b751a66d77ad785ba15bb1615db
parent 075f452ec239338c3cfa484e1e093eef12b53eb9
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 28 Jan 2018 08:00:46 -0500

Generalize screensaver settings. Add XScreenSaver config.

Diffstat:
M.Xresources | 36++++++++++++++++++++++++++++++++++++
M.local/bin/my | 9++-------
M.xsession | 2+-
3 files changed, 39 insertions(+), 8 deletions(-)

diff --git a/.Xresources b/.Xresources @@ -71,3 +71,39 @@ XDvi.wwwBrowser: my-open XDvi.expertMode: 31 XDvi.shrinkFactor: 7 XDvi.altFont: UTF8 + +! Xscreensaver +XScreenSaver.timeout: 0:05:00 +XScreenSaver.cycle: 0:00:00 +XScreenSaver.lock: true +XScreenSaver.lockTimeout: 0:00:03 +XScreenSaver.passwdTimeout: 0:00:30 +XScreenSaver.dpmsEnabled: true +XScreenSaver.dpmsStandby: 0:00:00 +XScreenSaver.dpmsSuspend: 0:00:00 +XScreenSaver.dpmsOff: 0:15:00 +XScreenSaver.dpmsQuickOff: false +XScreenSaver.verbose: true +XScreenSaver.timestamp: true +XScreenSaver.splash: false +XScreenSaver.loadURL: my-open '%s' +XScreenSaver.memoryLimit: 0 +XScreenSaver.fade: false +XScreenSaver.unfade: false +XScreenSaver.captureStderr: false +XScreenSaver.ignoreUninstalledPrograms: false +XScreenSaver.grabDesktopImages: false +XScreenSaver.grabVideoFrames: false +XScreenSaver.chooseRandomImages: false +XScreenSaver.mode: one +XScreenSaver.selected: 116 +XScreenSaver.textMode: file +XScreenSaver.textFile: +XScreenSaver.pointerPollTime: 0:00:05 +XScreenSaver.pointerHysteresis: 10 +XScreenSaver.windowCreationTimeout:0:00:30 +XScreenSaver.initialDelay: 0:00:00 +XScreenSaver.GetViewPortIsFullOfLies: false +XScreenSaver.procInterrupts: true +XScreenSaver.xinputExtensionDev: false +XScreenSaver.authWarningSlack: 20 diff --git a/.local/bin/my b/.local/bin/my @@ -57,14 +57,9 @@ case $command in for locker in light-locker cinnamon-screensaver gnome-screensaver xscreensaver do - if type $locker-command > /dev/null 2>&1 && ps -U $LOGNAME -o cmd= | grep $locker > /dev/null 2>&1 + if type $locker-command > /dev/null 2>&1 && ps -U $LOGNAME -o cmd= | grep ^[^_[:space:]]*$locker > /dev/null 2>&1 then - if [ "$locker" = "light-locker" ] - then - locker="xset dpms force off" - else - locker="$locker-command -l" - fi + locker="$locker-command -l" locker_running=1 break fi diff --git a/.xsession b/.xsession @@ -29,7 +29,7 @@ __autostart() fi } -xset dpms 0 0 300 +xset dpms 0 0 900 s 300 0 s noblank s noexpose s on [ -r "$HOME/.Xmouse" ] && xmodmap .Xmouse SHLVL=0; export SHLVL