Didier-T, ben non ça fonctionne pas
quand je lance le conky
└─ $ ▶ sh /home/ombre/.conky/conky-perso/conky-radiotray/Start-Stop-Conky-radiotray
/home/ombre/.conky/conky-perso/conky-radiotray/Start-Stop-Conky-radiotray: 13: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
Start conky1 -c /home/ombre/.conky/conky-perso/conky-radiotray/conkyrc
ombre @ ombre-Aspire ~
└─ $ ▶ Conky: forked to background, pid is 5804
Conky: desktop window (e00003) is subwindow of root window (274)
Conky: window type - normal
Conky: drawing to created window (0x3000001)
Conky: drawing to double buffer
quand je veux killer le conky
└─ $ ▶ sh /home/ombre/.conky/conky-perso/conky-radiotray/Start-Stop-Conky-radiotray
/home/ombre/.conky/conky-perso/conky-radiotray/Start-Stop-Conky-radiotray: 13: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
Start conky1 -c /home/ombre/.conky/conky-perso/conky-radiotray/conkyrc
ombre @ ombre-Aspire ~
└─ $ ▶ Conky: forked to background, pid is 5913
Conky: desktop window (e00003) is subwindow of root window (274)
Conky: window type - normal
Conky: drawing to created window (0x3a00001)
Conky: drawing to double buffer
le script on/off
#!/bin/bash
PROG_NAME="conky1 -c /home/ombre/.conky/conky-perso/conky-radiotray/conkyrc" # Nom du programme à démarrer/arrêter.
export pid=`ps aux | pgrep -f conkyrc | sed '/--color/d' | awk '{print $2}'`;kill -9 $pid
if [ "$PROCESSPID" != "" ]; then # Si un ou des processus existe alors on le(s) kill.
kill $PROCESSPID && echo "Stop $PROG_NAME (PID: $PROCESSPID)"
else # Si aucun processus on démarre le programme.
$PROG_NAME &
echo "Start $PROG_NAME"
fi
exit 0
Je me demandais s'il serait possible d'intégrer au script le lancement de
radio-tray sur
loungeradio ?