2. 設定
~/.config/autostart/conky.desktop
によって、動作しています。
中身は
[Desktop Entry]
Type=Application
Exec=sh /usr/share/mx-conky-data/conky-startup.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_IN]=Conky
Name=Conky
Comment[en_IN]=
Comment=
と記述されています。
/usr/share/mx-conky-data/conky-startup.sh
の中身は。
#!/bin/bash
#Launch default MX Conky script unless otherwise configured
#check for presence of desktop autostart file
#or if autostart is disabled in existing file
#launch HOME configured conky, if it exists
#check for existence, because conky-manager does not make executable files
#start with sh for compatibility
if [ -f "$HOME/.conky/conky-startup.sh" ]; then
sh "$HOME/.conky/conky-startup.sh"
exit 0
fi
#special first boot stuff
if [ "$XDG_CURRENT_DESKTOP" = "XFCE" ]; then
while ! pidof xfdesktop >>/dev/null;
do
sleep 1
done
fi
if [ ! -e "$HOME/.cache/fontconfig" ] && [ -d /usr/share/fonts/extra ]; then
fc-cache -r /usr/share/fonts/extra
fi
#ok we finally launch default conky if nothing all checks are passed
sleep 20
killall conky
cd "/usr/share/mx-conky-data/themes/MX-Infinity"
conky -c "/usr/share/mx-conky-data/themes/MX-Infinity/MX-Infinity-conkyrc" &
exit 0
となっております。
3. 編集
末尾に「システム情報」「ディストリビューション」「デスクトップ名」「Conky バージョン」「IP アドレス」を表示します。
「root」ユーザ権限で。
cp /usr/share/mx-conky-data/themes/MX-Infinity/MX-Infinity-conkyrc /usr/share/mx-conky-data/themes/MX-Infinity/MX-Infinity-conkyrc.bak
vi /usr/share/mx-conky-data/themes/MX-Infinity/MX-Infinity-conkyrc
minimum_width = 175,
maximum_width = 175,
幅が足りなくなるので広げます。
minimum_width = 350,
maximum_width = 350,
末尾の。
]];
の前に以下を記述します。
${offset 0}${voffset 210}\
${color}System :$color $sysname $kernel on $machine
${color}Description:$color ${execi 999999 lsb_release -ds}
${color}Desktop :$color ${execi 999999 echo $XDG_CURRENT_DESKTOP}
${color}Conky :$color $conky_version
${color}Local IP :$color ${addr eth0}
${color}Global IP :$color ${execi 999999 curl -s inet-ip.info}
4. 表示
編集後、下記の表示になります。