From 77694e9aa04a528227c6366b3696e7a27d887edf Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 31 Aug 2022 17:24:57 +0200 Subject: [PATCH] [Bin, Systemd] Move pumopm to its own user service --- .config/systemd/user/pumopm.service | 9 +++++++++ org/config/bin.org | 9 +-------- 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 .config/systemd/user/pumopm.service diff --git a/.config/systemd/user/pumopm.service b/.config/systemd/user/pumopm.service new file mode 100644 index 0000000..2f041dd --- /dev/null +++ b/.config/systemd/user/pumopm.service @@ -0,0 +1,9 @@ +[Unit] +Description=Lightweight and dead simple power manager + +[Service] +Type=simple +ExecStart=/usr/bin/pumopm + +[Install] +WantedBy=default.target \ No newline at end of file diff --git a/org/config/bin.org b/org/config/bin.org index 77b1272..dd617f1 100644 --- a/org/config/bin.org +++ b/org/config/bin.org @@ -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