sciancio / connectionmanager2

Simple GUI app for Gnome 3 that provides a menu for initiating SSH/Telnet connections
60 stars 45 forks source link

Replaced by Argos #64

Open plegrand1 opened 5 years ago

plegrand1 commented 5 years ago

Finally I replaced it by argos (https://extensions.gnome.org/extension/1176/argos/) Made my own Connection manager image

pablaasmo commented 5 years ago

Hi, can you share an example of your Argos configure file for this? Did you use a sh-script, or some other language?

plegrand1 commented 5 years ago

You have to use this extension : https://extensions.gnome.org/extension/1176/argos/ then you can create a script (bash python ....) i use bash. You have to put your script in /home/-----/.config/argos chmod 755

An example of script i use

#!/usr/bin/env bash
url=http://127.0.0.1/images

debian_icon=$(curl -s "$url/debian.png" | base64 -w 0)
freeradius_icon=$(curl -s "$url/freeradius.png" | base64 -w 0)
samba_icon=$(curl -s "$url/samba.png" | base64 -w 0)
kvm_icon=$(curl -s "$url/kvm_secours.png" | base64 -w 0)
tamtam_icon=$(curl -s "$url/tamtam.png" | base64 -w 0)
fog_icon=$(curl -s "$url/fog.png" | base64 -w 0)
intranet_icon=$(curl -s "$url/iut.png" | base64 -w 0)
sonde_icon=$(curl -s "$url/sonde.png" | base64 -w 0)
firewall_icon=$(curl -s "$url/firewall.png" | base64 -w 0)
ldap_icon=$(curl -s "$url/ldap.png" | base64 -w 0)
backuppc_icon=$(curl -s "$url/backup_2.png" | base64 -w 0)

size="size='11'"
color="color='#FFFFFF'"

titre="<span color='#ECD078' weight='bold'> \t "
fin_titre="</span>"

echo "Connections Manager | iconName=go-home"
echo "---"
echo "<span color='#FFFFFF' weight='bold'>Serveurs Linux</span> | ${size} "
echo "--${titre}BackupPC${fin_titre} - (192.168.151.231)    | ${color} ${size} image='${backuppc_icon}'   terminal='false' bash='gnome-terminal -- ssh your_user@192.168.151.231'"
echo "--${titre}DNS${fin_titre} - (192.168.151.253)         | ${color} ${size} image='${debian_icon}'     terminal='false' bash='gnome-terminal -- ssh your_user@192.168.151.253'"
echo "--${titre}Fog${fin_titre} - (192.168.39.243)          | ${color} ${size} image='${fog_icon}'        terminal='false' bash='gnome-terminal -- ssh your_user@192.168.39.243'"
echo "--${titre}FreeRadius${fin_titre} - (192.168.1.101)    | ${color} ${size} image='${freeradius_icon}' terminal='false' bash='gnome-terminal -- ssh your_user@192.168.1.101'"
echo "--${titre}Intranet${fin_titre} - (192.168.151.242)    | ${color} ${size} image='${intranet_icon}'   terminal='false' bash='gnome-terminal -- ssh your_user@192.168.151.242'"
echo "--${titre}KVM${fin_titre} - (192.168.151.248)         | ${color} ${size} image='${kvm_icon}'        terminal='false' bash='gnome-terminal -- ssh your_user@192.168.151.248'"
echo "--${titre}KVM-Secours${fin_titre} - (192.168.151.249) | ${color} ${size} image='${kvm_icon}'        terminal='false' bash='gnome-terminal -- ssh your_user@192.168.151.249'"
echo "--${titre}Replicat${fin_titre} - (192.168.151.234)    | ${color} ${size} image='${ldap_icon}'       terminal='false' bash='gnome-terminal -- ssh your_user@192.168.151.234'"
echo "--${titre}Samba${fin_titre} - (192.168.151.237)       | ${color} ${size} image='${samba_icon}'      terminal='false' bash='gnome-terminal -- ssh your_user@192.168.151.237'"
echo "--${titre}Scodoc${fin_titre} - (192.168.151.233)      | ${color} ${size} image='${debian_icon}'     terminal='false' bash='gnome-terminal -- ssh your_user@192.168.151.233'"
echo "--${titre}

image