[Bin] friendship with xidlehook ended xss-lock is my new best friend
This commit is contained in:
parent
1a97dc0884
commit
7abf902e1d
@ -28,18 +28,17 @@ 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 |
|
||||||
| ~set-screens~ | | no |
|
| ~xss-lock~ | ~plock~ | yes |
|
||||||
| ~xwallpaper~ | ~--zoom (cat $HOME/.cache/wallpaper)~ | no |
|
| ~set-screens~ | | no |
|
||||||
| ~picom~ | ~--experimental-backends~ | yes |
|
| ~picom~ | | yes |
|
||||||
| ~pumopm~ | | yes |
|
| ~pumopm~ | | yes |
|
||||||
| ~xfce-polkit~ | | yes |
|
| ~xfce-polkit~ | | yes |
|
||||||
| ~xss-lock~ | ~plock~ | yes |
|
| ~nm-applet~ | | yes |
|
||||||
| ~xidlehook~ | ~--not-when-audio --not-when-fullscreen --timer 3600 lock ''~ | yes |
|
| ~numlockx~ | ~on~ | yes |
|
||||||
| ~nm-applet~ | | yes |
|
| ~xwallpaper~ | ~--zoom (cat $HOME/.cache/wallpaper)~ | no |
|
||||||
| ~numlockx~ | ~on~ | yes |
|
|
||||||
|
|
||||||
#+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
|
||||||
|
Loading…
Reference in New Issue
Block a user