LINUX.ORG.RU

История изменений

Исправление cinyflo, (текущая версия) :

$HOME/ПУТЬ_ДО/conkyrc

use_xft yes
xftfont LiberationSans:size=9:weight=bold

update_interval 1
total_run_times 0
text_buffer_size 2048
background yes
own_window yes
own_window_type desktop
own_window_transparent yes
double_buffer yes
no_buffers yes
draw_shades yes
draw_outline no
draw_graph_borders no
draw_borders no
stippled_borders 0

default_color 767676
default_shade_color black
default_outline_color black
color1 21a6d2
color2 fb9b5a
color3 949494
alignment middle_left
minimum_size 400 580
maximum_width 400
gap_x 30
gap_y 0

uppercase no
cpu_avg_samples 4
net_avg_samples 4
override_utf8_locale yes
use_spacer no
imlib_cache_size 0
pad_percents 0

TEXT
AMD Athlon II X2 255 ${cpu cpu0}%${alignr}${uptime_short} | Gmail: ${color3}${execi 1 $HOME/system/conf/conky_clementine/gmail.sh}${color} | ${if_match "${time %A}" == "Воскресенье"}${color2}${endif}${if_match "${time %A}" == "Суббота"}${color1}${endif}${time %A}${color}
${cpubar cpu1 5,195}${alignr}${cpubar cpu2 5,195}
${voffset 5}RAM ${memperc}%${tab 50}${mem} | ${memmax}${tab 102}swap ${swapperc}%${alignr}${swap}| ${swapmax}
${membar 5,195}${alignr}${swapbar 5,195}
${voffset 5}root ${fs_used_perc /}%${tab 50}${fs_used /} | ${fs_size /}${tab 102}/home ${fs_used_perc /home}%${alignr}${fs_used /home} | ${fs_size /home}
${fs_bar 5,195 /}${alignr}${fs_bar 5,195 /home}
${voffset 5}${alignc}client menu ${color3}super+tab${color} | search ${color3}alt+tab${color} | move window ${color3}alt+shift+←→${color}
$HOME/ПУТЬ_ДО/gmail.sh
#!/bin/bash
login="ГМЫЛО"
psswd="ПАРОЛЬ"
new=`curl -u ${login}:${psswd} -s "https://mail.google.com/mail/feed/atom" | grep -c "<entry>"`
echo $new
conky -c ~/ПУТЬ_ДО/conkyrc -q -d

Исходная версия cinyflo, :

На здоровье

$HOME/system/conf/conky_clementine/conkyrc

use_xft yes
xftfont LiberationSans:size=9:weight=bold

update_interval 1
total_run_times 0
text_buffer_size 2048
background yes
own_window yes
own_window_type desktop
own_window_transparent yes
double_buffer yes
no_buffers yes
draw_shades yes
draw_outline no
draw_graph_borders no
draw_borders no
stippled_borders 0

default_color 767676
default_shade_color black
default_outline_color black
color1 21a6d2
color2 fb9b5a
color3 949494
alignment middle_left
minimum_size 400 580
maximum_width 400
gap_x 30
gap_y 0

uppercase no
cpu_avg_samples 4
net_avg_samples 4
override_utf8_locale yes
use_spacer no
imlib_cache_size 0
pad_percents 0

TEXT
AMD Athlon II X2 255 ${cpu cpu0}%${alignr}${uptime_short} | Gmail: ${color3}${execi 1 $HOME/system/conf/conky_clementine/gmail.sh}${color} | ${if_match "${time %A}" == "Воскресенье"}${color2}${endif}${if_match "${time %A}" == "Суббота"}${color1}${endif}${time %A}${color}
${cpubar cpu1 5,195}${alignr}${cpubar cpu2 5,195}
${voffset 5}RAM ${memperc}%${tab 50}${mem} | ${memmax}${tab 102}swap ${swapperc}%${alignr}${swap}| ${swapmax}
${membar 5,195}${alignr}${swapbar 5,195}
${voffset 5}root ${fs_used_perc /}%${tab 50}${fs_used /} | ${fs_size /}${tab 102}/home ${fs_used_perc /home}%${alignr}${fs_used /home} | ${fs_size /home}
${fs_bar 5,195 /}${alignr}${fs_bar 5,195 /home}
${voffset 5}${alignc}client menu ${color3}super+tab${color} | search ${color3}alt+tab${color} | move window ${color3}alt+shift+←→${color}
$HOME/system/conf/conky_clementine/gmail.sh
#!/bin/bash
login="ГМЫЛО"
psswd="ПАРОЛЬ"
new=`curl -u ${login}:${psswd} -s "https://mail.google.com/mail/feed/atom" | grep -c "<entry>"`
echo $new
conky -c ~/ПУТЬ_ДО/conkyrc -q -d