Polybar: Move the rest of the script into the config
Because why the hell not. It was only four lines anyway.
This commit is contained in:
		@@ -406,7 +406,7 @@ label-warn-foreground = ${res/colors.alert}
 | 
			
		||||
[module/update-arch]
 | 
			
		||||
inherit = template/module
 | 
			
		||||
type = custom/script
 | 
			
		||||
exec = $HOME/.config/polybar/update-arch.sh
 | 
			
		||||
exec = echo `checkupdates | wc -l`
 | 
			
		||||
exec-if = wget -q --spider http://www.startpage.com/ && uname -r | grep -q "ARCH" && [ `checkupdates | wc -l` != 0 ]
 | 
			
		||||
format-prefix = " "
 | 
			
		||||
format-prefix-foreground = ${res/colors.alert-dark}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +0,0 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
uname -r | grep -q "ARCH" || exit
 | 
			
		||||
CHECKUPDATES_DB=/tmp/$(uuidgen)/
 | 
			
		||||
numupdates=$(checkupdates | wc -l)
 | 
			
		||||
echo $numupdates
 | 
			
		||||
		Reference in New Issue
	
	Block a user