dotfiles

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

commit 94b7fd0f48043decc859ad2136b08fa196342da7
parent d03a57977f359a291cbe7dab1d4391bfaa81fd5f
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 22 Sep 2019 06:36:56 -0400

My: Add slock to $locker options

Diffstat:
M.local/bin/my | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.local/bin/my b/.local/bin/my @@ -21,7 +21,12 @@ __mylog() __getlocker() { - for locker in light-locker cinnamon-screensaver gnome-screensaver xscreensaver + if type slock > /dev/null 2>&1 + then + echo slock + exit 0 + fi + for locker in slock light-locker cinnamon-screensaver gnome-screensaver xscreensaver do if my processes | grep $locker > /dev/null 2>&1 then @@ -99,7 +104,7 @@ case $command in __mylog "my lock" "no locker running" exit 1 fi - [ "$locker" = "light-locker" ] || $locker-command -l + [ "$locker" = "light-locker" -o "$locker"="slock" ] || $locker-command -l exec xset dpms force off ;; wallpaper)