import versetz in neues Fenster mit Infotext

This commit is contained in:
Désiré Werner Menrath 2023-10-29 18:21:50 +01:00
parent 243bd6647e
commit 0fafb8e883

26
wire_g
View File

@ -115,6 +115,29 @@ remove(){
fi } fi }
export -f remove export -f remove
# function end
############################################################################################################
############################################################################################################
# function button "more"
more(){
a_user=$(whoami)
wg_pic="/home/$a_user/.icons/"
selection=$(yad --text "<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span>
<span color='#626ff1'><b>E-Mail: polunga40@unity-mail.de</b></span>
<span color='#626ff1'><b>Bei allen Tunnel wird der Autostart deaktiviert"!"</b></span>
<span color='#626ff1'><b>Benutzung ohne Gewähr"!"</b></span>
" \
--height=100 --width=80 \
--title="Wire-G" --center \
--fixed --borders=8 \
--buttons-layout=center \
--button=Importieren:"bash -c import_wg" \
--button="Abbrechen":1 \
--separator="" --window-icon=${wg_pic}wg-vpn.png )
}
export -f more
# function end # function end
############################################################################################################ ############################################################################################################
############################################################################################################ ############################################################################################################
@ -139,8 +162,7 @@ selection=$(yad --no-click --list \
--height=300 --width=60 --title="Wire-G" \ --height=300 --width=60 --title="Wire-G" \
--fixed --buttons-layout=center \ --fixed --buttons-layout=center \
--button="OK" --button="Abbrechen" \ --button="OK" --button="Abbrechen" \
--button=Importieren:"bash -c import_wg" \ --button=Mehr:"bash -c more" --button=Entfernen:"bash -c remove" --separator="" \
--button=Entfernen:"bash -c remove" --separator="" \
--window-icon=${wg_pic}wg-vpn.png \ --window-icon=${wg_pic}wg-vpn.png \
--borders=8 --image-on-top --image=${wg_pic}wg-active.png \ --borders=8 --image-on-top --image=${wg_pic}wg-active.png \
--text "<b>Aktiver Tunnel: </b> <span color='#0fad0a'><b>$active</b></span> --text "<b>Aktiver Tunnel: </b> <span color='#0fad0a'><b>$active</b></span>