Add about option
This commit is contained in:
parent
d7d712cfea
commit
c00f29f208
|
@ -49,6 +49,12 @@ function checkRatbag(){
|
||||||
echo ${dependence}
|
echo ${dependence}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Function to show about
|
||||||
|
function aboutZenidrv() {
|
||||||
|
zenity --title "About" --window-icon=${iconPath} --info --width=330 \
|
||||||
|
--text "Interfaz GUI: zenidrv-g203 ${VERSION} (${M_DATE})\nRepo: https://github.com/q3aql/zenidrv-g203\nAutor: q3aql\nContacto: q3aql@duck.com\nLicencia: GPL v2.0\n\nBackend: g203-led\nRepo: https://github.com/smasty/g203-led\nAutor: smasty\nContacto: https://smasty.net\nLicencia: Licencia MIT\n\nBackend: libratbag\nAutor: Equipo libratbag\nRepo: https://github.com/libratbag/libratbag\nLicencia: Licencia RedHat"
|
||||||
|
}
|
||||||
|
|
||||||
# Show menu with options.
|
# Show menu with options.
|
||||||
showMenu=0
|
showMenu=0
|
||||||
rootMessage
|
rootMessage
|
||||||
|
@ -63,11 +69,11 @@ while [ ${showMenu} -eq 0 ] ; do
|
||||||
numberDPI="(${get_dpi})"
|
numberDPI="(${get_dpi})"
|
||||||
numberPolling="(${get_rate})"
|
numberPolling="(${get_rate})"
|
||||||
fi
|
fi
|
||||||
opcion=$(zenity --width=280 --height=415 --list --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
opcion=$(zenity --width=280 --height=435 --list --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
||||||
--window-icon=${iconPath} --imagelist --column "Icono" --column "Efecto/Opcion" ${imagesPath}/solid.png "Solido" \
|
--window-icon=${iconPath} --imagelist --column "Icono" --column "Efecto/Opcion" ${imagesPath}/solid.png "Solido" \
|
||||||
${imagesPath}/cycle.png "Ciclo" ${imagesPath}/breathe.png "Respiracion" ${imagesPath}/wave.png "Ola" \
|
${imagesPath}/cycle.png "Ciclo" ${imagesPath}/breathe.png "Respiracion" ${imagesPath}/wave.png "Ola" \
|
||||||
${imagesPath}/blend.png "Mezcla" ${imagesPath}/intro-on.png "Intro (Activado)" ${imagesPath}/intro-off.png "Intro (Desactivado)" \
|
${imagesPath}/blend.png "Mezcla" ${imagesPath}/intro-on.png "Intro (Activado)" ${imagesPath}/intro-off.png "Intro (Desactivado)" \
|
||||||
${imagesPath}/mouse-dpi.png "Establecer DPI ${numberDPI}" ${imagesPath}/light-off.png "Apagar luz" ${imagesPath}/exit.png "Salir")
|
${imagesPath}/mouse-dpi.png "Establecer DPI ${numberDPI}" ${imagesPath}/light-off.png "Apagar luz" ${imagesPath}/about.png "Acerca" ${imagesPath}/exit.png "Salir")
|
||||||
if [ "${opcion}" == "${imagesPath}/solid.png" ] ; then
|
if [ "${opcion}" == "${imagesPath}/solid.png" ] ; then
|
||||||
color_selected=$(zenity --list --width=260 --height=570 --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
color_selected=$(zenity --list --width=260 --height=570 --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
||||||
--window-icon=${iconPath} --imagelist --column "Color" --column "Nombre color" ${imagesPath}/custom.png Personalizado \
|
--window-icon=${iconPath} --imagelist --column "Color" --column "Nombre color" ${imagesPath}/custom.png Personalizado \
|
||||||
|
@ -428,6 +434,8 @@ while [ ${showMenu} -eq 0 ] ; do
|
||||||
zenity --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
zenity --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||||
--text "Dispositivo no encontrado o conectado"
|
--text "Dispositivo no encontrado o conectado"
|
||||||
fi
|
fi
|
||||||
|
elif [ "${opcion}" == "${imagesPath}/about.png" ] ; then
|
||||||
|
aboutZenidrv
|
||||||
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
||||||
showMenu=1
|
showMenu=1
|
||||||
else
|
else
|
||||||
|
|
|
@ -49,6 +49,12 @@ function checkRatbag(){
|
||||||
echo ${dependence}
|
echo ${dependence}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Function to show about
|
||||||
|
function aboutZenidrv() {
|
||||||
|
zenity --title "About" --window-icon=${iconPath} --info --width=330 \
|
||||||
|
--text "Interfaz GUI: zenidrv-g203 ${VERSION} (${M_DATE})\nRepo: https://github.com/q3aql/zenidrv-g203\nAutor: q3aql\nContacto: q3aql@duck.com\nLicencia: GPL v2.0\n\nBackend: g203-led\nRepo: https://github.com/smasty/g203-led\nAutor: smasty\nContacto: https://smasty.net\nLicencia: Licencia MIT\n\nBackend: libratbag\nAutor: Equipo libratbag\nRepo: https://github.com/libratbag/libratbag\nLicencia: Licencia RedHat"
|
||||||
|
}
|
||||||
|
|
||||||
# Show menu with options.
|
# Show menu with options.
|
||||||
showMenu=0
|
showMenu=0
|
||||||
rootMessage
|
rootMessage
|
||||||
|
@ -63,11 +69,11 @@ while [ ${showMenu} -eq 0 ] ; do
|
||||||
numberDPI="(${get_dpi})"
|
numberDPI="(${get_dpi})"
|
||||||
numberPolling="(${get_rate})"
|
numberPolling="(${get_rate})"
|
||||||
fi
|
fi
|
||||||
opcion=$(zenity --width=280 --height=365 --list --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" \
|
opcion=$(zenity --width=280 --height=385 --list --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" \
|
||||||
--window-icon=${iconPath} --imagelist --column "Icono" --column "Efecto/Opcion" ${imagesPath}/solid.png "Solido" \
|
--window-icon=${iconPath} --imagelist --column "Icono" --column "Efecto/Opcion" ${imagesPath}/solid.png "Solido" \
|
||||||
${imagesPath}/cycle.png "Ciclo" ${imagesPath}/breathe.png "Respiracion" ${imagesPath}/intro-on.png \
|
${imagesPath}/cycle.png "Ciclo" ${imagesPath}/breathe.png "Respiracion" ${imagesPath}/intro-on.png \
|
||||||
"Intro (Activado)" ${imagesPath}/intro-off.png "Intro (Desactivado)" ${imagesPath}/mouse-dpi.png "Establecer DPI ${numberDPI}" \
|
"Intro (Activado)" ${imagesPath}/intro-off.png "Intro (Desactivado)" ${imagesPath}/mouse-dpi.png "Establecer DPI ${numberDPI}" \
|
||||||
${imagesPath}/light-off.png "Apagar luz" ${imagesPath}/exit.png "Salir")
|
${imagesPath}/light-off.png "Apagar luz" ${imagesPath}/about.png "Acerca" ${imagesPath}/exit.png "Salir")
|
||||||
if [ "${opcion}" == "${imagesPath}/solid.png" ] ; then
|
if [ "${opcion}" == "${imagesPath}/solid.png" ] ; then
|
||||||
color_selected=$(zenity --list --width=260 --height=570 --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" \
|
color_selected=$(zenity --list --width=260 --height=570 --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" \
|
||||||
--window-icon=${iconPath} --imagelist --column "Color" --column "Nombre color" ${imagesPath}/custom.png Personalizado \
|
--window-icon=${iconPath} --imagelist --column "Color" --column "Nombre color" ${imagesPath}/custom.png Personalizado \
|
||||||
|
@ -406,6 +412,8 @@ while [ ${showMenu} -eq 0 ] ; do
|
||||||
zenity --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
zenity --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||||
--text "Dispositivo no encontrado o conectado"
|
--text "Dispositivo no encontrado o conectado"
|
||||||
fi
|
fi
|
||||||
|
elif [ "${opcion}" == "${imagesPath}/about.png" ] ; then
|
||||||
|
aboutZenidrv
|
||||||
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
||||||
showMenu=1
|
showMenu=1
|
||||||
else
|
else
|
||||||
|
|
|
@ -49,6 +49,12 @@ function checkRatbag(){
|
||||||
echo ${dependence}
|
echo ${dependence}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Function to show about
|
||||||
|
function aboutZenidrv() {
|
||||||
|
zenity --title "About" --window-icon=${iconPath} --info --width=330 \
|
||||||
|
--text "GUI Interface: zenidrv-g203 ${VERSION} (${M_DATE})\nRepo: https://github.com/q3aql/zenidrv-g203\nAuthor: q3aql\nContact: q3aql@duck.com\nLicense: GPL v2.0\n\nBackend: g203-led\nRepo: https://github.com/smasty/g203-led\nAuthor: smasty\nContact: https://smasty.net\nLicense: MIT License\n\nBackend: libratbag\nAuthor: libratbag Team\nRepo: https://github.com/libratbag/libratbag\nLicense: RedHat License"
|
||||||
|
}
|
||||||
|
|
||||||
# Show menu with options.
|
# Show menu with options.
|
||||||
showMenu=0
|
showMenu=0
|
||||||
rootMessage
|
rootMessage
|
||||||
|
@ -63,11 +69,11 @@ while [ ${showMenu} -eq 0 ] ; do
|
||||||
numberDPI="(${get_dpi})"
|
numberDPI="(${get_dpi})"
|
||||||
numberPolling="(${get_rate})"
|
numberPolling="(${get_rate})"
|
||||||
fi
|
fi
|
||||||
opcion=$(zenity --width=280 --height=415 --list --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
opcion=$(zenity --width=280 --height=435 --list --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
||||||
--window-icon=${iconPath} --imagelist --column "Icon" --column "Effect/Option" ${imagesPath}/solid.png "Solid" \
|
--window-icon=${iconPath} --imagelist --column "Icon" --column "Effect/Option" ${imagesPath}/solid.png "Solid" \
|
||||||
${imagesPath}/cycle.png "Cycle" ${imagesPath}/breathe.png "Breathe" ${imagesPath}/wave.png "Wave" \
|
${imagesPath}/cycle.png "Cycle" ${imagesPath}/breathe.png "Breathe" ${imagesPath}/wave.png "Wave" \
|
||||||
${imagesPath}/blend.png "Blend" ${imagesPath}/intro-on.png "Intro (On)" ${imagesPath}/intro-off.png "Intro (Off)" \
|
${imagesPath}/blend.png "Blend" ${imagesPath}/intro-on.png "Intro (On)" ${imagesPath}/intro-off.png "Intro (Off)" \
|
||||||
${imagesPath}/mouse-dpi.png "Set DPI ${numberDPI}" ${imagesPath}/light-off.png "Light off" ${imagesPath}/exit.png "Exit")
|
${imagesPath}/mouse-dpi.png "Set DPI ${numberDPI}" ${imagesPath}/light-off.png "Light off" ${imagesPath}/about.png "About" ${imagesPath}/exit.png "Exit")
|
||||||
if [ "${opcion}" == "${imagesPath}/solid.png" ] ; then
|
if [ "${opcion}" == "${imagesPath}/solid.png" ] ; then
|
||||||
color_selected=$(zenity --list --width=260 --height=570 --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
color_selected=$(zenity --list --width=260 --height=570 --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" \
|
||||||
--window-icon=${iconPath} --imagelist --column "Color" --column "Name color" ${imagesPath}/custom.png Custom \
|
--window-icon=${iconPath} --imagelist --column "Color" --column "Name color" ${imagesPath}/custom.png Custom \
|
||||||
|
@ -428,6 +434,8 @@ while [ ${showMenu} -eq 0 ] ; do
|
||||||
zenity --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
zenity --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||||
--text "Device not found or connected"
|
--text "Device not found or connected"
|
||||||
fi
|
fi
|
||||||
|
elif [ "${opcion}" == "${imagesPath}/about.png" ] ; then
|
||||||
|
aboutZenidrv
|
||||||
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
||||||
showMenu=1
|
showMenu=1
|
||||||
else
|
else
|
||||||
|
|
|
@ -49,6 +49,12 @@ function checkRatbag(){
|
||||||
echo ${dependence}
|
echo ${dependence}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Function to show about
|
||||||
|
function aboutZenidrv() {
|
||||||
|
zenity --title "About" --window-icon=${iconPath} --info --width=330 \
|
||||||
|
--text "GUI Interface: zenidrv-g203 ${VERSION} (${M_DATE})\nRepo: https://github.com/q3aql/zenidrv-g203\nAuthor: q3aql\nContact: q3aql@duck.com\nLicense: GPL v2.0\n\nBackend: g203-led\nRepo: https://github.com/smasty/g203-led\nAuthor: smasty\nContact: https://smasty.net\nLicense: MIT License\n\nBackend: libratbag\nAuthor: libratbag Team\nRepo: https://github.com/libratbag/libratbag\nLicense: RedHat License"
|
||||||
|
}
|
||||||
|
|
||||||
# Show menu with options.
|
# Show menu with options.
|
||||||
showMenu=0
|
showMenu=0
|
||||||
rootMessage
|
rootMessage
|
||||||
|
@ -63,11 +69,11 @@ while [ ${showMenu} -eq 0 ] ; do
|
||||||
numberDPI="(${get_dpi})"
|
numberDPI="(${get_dpi})"
|
||||||
numberPolling="(${get_rate})"
|
numberPolling="(${get_rate})"
|
||||||
fi
|
fi
|
||||||
opcion=$(zenity --width=280 --height=365 --list --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" \
|
opcion=$(zenity --width=280 --height=385 --list --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" \
|
||||||
--window-icon=${iconPath} --imagelist --column "Icon" --column "Effect/Option" ${imagesPath}/solid.png "Solid" \
|
--window-icon=${iconPath} --imagelist --column "Icon" --column "Effect/Option" ${imagesPath}/solid.png "Solid" \
|
||||||
${imagesPath}/cycle.png "Cycle" ${imagesPath}/breathe.png "Breathe" ${imagesPath}/intro-on.png \
|
${imagesPath}/cycle.png "Cycle" ${imagesPath}/breathe.png "Breathe" ${imagesPath}/intro-on.png \
|
||||||
"Intro (On)" ${imagesPath}/intro-off.png "Intro (Off)" ${imagesPath}/mouse-dpi.png "Set DPI ${numberDPI}" \
|
"Intro (On)" ${imagesPath}/intro-off.png "Intro (Off)" ${imagesPath}/mouse-dpi.png "Set DPI ${numberDPI}" \
|
||||||
${imagesPath}/light-off.png "Light off" ${imagesPath}/exit.png "Exit")
|
${imagesPath}/light-off.png "Light off" ${imagesPath}/about.png "About" ${imagesPath}/exit.png "Exit")
|
||||||
if [ "${opcion}" == "${imagesPath}/solid.png" ] ; then
|
if [ "${opcion}" == "${imagesPath}/solid.png" ] ; then
|
||||||
color_selected=$(zenity --list --width=260 --height=570 --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" \
|
color_selected=$(zenity --list --width=260 --height=570 --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" \
|
||||||
--window-icon=${iconPath} --imagelist --column "Color" --column "Name color" ${imagesPath}/custom.png Custom \
|
--window-icon=${iconPath} --imagelist --column "Color" --column "Name color" ${imagesPath}/custom.png Custom \
|
||||||
|
@ -406,6 +412,8 @@ while [ ${showMenu} -eq 0 ] ; do
|
||||||
zenity --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
zenity --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||||
--text "Device not found or connected"
|
--text "Device not found or connected"
|
||||||
fi
|
fi
|
||||||
|
elif [ "${opcion}" == "${imagesPath}/about.png" ] ; then
|
||||||
|
aboutZenidrv
|
||||||
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
||||||
showMenu=1
|
showMenu=1
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user