remove: hostname command dependency
add: history-grep alias fix: supress arch-updates output when no updates
This commit is contained in:
		
							parent
							
								
									2357860ff6
								
							
						
					
					
						commit
						43c34ce130
					
				
					 4 changed files with 9 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,7 @@ killall -q polybar
 | 
			
		|||
# Wait until the processes have been shut down
 | 
			
		||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
 | 
			
		||||
 | 
			
		||||
host_name=$(hostname)
 | 
			
		||||
host_name=$(cat /proc/sys/kernel/hostname)
 | 
			
		||||
if [[ $host_name == "portalo" ]]; then
 | 
			
		||||
    polybar portalo-primary &
 | 
			
		||||
    polybar portalo-secondary &
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
echo $(pacman -Qu | wc -l)
 | 
			
		||||
pkg_updates_count=$(pacman -Qu | wc -l)
 | 
			
		||||
if [ $((pkg_updates_count)) -gt 0 ]
 | 
			
		||||
then
 | 
			
		||||
    echo $pkg_updates_count
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue