Skip to content

Commit

Permalink
Merge pull request #356 from ivanivanivanivanivanivan/master
Browse files Browse the repository at this point in the history
VIMS: improve fan settings menu
  • Loading branch information
numbqq authored Nov 29, 2024
2 parents db38432 + 4749de6 commit 6e1dc13
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions archives/filesystem/special/VIM-COMMON/usr/local/bin/fan_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,23 @@ done
LIST_MENU_VALUE[$index]=TRUE

if [ ${LINUX_VER::3} == "4.9" ] || [ ${LINUX_VER::3} == "5.4" ] || [ ${LINUX_VER::4} == "5.15" ];then
selected_mode=$(zenity --height=275 \
selected_mode=$(zenity --height=450 \
--width=540 \
--list --radiolist \
--title 'FAN Setting' \
--text 'Select FAN Mode' \
--window-icon /etc/fenix/icons/fan.png \
--column 'Select' \
--column 'Mode' \
${LIST_MENU_VALUE[0]} ${LIST_MENU[0]} \
${LIST_MENU_VALUE[1]} ${LIST_MENU[1]} \
${LIST_MENU_VALUE[2]} ${LIST_MENU[2]} \
${LIST_MENU_VALUE[3]} ${LIST_MENU[3]} \
${LIST_MENU_VALUE[4]} ${LIST_MENU[4]})
--column 'Description' \
${LIST_MENU_VALUE[0]} ${LIST_MENU[0]} 'Turn off the fan (not recommended)' \
${LIST_MENU_VALUE[1]} ${LIST_MENU[1]} 'Low speed (quiet)' \
${LIST_MENU_VALUE[2]} ${LIST_MENU[2]} 'Medium speed (balanced)' \
${LIST_MENU_VALUE[3]} ${LIST_MENU[3]} 'High speed (performance)' \
${LIST_MENU_VALUE[4]} ${LIST_MENU[4]} 'Automatic fan control based on system load' )
else
selected_mode=$(zenity --height=275 \
selected_mode=$(zenity --height=300 \
--width=540 \
--list --radiolist \
--title 'FAN Setting' \
--text 'Select FAN Mode' \
Expand Down

0 comments on commit 6e1dc13

Please sign in to comment.