Sfoglia il codice sorgente

xprograms: add functions for locking on sleep

pull/1/head
10sr 10 anni fa
parent
commit
9712983581
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. +9
    -0
      xprograms

+ 9
- 0
xprograms Vedi File

@@ -77,6 +77,15 @@ _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 $@
do
_$p


Caricamento…
Annulla
Salva