dotties

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

dwmbar (345B)


      1 #!/bin/sh
      2 
      3 delim="|"
      4 
      5 status() {
      6 		# Volum
      7 		vol=$(pulsemixer --get-volume | awk '{print $1}')
      8 		[ "$(pulsemixer --get-mute)" = "1" ] && vol="M"
      9 		printf " %s%%" "$vol"
     10 
     11 		printf " $delim "
     12 		
     13 		# Klokke
     14 		#printf "$(brøkur)"
     15 
     16 		#printf " $delim "
     17 
     18 		printf "$(ordur) "
     19 }
     20 
     21 while :; do
     22 		xsetroot -name "$(status | tr '\n' ' ')"
     23 		sleep 1m
     24 done