[Bin] friendship with xidlehook ended xss-lock is my new best friend

This commit is contained in:
Lucien Cartier-Tilet 2021-03-10 13:07:53 +01:00
parent 1a97dc0884
commit 7abf902e1d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -29,17 +29,16 @@ of said command running.
~set-screens~ is a custom script declared [[*set-screens][below]]. ~set-screens~ is a custom script declared [[*set-screens][below]].
#+NAME: autostart-table #+NAME: autostart-table
| Command | Arguments | Run once? | | Command | Arguments | Run once? |
|---------------+---------------------------------------------------------------+-----------| |---------------+---------------------------------------+-----------|
| ~mpc~ | ~stop~ | no | | ~mpc~ | ~stop~ | no |
| ~xss-lock~ | ~plock~ | yes |
| ~set-screens~ | | no | | ~set-screens~ | | no |
| ~xwallpaper~ | ~--zoom (cat $HOME/.cache/wallpaper)~ | no | | ~picom~ | | yes |
| ~picom~ | ~--experimental-backends~ | yes |
| ~pumopm~ | | yes | | ~pumopm~ | | yes |
| ~xfce-polkit~ | | yes | | ~xfce-polkit~ | | yes |
| ~xss-lock~ | ~plock~ | yes |
| ~xidlehook~ | ~--not-when-audio --not-when-fullscreen --timer 3600 lock ''~ | yes |
| ~nm-applet~ | | yes | | ~nm-applet~ | | yes |
| ~numlockx~ | ~on~ | yes | | ~numlockx~ | ~on~ | yes |
| ~xwallpaper~ | ~--zoom (cat $HOME/.cache/wallpaper)~ | no |
#+NAME: autostart-gen #+NAME: autostart-gen
#+BEGIN_SRC emacs-lisp :var table=autostart-table :cache yes #+BEGIN_SRC emacs-lisp :var table=autostart-table :cache yes
@ -58,19 +57,16 @@ of said command running.
"\n") "\n")
#+END_SRC #+END_SRC
#+RESULTS[f7292981c73e9183edab2951f3a5dcfa6d073025]: autostart-gen #+RESULTS[db0a64491cfacdcecad8ad71beed0e6b48b5af06]: autostart-gen
#+begin_example : mpc stop &
set-screens & : pgrep -x xss-lock 2&>/dev/null || echo (xss-lock plock & && disown) 2&>/dev/null
pgrep -x pumopm 2&>/dev/null || echo (pumopm & && disown) 2&>/dev/null : set-screens &
pgrep -x xfce-polkit 2&>/dev/null || echo (xfce-polkit & && disown) 2&>/dev/null : pgrep -x picom 2&>/dev/null || echo (picom & && disown) 2&>/dev/null
pgrep -x xss-lock 2&>/dev/null || echo (xss-lock plock & && disown) 2&>/dev/null : pgrep -x pumopm 2&>/dev/null || echo (pumopm & && disown) 2&>/dev/null
pgrep -x picom 2&>/dev/null || echo (picom --experimental-backends & && disown) 2&>/dev/null : pgrep -x xfce-polkit 2&>/dev/null || echo (xfce-polkit & && disown) 2&>/dev/null
pgrep -x xidlehook 2&>/dev/null || echo (xidlehook --not-when-audio --not-when-fullscreen --timer 3600 lock '' & && disown) 2&>/dev/null : pgrep -x nm-applet 2&>/dev/null || echo (nm-applet & && disown) 2&>/dev/null
pgrep -x nm-applet 2&>/dev/null || echo (nm-applet & && disown) 2&>/dev/null : pgrep -x numlockx 2&>/dev/null || echo (numlockx on & && disown) 2&>/dev/null
pgrep -x numlockx 2&>/dev/null || echo (numlockx on & && disown) 2&>/dev/null : xwallpaper --zoom (cat $HOME/.cache/wallpaper) &
mpc stop &
xwallpaper --zoom (cat $HOME/.cache/wallpaper) &
#+end_example
I also have an external sound card, a Scarlet 2i2 G3, that I would like to use I also have an external sound card, a Scarlet 2i2 G3, that I would like to use
as my default audio output. However, it might not be always connected, hence the as my default audio output. However, it might not be always connected, hence the