[Bin, Systemd] Move pumopm to its own user service

This commit is contained in:
Lucien Cartier-Tilet 2022-08-31 17:24:57 +02:00
parent 0050fc966e
commit 77694e9aa0
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 10 additions and 8 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Description=Lightweight and dead simple power manager
[Service]
Type=simple
ExecStart=/usr/bin/pumopm
[Install]
WantedBy=default.target

View File

@ -33,7 +33,6 @@ of said command running.
| ~xrdb~ | ~-merge "$XDG_CONFIG_HOME"/X11/Xresources~ | no |
| ~picom~ | ~--experimental-backends~ | yes |
| ~numlockx~ | ~on~ | yes |
| ~pumopm~ | | yes |
| ~xfce-polkit~ | | yes |
| ~nm-applet~ | | yes |
| ~xwallpaper~ | ~--zoom "$(cat "$HOME"/.cache/wallpaper)"~ | no |
@ -71,7 +70,7 @@ of said command running.
"\n")
#+END_SRC
#+RESULTS[aa17455bbc7ba3f6fcf543c0ebf6eb85342bb77d]: autostart-gen
#+RESULTS[aa4d3befb57ec44dc2a4d8dcd84fad5780c61186]: autostart-gen
#+begin_src bash :exports code
which pactl && pactl load-module module-switch-on-connect &
which mpc && mpc stop &
@ -88,12 +87,6 @@ else
numlockx on &
disown
fi
which pumopm && if pgrep -x pumopm ; then
echo pumopm already running
else
pumopm &
disown
fi
which xfce-polkit && if pgrep -x xfce-polkit ; then
echo xfce-polkit already running
else