dwmb-dotfiles (365B) - raw


      1 #!/bin/bash
      2 
      3 dotfiles=$(yadm status | sed '1,3d;
      4                             5,$d;
      5                             s/.$//g')
      6 
      7 if [[ ${dotfiles:0:1} == "n" ]]; then
      8     warn=""
      9 else
     10     warn=" "
     11 fi
     12 
     13 
     14 
     15 echo " $warn "
     16 case $BLOCK_BUTTON in
     17 		1) $TERMINAL -c dropdown -e yadm diff ;;
     18 		3) $TERMINAL -c dropdown -e dfup ;;
     19     6) "$TERMINAL" -e "$EDITOR" "$0" ;;
     20 esac