Dim Left Monitor

function dimleftmonitor -d "Set HDMI-0 brightness" \
    --argument-names BRIGHTNESS OUTPUT

  # -z : test for zero (empty) string

  if test -z $OUTPUT
      set OUTPUT "HDMI-0"
  end

  if test -z $BRIGHTNESS
      set BRIGHTNESS 0
  end

  # xrandr --output $OUTPUT --brightness $BRIGHTNESS --auto
  dim_monitor $OUTPUT $BRIGHTNESS
end
function undimleftmonitor -d "Undim the Left Monitor" \
    --argument-names OUTPUT

      if test -z $OUTPUT
          set OUTPUT "HDMI-0"
      end

      dimleftmonitor 1 $OUTPUT
end