#!/bin/bash

case $1 in
  vol)
    case $2 in
      up)
        /home/dom/.local/bin/volnote up
      ;;
      down)
        /home/dom/.local/bin/volnote down
      ;;
    esac
	;;
  caps)
    status=$(xset -q | sed -n 's/^.*Caps Lock:\s*\(\S*\).*$/\1/p')
    notify-send -u low -e "Caps Lock $status" -h boolean:value:true -r 555
  ;;
esac

sleep 2
swaync-client --hide-latest