4 if [[ "$1" -gt "$2" ]]; then echo "$1"; else echo "$2"; fi
8 if [[ "$1" -lt "$2" ]]; then echo "$1"; else echo "$2"; fi
12 sudo ddcutil getvcp
10 |
grep -o ' current value = \+[0-9]\+' |
awk '{print $4}'
16 sudo ddcutil setvcp
10 "$1"
23 i | inc | increase
) _set
"$(min $(( $(_get) + 5)) 100)";;
24 d | dec | decrease
) _set
"$(max $(( $(_get) - 5)) 0)";;
26 if [[ "$args" =~ ^
[0-9]+$
&& "$args" -gt -1 && "$args" -lt 101 ]]; then
29 printf 'Error: expected a numeric argument between 0 and 100, but given "%s"\n' "$args" >&2
This page took 0.077928 seconds and 4 git commands to generate.