anchor.diff:      unset bat_prefix
     fi
     '';
  +} {
  +  target = "${variables.homeDir}/bin/polybar-micstatus";
  +  source = pkgs.writeScript "microphone.sh" ''
  +  #!${pkgs.stdenv.shell}
  +
  +  export PATH="${pkgs.pulseaudio}/bin:${pkgs.gnugrep}/bin:${pkgs.gnused}/bin"
  +
  +  get_status_icon() {
  +      `pactl list | sed -n '/^Source/,/^$/p' | grep Mute | grep yes > /dev/null`
  +
  +      if [ $? -eq 0 ]; then
  +          # echo "%{F#be5046}  %{F-}"
  +          echo ""
  +      else
  +          echo ""
  +      fi
  +  }
  +
  +  get_status_icon
  +
  +  while read line; do
  +      # source #2 is the microphone
  +      if [ "$line" == "Event 'change' on source #2" ]; then
  +          get_status_icon
  +      fi
  +  done < <(pactl subscribe)
  +  '';
   }]
  
positive.code:   [global/wm]
    margin-top = 5
    margin-bottom = 5
    '';
  } {
    target = "${variables.homeDir}/bin/polybar-batstatus";
  
negative.code: 
    use-ui-max = false
  
    format-volume = <ramp-volume> <bar-volume>
    ramp-volume-0 = 
    ramp-volume-1 = 
    ramp-volume-2 = 
  
    format-muted-foreground = ''${colors.foreground}
    label-muted = 
  
    bar-volume-width = 10
    bar-volume-foreground-0 = #55aa55
  