Add about option
This commit is contained in:
parent
d7d712cfea
commit
c00f29f208
|
@ -49,6 +49,12 @@ function checkRatbag(){
|
|||
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.
|
||||
showMenu=0
|
||||
rootMessage
|
||||
|
@ -63,11 +69,11 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
numberDPI="(${get_dpi})"
|
||||
numberPolling="(${get_rate})"
|
||||
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" \
|
||||
${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}/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
|
||||
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 \
|
||||
|
@ -428,6 +434,8 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
zenity --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||
--text "Dispositivo no encontrado o conectado"
|
||||
fi
|
||||
elif [ "${opcion}" == "${imagesPath}/about.png" ] ; then
|
||||
aboutZenidrv
|
||||
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
||||
showMenu=1
|
||||
else
|
||||
|
|
|
@ -49,6 +49,12 @@ function checkRatbag(){
|
|||
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.
|
||||
showMenu=0
|
||||
rootMessage
|
||||
|
@ -63,11 +69,11 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
numberDPI="(${get_dpi})"
|
||||
numberPolling="(${get_rate})"
|
||||
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" \
|
||||
${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}" \
|
||||
${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
|
||||
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 \
|
||||
|
@ -406,6 +412,8 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
zenity --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||
--text "Dispositivo no encontrado o conectado"
|
||||
fi
|
||||
elif [ "${opcion}" == "${imagesPath}/about.png" ] ; then
|
||||
aboutZenidrv
|
||||
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
||||
showMenu=1
|
||||
else
|
||||
|
|
|
@ -49,6 +49,12 @@ function checkRatbag(){
|
|||
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.
|
||||
showMenu=0
|
||||
rootMessage
|
||||
|
@ -63,11 +69,11 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
numberDPI="(${get_dpi})"
|
||||
numberPolling="(${get_rate})"
|
||||
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" \
|
||||
${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}/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
|
||||
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 \
|
||||
|
@ -428,6 +434,8 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
zenity --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||
--text "Device not found or connected"
|
||||
fi
|
||||
elif [ "${opcion}" == "${imagesPath}/about.png" ] ; then
|
||||
aboutZenidrv
|
||||
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
||||
showMenu=1
|
||||
else
|
||||
|
|
|
@ -49,6 +49,12 @@ function checkRatbag(){
|
|||
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.
|
||||
showMenu=0
|
||||
rootMessage
|
||||
|
@ -63,11 +69,11 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
numberDPI="(${get_dpi})"
|
||||
numberPolling="(${get_rate})"
|
||||
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" \
|
||||
${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}" \
|
||||
${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
|
||||
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 \
|
||||
|
@ -406,6 +412,8 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
zenity --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||
--text "Device not found or connected"
|
||||
fi
|
||||
elif [ "${opcion}" == "${imagesPath}/about.png" ] ; then
|
||||
aboutZenidrv
|
||||
elif [ "${opcion}" == "${imagesPath}/exit.png" ] ; then
|
||||
showMenu=1
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user