[Bin, Systemd] Move pumopm to its own user service
This commit is contained in:
		
							parent
							
								
									0050fc966e
								
							
						
					
					
						commit
						77694e9aa0
					
				
							
								
								
									
										9
									
								
								.config/systemd/user/pumopm.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.config/systemd/user/pumopm.service
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Lightweight and dead simple power manager
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
Type=simple
 | 
			
		||||
ExecStart=/usr/bin/pumopm
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=default.target
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user