Progress bar applying effects
This commit is contained in:
parent
20b8f656d5
commit
a44c00b612
|
@ -76,9 +76,13 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
elif [ "${color_selected}" == "Navy" ] ; then
|
||||
color_apply="000080"
|
||||
fi
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Applying Solid effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync solid "${color_apply}"
|
||||
color_apply="none"
|
||||
elif [ "${opcion}" == "Cycle" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Applying Cycle effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync cycle
|
||||
elif [ "${opcion}" == "Breathe" ] ; then
|
||||
color_selected=$(zenity --width=260 --height=520 --list --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
||||
|
@ -117,20 +121,34 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
elif [ "${color_selected}" == "Navy" ] ; then
|
||||
color_apply="000080"
|
||||
fi
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Applying Breathe effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync breathe "${color_apply}"
|
||||
color_apply="none"
|
||||
elif [ "${opcion}" == "Wave" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Applying Wave effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync wave
|
||||
elif [ "${opcion}" == "Blend" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Applying Blend effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync blend
|
||||
elif [ "${opcion}" == "Intro (On)" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Enabling startup effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync intro on
|
||||
elif [ "${opcion}" == "Intro (Off)" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Disabling startup effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync intro off
|
||||
elif [ "${opcion}" == "Set DPI" ] ; then
|
||||
dpi_number=$(zenity --entry --title "Set DPI (from 50 to 8000)" --window-icon=${iconPath} --text "Enter DPI number (from 50 to 8000):" --entry-text "800")
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Setting DPI to ${dpi_number}" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync dpi ${dpi_number}
|
||||
elif [ "${opcion}" == "Light off" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Turning off the light on the mouse" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync breathe 00FFFF 1000 0
|
||||
elif [ "${opcion}" == "Exit" ] ; then
|
||||
showMenu=1
|
||||
|
|
|
@ -20,7 +20,8 @@ function rootMessage() {
|
|||
if [ ${administrador} -eq 0 ] ; then
|
||||
rm -rf /etc/root
|
||||
else
|
||||
zenity --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --window-icon=${iconPath} --warning --width=340 --text "Administrator permissions are required"
|
||||
zenity --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --window-icon=${iconPath} --warning \
|
||||
--width=340 --text "Administrator permissions are required"
|
||||
echo ""
|
||||
echo "* zenidrv-g203-prodigy ${VERSION} (${M_DATE}) (GPL v2.0)"
|
||||
echo ""
|
||||
|
@ -75,9 +76,13 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
elif [ "${color_selected}" == "Navy" ] ; then
|
||||
color_apply="000080"
|
||||
fi
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --text "Applying Solid effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py solid "${color_apply}"
|
||||
color_apply="none"
|
||||
elif [ "${opcion}" == "Cycle" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --text "Applying Cycle effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py cycle
|
||||
elif [ "${opcion}" == "Breathe" ] ; then
|
||||
color_selected=$(zenity --width=260 --height=520 --list --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
||||
|
@ -116,20 +121,31 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
elif [ "${color_selected}" == "Navy" ] ; then
|
||||
color_apply="000080"
|
||||
fi
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --text "Applying Breathe effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py breathe "${color_apply}"
|
||||
color_apply="none"
|
||||
elif [ "${opcion}" == "Intro (On)" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --text "Enabling startup effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py intro on
|
||||
elif [ "${opcion}" == "Intro (Off)" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --text "Disabling startup effect" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py intro off
|
||||
elif [ "${opcion}" == "Set DPI" ] ; then
|
||||
dpi_number=$(zenity --entry --title "Set DPI (from 200 to 8000)" --window-icon=${iconPath} --text "Enter DPI number (from 200 to 8000):" --entry-text "800")
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --text "Setting DPI to ${dpi_number}" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py dpi ${dpi_number}
|
||||
elif [ "${opcion}" == "Light off" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --text "Turning off the light on the mouse" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py breathe 00FFFF 1000 0
|
||||
elif [ "${opcion}" == "Exit" ] ; then
|
||||
showMenu=1
|
||||
else
|
||||
zenity --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --window-icon=${iconPath} --warning --width=300 --text "Choose one of the menu options"
|
||||
zenity --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --window-icon=${iconPath} --warning \
|
||||
--width=300 --text "Choose one of the menu options"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue
Block a user