Como fazer?
Primeiro crie dois arquivos .conkyrc, um em ~/.icewm e outro em ~/.fluxbox. Pode copiar o ~/.conkyrc para ter uma base sobre a qual modificar.
Então crie dois scripts, um chamado conkytoggleice.sh e o outro conkytoggleflux.sh no diretório /usr/local/bin (é preciso ser root para isso) com o seguinte conteúdo:
conkytoggleice.sh
Code: Select all
# Filename: conkytoggleice.sh
# Purpose: toggle conky on/off from menu
# Authors: Kerry and anticapitalista for antiX - modified by me :)
# Latest change: Sun April 13, 2008.
################################################################################
#!/bin/sh
if pidof conky | grep [0-9] > /dev/null
then
killall conky
else
conky -c ~/.icewm/.conkyrc
fi
Code: Select all
# Filename: conkytoggleflux.sh
# Purpose: toggle conky on/off from menu
# Authors: Kerry and anticapitalista for antiX - modifed by me :)
# Latest change: Sun April 13, 2008.
################################################################################
#!/bin/sh
if pidof conky | grep [0-9] > /dev/null
then
killall conky
else
conky -c ~/.fluxbox/.conkyrc
fi
Code: Select all
chmod +x conkytoggleice.sh conkytoggleflux.sh
Code: Select all
conky -c ~/.icewm/.conkyrc &
Code: Select all
key"Alt+Ctrl+o" conkytoggleice.sh
Code: Select all
[startup] {conky -c ~/.fluxbox/.conkyrc}
Code: Select all
Mod4 t :ExecCommand conkytoggleflux.sh