dwmb-layout (400B) - raw


      1 #!/bin/sh
      2 
      3 echo "  $(cat $HOME/.cache/layout) "
      4 case $BLOCK_BUTTON in
      5 	  1) layouttoggle ;;
      6 	  2) remaps && Capslock remaps reinitialized;;
      7 		3) notify-send -a " Keyboard" "Click this widget to toggle the keyboard layout between french and english.
      8 Middle click it to remap Capslock to super (and escape when tapped) if it somehow gets unmapped.";;
      9     6) "$TERMINAL" -e "$EDITOR" "$0" ;;
     10 esac