LINUX.ORG.RU
#!/bin/bash

ping -c 1 -w 5 google.com &>/dev/null

if [ $? -ne 0 ] ; then 
# Off
   echo -e "\${color f00000}[ OFF ]";
else 
# On
   echo -e "\${color 00f000}[  ON ]";
fi
AlexCones ★★★
()
Ответ на: комментарий от AlexCones

И основной rc:

background no
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
default_color white
alignment top_right
gap_x 10
gap_y 10
#font -dec-terminal-medium-r-normal--14-140-75-75-c-80-dec-dectech
font -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r
no_buffers yes
update_interval 3
text_buffer_size 4096
override_utf8_locale yes

TEXT
╔═══════════════════════════════════════════════════╗ 
║ PPPoE LINK                                ${execp ./.conky-link} ${color ffffff}║
╟───────────────────────────────────────────────────╢
║ ROOT    : ${fs_bar 3, 186 /} ${if_mounted /}${color 00f000}[ ON  ]${else}${color f00000}[ OFF ] ${endif}${color ffffff} ║
║ FLASH   : ${fs_bar 3, 186 /media/FLASHCARD/} ${if_mounted /media/FLASHCARD}${color 00f000}[ ON  ]${else}${color f00000}[ OFF ]${endif}${color ffffff} ║
║ PLAYER  : ${fs_bar 3, 186 /media/28AF-E273/} ${if_mounted /media/28AF-E273}${color 00f000}[ ON  ]${else}${color f00000}[ OFF ]${endif}${color ffffff} ║
║ SEAGATE : ${fs_bar 3, 186 /media/Seagate/} ${if_mounted /media/Seagate}${color 00f000}[ ON  ]${else}${color f00000}[ OFF ]${endif}${color ffffff} ║
║ BACKUPS : ${fs_bar 3, 186 /media/AlexCones/} ${if_mounted /media/AlexCones}${color 00f000}[ ON  ]${else}${color f00000}[ OFF ]${endif}${color ffffff} ║
║ WINDOWS : ${fs_bar 3, 186 /media/System/} ${if_mounted /media/System}${color 00f000}[ ON  ]${else}${color f00000}[ OFF ]${endif}${color ffffff} ║
╟───────────────────────────────────────────────────╢
║ ${execi 1 ./.conky-tracks}
╚═══════════════════════════════════════════════════╝

AlexCones ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.