änderung an auflistung nach yad text am Ende

This commit is contained in:
Désiré Werner Menrath 2023-11-03 14:05:31 +01:00
parent 89187641d0
commit f56c9570a7

25
wire_g
View File

@ -166,21 +166,21 @@ more(){
a_user=$(whoami) a_user=$(whoami)
wg_pic="/home/$a_user/.icons/" wg_pic="/home/$a_user/.icons/"
version=3.0.8 version=3.0.8
selection=$(yad --text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n selection=$(yad --height=100 --width=80 \
<span color='#626ff1'><b>E-Mail: polunga40@unity-mail.de</b></span> \n
<span color='#626ff1'><b>At all tunnels, the auto start is disabled"!"</b></span> \n
<span color='#626ff1'><b>Version: $version </b></span> \n
<span color='#626ff1'><b>Use without warranty"!"</b></span> \n
<a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n
" \
--height=100 --width=80 \
--title="Wire-G" --center \ --title="Wire-G" --center \
--fixed --borders=8 --close-on-unfocus \ --fixed --borders=8 --close-on-unfocus \
--buttons-layout=center --text-align=center \ --buttons-layout=center --text-align=center \
--button=$"Import":"bash -c import_wg" \ --button=$"Import":"bash -c import_wg" \
--button=$"Wire-G Stop":"bash -c up_or_down" \ --button=$"Wire-G Stop":"bash -c up_or_down" \
--button=$"Cancel":1 \ --button=$"Cancel":1 \
--separator="" --window-icon=${wg_pic}wg-vpn.png) --separator="" --window-icon=${wg_pic}wg-vpn.png \
--text=$"<span color='#626ff1'><b>Wire-G Author: Désiré Werner Menrath</b></span> \n
<span color='#626ff1'><b>E-Mail: polunga40@unity-mail.de</b></span> \n
<span color='#626ff1'><b>At all tunnels, the auto start is disabled"!"</b></span> \n
<span color='#626ff1'><b>Version: $version </b></span> \n
<span color='#626ff1'><b>Use without warranty"!"</b></span> \n
<a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n")
} }
export -f more export -f more
@ -210,11 +210,12 @@ if selection=$(yad --no-click --list \
--button=$"More":"bash -c more" --button=$"Remove":"bash -c remove" --separator="" \ --button=$"More":"bash -c more" --button=$"Remove":"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>Activ Tunnel: </b> <span color='#0fad0a'><b>$active</b></span> --column=$"Selection" $tunnel \
--text=$"<b>Activ Tunnel: </b> <span color='#0fad0a'><b>$active</b></span>
<b>----------------------------------------------------------------------------------</b> <b>----------------------------------------------------------------------------------</b>
<b>If no tunnels are listed,</b> <b>If no tunnels are listed,</b>
<b>so they have to import their tunnel beforehand.</b>" \ <b>so they have to import their tunnel beforehand.</b>")
--column=$"Selection" $tunnel)
then then
if [[ -n $active ]] if [[ -n $active ]]