Browse Source

xprograms: add functions for locking on sleep

pull/1/head
10sr 10 years ago
parent
commit
9712983581
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      xprograms

+ 9
- 0
xprograms View File

@@ -77,6 +77,15 @@ _lxpolkit(){
(sleep 1s && /usr/lib/lxpolkit/lxpolkit) & (sleep 1s && /usr/lib/lxpolkit/lxpolkit) &
} }


_xscreensaver(){
(sleep 1s && xscreensaver -no-splash) &
}

_xsslock(){
# run _xscreensaver then this to enable locking on sleep
(sleep 3s && xss-lock -- xscreensaver-command -lock) &
}

for p in $@ for p in $@
do do
_$p _$p


Loading…
Cancel
Save