|
@@ -94,15 +94,16 @@ fan() { |
|
|
|
|
|
|
|
|
CHKMODE=$(cat ${INTERFACE}) |
|
|
CHKMODE=$(cat ${INTERFACE}) |
|
|
|
|
|
|
|
|
notify-send -t 500 "Fan mode changed" \ |
|
|
|
|
|
|
|
|
notify-send "Fan mode changed" \ |
|
|
"${MODELIST[${CURRMODE}]} -> ${MODELIST[${CHKMODE}]}" |
|
|
"${MODELIST[${CURRMODE}]} -> ${MODELIST[${CHKMODE}]}" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
usage() { |
|
|
usage() { |
|
|
echo "Usage: $0 [-d LEVEL|up|down] [-k LEVEL|up|down] [-f [MODE]] [-h]" |
|
|
|
|
|
|
|
|
echo "Usage: $0 [-d LEVEL|up|down] [-k LEVEL|up|down] [-f MODE] [-F] [-h]" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
while getopts "d:k:f:h" ARG; do |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while getopts "d:k:f:Fh" ARG; do |
|
|
case "${ARG}" in |
|
|
case "${ARG}" in |
|
|
d) |
|
|
d) |
|
|
disp ${OPTARG} |
|
|
disp ${OPTARG} |
|
@@ -110,6 +111,9 @@ while getopts "d:k:f:h" ARG; do |
|
|
k) |
|
|
k) |
|
|
kbd ${OPTARG} |
|
|
kbd ${OPTARG} |
|
|
;; |
|
|
;; |
|
|
|
|
|
F) |
|
|
|
|
|
fan ${OPTARG} |
|
|
|
|
|
;; |
|
|
f) |
|
|
f) |
|
|
fan ${OPTARG} |
|
|
fan ${OPTARG} |
|
|
;; |
|
|
;; |
|
|