Home › Fora › Forum wsparcia › Inne › Przerabianie conky lua 1_10
- This topic has 2 odpowiedzi, 2 uczestników, and was last updated 8 years, 4 months temu by mars.
- AutorPosty
- 25 czerwca 2016 o 00:20 #1615marsForumowicz
Witajcie, chciałem uruchomić dawny conky lua, lecz po przejściu z Minta na Manjaro zaskoczył mnie nowy conky 1.10.
Próbowałem przerobić swój stary plik konfiguracyjny ale coś mi nie wychodzi. To nie mam tych zegarów, to gdzieś się ukrywa bardzo po prawo pulpitu, wychodzi za ekran. Nie bardzo reaguje też na moje zmiany w conkyrc. Tak wygląda oryginał: http://hardba11.deviantart.com/art/conky-grey-blue-variation-2012-10-26-334324988
A to co mi się udało obecnie przerobić po swojemu na ten nowy conky 1.10
conkyrcconky.config = { background = true, update_interval = 1, cpu_avg_samples = 2, net_avg_samples = 2, temperature_unit = 'celsius', double_buffer = true, no_buffers = true, text_buffer_size = 2048, gap_x = 30, gap_y = 20, minimum_size = 450, maximum_width = 190, own_window = true, own_window_type = 'desktop', own_window_transparent = true, own_window_hints = 'undecorate,sticky,skip_taskbar,skip_pager,below', border_inner_margin = 0, border_outer_margin = 0, alignment = 'top_right', draw_shades = false, draw_outline = false, draw_borders = false, draw_graph_borders = false, override_utf8_locale = true, --use_xft = true, --xftfont caviar = 'dreams:size=8', font = 'caviar dreams:size=6', xftalpha = 0.5, uppercase = false, default_color = 'FFFFFF', color1 = 'DDDDDD', color2 = 'AAAAAA', color3 = '888888', color4 = '5793EA', lua_load = '~/.conky/greyblue/conky_grey.lua', lua_draw_hook_post = 'main', } conky.text = [[ ${voffset 35} ${goto 95}${color4}${font ubuntu:size=22}${time %e}${color1}${offset -50}${font ubuntu:size=10}${time %A} ${goto 85}${color2}${voffset -2}${font ubuntu:size=9}${time %b}${voffset -2} ${color3}${font ubuntu:size=12}${time %Y}${font} ${voffset 80} ${goto 90}${font Ubuntu:size=7,weight:bold}${color}CPU ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}% ${goto 90}${font Ubuntu:size=7,weight:normal}${color2}${top name 2}${alignr}${top cpu 2}% ${goto 90}${font Ubuntu:size=7,weight:normal}${color3}${top name 3}${alignr}${top cpu 3}% ${goto 90}${cpugraph 10,100 666666 666666} ${goto 90}${voffset -10}${font Ubuntu:size=7,weight:normal}${color}${threads} process ${voffset 20} ${goto 90}${font Ubuntu:size=7,weight:bold}${color}MEM ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${top_mem name 1}${alignr}${top_mem mem 1}% ${goto 90}${font Ubuntu:size=7,weight:normal}${color2}${top_mem name 2}${alignr}${top_mem mem 2}% ${goto 90}${font Ubuntu:size=7,weight:normal}${color3}${top_mem name 3}${alignr}${top_mem mem 3}% ${voffset 15} ${goto 90}${font Ubuntu:size=7,weight:bold}${color}DISKS ${goto 90}${diskiograph 30,100 666666 666666}${voffset -30} ${goto 90}${font Ubuntu:size=7,weight:normal}${color}used: ${fs_used /home} /home ${goto 90}${font Ubuntu:size=7,weight:normal}${color}used: ${fs_used /} / ${voffset 10} ${goto 70}${font Ubuntu:size=18,weight:bold}${color3}NET${alignr}${color2}${font Ubuntu:size=7,weight:bold}${color1}${if_up eth0}eth ${addr eth0} ${endif}${if_up wlan0}wifi ${addr wlan0}${endif} ${goto 90}${font Ubuntu:size=7,weight:bold}${color}open ports: ${alignr}${color2}${tcp_portmon 1 65535 count} ${goto 90}${font Ubuntu:size=7,weight:bold}${color}${offset 10}IP${alignr}DPORT ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 0}${alignr 1}${tcp_portmon 1 65535 rport 0} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 1}${alignr 1}${tcp_portmon 1 65535 rport 1} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 2}${alignr 1}${tcp_portmon 1 65535 rport 2} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 3}${alignr 1}${tcp_portmon 1 65535 rport 3} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 4}${alignr 1}${tcp_portmon 1 65535 rport 4} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 5}${alignr 1}${tcp_portmon 1 65535 rport 5} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 6}${alignr 1}${tcp_portmon 1 65535 rport 6} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 7}${alignr 1}${tcp_portmon 1 65535 rport 7} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 8}${alignr 1}${tcp_portmon 1 65535 rport 8} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 9}${alignr 1}${tcp_portmon 1 65535 rport 9} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 10}${alignr 1}${tcp_portmon 1 65535 rport 10} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 11}${alignr 1}${tcp_portmon 1 65535 rport 11} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 12}${alignr 1}${tcp_portmon 1 65535 rport 12} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 13}${alignr 1}${tcp_portmon 1 65535 rport 13} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 14}${alignr 1}${tcp_portmon 1 65535 rport 14} ]]
25 czerwca 2016 o 04:38 #1616pavbaranovForumowiczTak się może głupio spytam – font Ubuntu masz zainstalowany?
25 czerwca 2016 o 11:25 #1617marsForumowiczMam zainstalowany taki pakiet czcionek Ubuntu: ttf-ubuntu-font-family
Plus conky-lua z AUR i zegary już mam. Nie mogę tylko ustawić odpowiednich wymiarów conkyrc zwłaszcza tych opcji:
gap_x = 20,
gap_y = 20,
border_inner_margin = -30,
border_outer_margin = 20,
Na razie doprowadziłem go do takiego stanu i jako tako w miarę wygląda patrząc na oryginał.
http://wstaw.org/w/40pn/
[/URL]Obecny conkyrc
conky.config = { background = true, update_interval = 1, cpu_avg_samples = 2, net_avg_samples = 2, temperature_unit = 'celsius', double_buffer = true, no_buffers = true, text_buffer_size = 2048, gap_x = 20, gap_y = 20, minimum_size = 450, maximum_width = 190, own_window = true, own_window_type = 'desktop', own_window_transparent = true, own_window_hints = 'undecorate,sticky,skip_taskbar,skip_pager,below', border_inner_margin = -30, border_outer_margin = 20, alignment = 'top_right', draw_shades = false, draw_outline = false, draw_borders = false, draw_graph_borders = false, override_utf8_locale = true, --use_xft = true, --xftfont caviar = 'dreams:size=8', font = 'caviar dreams:size=6', xftalpha = 0.5, uppercase = false, default_color = 'FFFFFF', color1 = 'DDDDDD', color2 = 'AAAAAA', color3 = '888888', color4 = '5793EA', lua_load = '~/.conky/greyblue/conky_grey.lua', lua_draw_hook_post = 'main', } conky.text = [[ ${voffset 35} ${goto 95}${color4}${font ubuntu:size=22}${time %e}${color1}${offset -50}${font ubuntu:size=10}${time %A} ${goto 85}${color2}${voffset -2}${font ubuntu:size=9}${time %b}${voffset -2} ${color3}${font ubuntu:size=12}${time %Y}${font} ${voffset 80} ${goto 90}${font Ubuntu:size=7,weight:bold}${color}CPU ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}% ${goto 90}${font Ubuntu:size=7,weight:normal}${color2}${top name 2}${alignr}${top cpu 2}% ${goto 90}${font Ubuntu:size=7,weight:normal}${color3}${top name 3}${alignr}${top cpu 3}% ${goto 90}${cpugraph 10,100 666666 666666} ${goto 90}${voffset -10}${font Ubuntu:size=7,weight:normal}${color}${threads} process ${voffset 20} ${goto 90}${font Ubuntu:size=7,weight:bold}${color}MEM ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${top_mem name 1}${alignr}${top_mem mem 1}% ${goto 90}${font Ubuntu:size=7,weight:normal}${color2}${top_mem name 2}${alignr}${top_mem mem 2}% ${goto 90}${font Ubuntu:size=7,weight:normal}${color3}${top_mem name 3}${alignr}${top_mem mem 3}% ${voffset 15} ${goto 90}${font Ubuntu:size=7,weight:bold}${color}DISKS ${goto 90}${diskiograph 30,100 666666 666666}${voffset -30} ${goto 90}${font Ubuntu:size=7,weight:normal}${color}used: ${fs_used /home} /home ${goto 90}${font Ubuntu:size=7,weight:normal}${color}used: ${fs_used /} / ${goto 70}${font Ubuntu:size=8,weight:bold}${color3}CPU1: $alignr${color2}${font Ubuntu:size=7,weight:bold}${color1}${cpu cpu1}% ${exec awk '/cpu MHz/{i++}i==1{printf "%.f",$4; exit}' /proc/cpuinfo} MHz ${goto 70}${font Ubuntu:size=7,weight:bold}${color3}Temp Cpu1:$alignr${color2}${font Ubuntu:size=7,weight:bold}${color1}${exec sensors | grep ^temp1 | tail -n 1 |awk '{print $2}'} ${goto 70}${font Ubuntu:size=8,weight:bold}${color3}Kernel:$alignr${color2}${font Ubuntu:size=7,weight:bold}${color1}$kernel ${goto 70}${font Ubuntu:size=12,weight:bold}${color3}NET${alignr}${color2}${font Ubuntu:size=7,weight:bold}${color1}${if_up wlan00}eth ${addr wlan0} ${endif}${if_up wlan0}wifi ${addr wlan0}${endif} ${goto 90}${font Ubuntu:size=6,weight:bold}${color}open ports: ${alignr}${color2}${tcp_portmon 1 65535 count} ${goto 90}${font Ubuntu:size=6,weight:bold}${color}${offset 10}IP${alignr}DPORT ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 0}${alignr 1}${tcp_portmon 1 65535 rport 0} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 1}${alignr 1}${tcp_portmon 1 65535 rport 1} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 2}${alignr 1}${tcp_portmon 1 65535 rport 2} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 3}${alignr 1}${tcp_portmon 1 65535 rport 3} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 4}${alignr 1}${tcp_portmon 1 65535 rport 4} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 5}${alignr 1}${tcp_portmon 1 65535 rport 5} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 6}${alignr 1}${tcp_portmon 1 65535 rport 6} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 7}${alignr 1}${tcp_portmon 1 65535 rport 7} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 8}${alignr 1}${tcp_portmon 1 65535 rport 8} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 9}${alignr 1}${tcp_portmon 1 65535 rport 9} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 10}${alignr 1}${tcp_portmon 1 65535 rport 10} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 11}${alignr 1}${tcp_portmon 1 65535 rport 11} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 12}${alignr 1}${tcp_portmon 1 65535 rport 12} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 13}${alignr 1}${tcp_portmon 1 65535 rport 13} ${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${tcp_portmon 1 65535 rip 14}${alignr 1}${tcp_portmon 1 65535 rport 14} ]]
Tu oryginał:
http://gnome-look.org/content/show.php/conky_grey+blue+variation?content=154952 - AutorPosty
- Musisz być zalogowany aby odpowiedzieć w tym wątku.