Conky-brak polskich liter i brak autostartu

Witam!

Jako że lubię testować nowe programy wyglądu- zainstalowałem conky :slight_smile: Podoba mi sie ta aplikacja-lekka i mega konfigurowalna. Wgrałem sobie config, usunąłem migające ikonki, zedytowałem konfig według własnych potrzeb, jednak mam problem. Program nie obsługuje mi polskich liter. Tak jak dzisiaj jest Poniedziałek, conky tak wyświetla tę nazwę:

beznazwyah.th.jpg

Co z tym zrobić? Chciałbym by wykrywał polskie znaki, jednak jak się nie da niech nie pokazuje tych "krzaczków’’ :slight_smile:

Druga sprawa to to że conky nie włącza się razem z systemem…

autostart- System -> Preferencje -> Programy startowe i wpisujesz:

conky -d -c /home/nazwa_użytkownika/.conkyrc

brak polskich znaków jest chyba spowodowany nipoprawnie ustawionym kodowaniem treści, masz wpisane UTF-8 ??

a gdzie to się sprawdza?

To pokaż zawartość .conkyrc.

  1. Pomimo wpisania wpisu podanego przez niezDarek nadal conky nie uruchamia się ze startem

  2. Zawartość conkyrc:

    background yes

    #prawy dolny rog

    gap_x 1100

    gap_y 100

    maximum_width 170

    X font when Xft is disabled, you can pick one with program xfontsel

    #font ----r-normal–14----c-*-iso8859-2

    font -xos4-terminus--r-normal--12-100---c-*-iso10646-1

    Use Xft?

    use_xft yes

    #xftfont Bitstream Vera Sans Mono:size=8

    xftfont Terminus:encoding=utf-8:size=9

    xftalpha 0.9

    update_interval 1.0

    total_run_times 0

    own_window yes

    own_window_type override

    #own_window_type desktop

    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

    own_window_transparent yes

    If own_window_transparent is set to no, you can set the background colour here

    own_window_colour hotpink

    Use double buffering (reduces flicker, may not work for everyone)

    double_buffer yes

    draw_shades yes

    draw_outline no

    draw_borders no

    stippled_borders 8

    border_margin 4

    border_width 1

    default_color white

    default_shade_color black

    default_outline_color white

    alignment top_left

    no_buffers yes

    uppercase no

    cpu_avg_samples 2

    net_avg_samples 2

    override_utf8_locale no

    use_spacer yes

    TEXT

    ${color #ddaa00}${font Terminus:encoding=iso8859-2:size=15}${time %A}${color}

    ${font :encoding=iso8859-2:size=9}$alignc${color #ddaa00}${time %e %B %G}

    ${color slate grey}Czas:

    $alignc${color }$uptime

    ${color }${color slate grey}Procesor: $color%${color #ddaa00}$cpu$alignr$color$running_processes/ $processes

    ${color slate grey}${cpugraph 25,170 000000 ffffff}

    ${font :size=8}${color #ddaa00}${top name 1}$alignr${top cpu 1}

    ${color lightgrey}${top name 2}$alignr${top cpu 2}

    ${color lightgrey}${top name 3}$alignr${top cpu 3}

    ${color lightgrey}${top name 4}$alignr${top cpu 4}

    ${font :size=9}

    ${color slate grey}Pamiec: $color%$memperc ${alignr}$mem

    ${membar 5,170}

Tam gdzie masz

encoding=iso8859-2:

Chyba ma być

encoding=utf-8:

A to:

font -xos4-terminus-*-r-normal-*-12-100-*-*-c-*-iso10646-1

Też jest źle, ja w ogóle nie mam takiej linii, mam tylko coś z xftfont. Daj taki .conkyrc:

background yes


#prawy dolny rog

gap_x 1100

gap_y 100


maximum_width 170


# X font when Xft is disabled, you can pick one with program xfontsel

#font -*-*-*-r-normal--14-*-*-*-c-*-iso8859-2



# Use Xft?

use_xft yes


#xftfont Bitstream Vera Sans Mono:size=8

xftfont Terminus:encoding=utf-8:size=9

xftalpha 0.9


update_interval 1.0


total_run_times 0


own_window yes

own_window_type override


#own_window_type desktop

#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

own_window_transparent yes


# If own_window_transparent is set to no, you can set the background colour here

own_window_colour hotpink


# Use double buffering (reduces flicker, may not work for everyone)

double_buffer yes

draw_shades yes

draw_outline no

draw_borders no

stippled_borders 8

border_margin 4

border_width 1


default_color white

default_shade_color black

default_outline_color white


alignment top_left

no_buffers yes

uppercase no


cpu_avg_samples 2

net_avg_samples 2


override_utf8_locale no


use_spacer yes


TEXT

${color #ddaa00}${font Terminus:encoding=iso8859-2:size=15}${time %A}${color}

${font :size=9}$alignc${color #ddaa00}${time %e %B %G}


${color slate grey}Czas:

$alignc${color }$uptime


${color }${color slate grey}Procesor: $color%${color #ddaa00}$cpu$alignr$color$running_processes/ $processes

${color slate grey}${cpugraph 25,170 000000 ffffff}

${font :size=8}${color #ddaa00}${top name 1}$alignr${top cpu 1}

${color lightgrey}${top name 2}$alignr${top cpu 2}

${color lightgrey}${top name 3}$alignr${top cpu 3}

${color lightgrey}${top name 4}$alignr${top cpu 4}

${font :size=9}

${color slate grey}Pamiec: $color%$memperc ${alignr}$mem

${membar 5,170}

To jest zakomentowane przecież, czyli nie brane pod uwagę :slight_smile:

Tak ma ustawione :slight_smile: Sprawdź czy masz w ogóle zainstalowane czcionki Terminus. Pokaż jeszcze wynik polecenia:

locale

Pozdrawiam!

Chodzi mi o tą linię:

${font :encoding=iso8859-2:size=9}$alignc${color #ddaa00}${time %e %B %G}

To nie jest za komentowane :smiley: .

Rzeczywiście moje przeoczenie. Zmęczony dziś trochę jestem to i z koncentracją gorzej :stuck_out_tongue:

Pozdrawiam!

poczekajcie powolutku :smiley: na początek ten autostart.Wpisałem to:

i niestety conky nie uruchamia się z systemem. Po prostu nic sie nie pojawia :frowning:

Po wpisaniu w polu polecenie samo conky kompletnie psuje start systemu-jak jest to logo ubuntu i pasek ładowania to się przycina i wyświetla się conky na 2 sekundy, później znika iładuje się system pokazuje pulpit i conky nie mam :frowning:

Dodane 24.11.2009 (Wt) 14:05

zdaje mi się że trzeba zapodać takie polecenie, żeby conky uruchamiał się po 5 sekundach-tylko jakie?

A literki już działają? Co do opóźnienia to zrób tak:

#!/bin/bash

sleep 7

conky

Zapisujesz jako np. conky.sh, nadajesz prawa do uruchomienia i w autostarcie dajesz:

sh <ścieżką do conky.sh>

ok z tego co widzę to conky uruchamia się już wraz ze startem-dzięki :slight_smile: a teraz przejdźmy do tych literek.

Wynik polecenia locale :

Czcionki Terminus w OpenOffice nie widzę, ale z tego co widzę to jest masa innych czcionek które obslugują polskie znaki :slight_smile: np. znaazłem czcionkę Purisa która ładnie wyglada-czy dałoby się ją ustawić na czcionkę w conky? Może to by załatwiło sprawe?

Dodane 24.11.2009 (Wt) 14:45

niestety po zamianie pliku conkyrc na ten który podał dragonn jest dokładnie to samo-jako że dziś wtorek i nie ma jak sprawdzić, to zamieniłem Pamiec na Pamięć i wykrywa krzaczki…

To ją bym właśnie zmienił czcionki na np. Sansa ją tej używam w conky i wygląda całkiem ładnie, a na pewną ją masz w systemie. Możesz oczywiście dać jaką chcesz, ale jak nie będzie działać to spróbuj moją.

heh zmieniłem czcione edytując 2 linijki, te:

i zabiłem conky programem top, następnie uruchomiłem go na nowo i niestety nic sie nei zmieniło, czcionka jest taka sama… :shock: a może nie te linijki co trzeba zmieniłem?

Hmm, może w tej linijce:

${color #ddaa00}${font Sansa:encoding=iso8859-2:size=15}${time %A}${color}

Też należy ustawić UTF8?

Zamień w ogóle linię

${color #ddaa00}${font Sansa:encoding=iso8859-2:size=15}${time %A}${color}

na:

${color #ddaa00}${font Sansa:size=15}${time %A}${color}

Ja nie gdzie w conkyrc nie mam określonego kodowania, to też wywal:

xftfont Sansa:encoding=utf-8:size=9

I zrób:

xftfont Sansa::size=9

A tak wygląda mój conkyrc:

# Use Xft?

use_xft yes

xftfont Sansa :size=7.8

xftalpha 0.5

text_buffer_size 2048


# Update interval in seconds

update_interval 1


# This is the number of times Conky will update before quitting.

# Set to zero to run forever.

total_run_times 0


# Create own window instead of using desktop (required in nautilus)

own_window yes

own_window_transparent yes

own_window_type override

#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


# Use double buffering (reduces flicker, may not work for everyone)

double_buffer yes


# Minimum size of text area

minimum_size 250



# Draw shades?

draw_shades no


# Draw outlines?

draw_outline no


# Draw borders around text

draw_borders no


# Stippled borders?

stippled_borders 0


# border margins

border_margin 1


# border width

border_width 2


# Default colors and also border colors

default_color ffffff

default_outline_color 333333

#default_shade_color black

#default_outline_color black

#own_window_colour 000000


# Text alignment, other possible values are commented

alignment top_right

#alignment middle_right

#alignment bottom_left

#alignment bottom_right


# Gap between borders of screen and text

# same thing as passing -x at command line

gap_x 10

gap_y 24


# Subtract file system buffers from used memory?

no_buffers yes


# set to yes if you want all text to be in uppercase

uppercase no


# number of cpu samples to average

# set to 1 to disable averaging

cpu_avg_samples 2


# number of net samples to average

# set to 1 to disable averaging

net_avg_samples 2


# Force UTF8? note that UTF8 support required XFT

override_utf8_locale yes


# Add spaces to keep things from moving about? This only affects certain objects.

use_spacer none

TEXT

${color 555A56}System ${hr 1}$color

$kernel}

Uptime: ${uptime}

Load: $loadavg

Processes: $processes / Running: $running_processes

Repos: ${execpi 1500 paconky .repos.paconky}${color 1793D1}${goto 190}${voffset -50}${font OpenLogos:size=65}A${font}$color

${color 555A56}CPU ${hr 1}$color

Temperature: ${execi 10 sensors | grep "temp1" | cut -b 15-16}°C${alignr}CPU1: ${execi 10 sensors | grep "Core 0" | cut -b 15-16}°C / CPU2: ${execi 10 sensors | grep "Core 1" | cut -b 15-16}°C

Clock: ${freq_g 1}Ghz${alignr}Fan speed: ${execpi 10 cat '/sys/devices/platform/it87.656/fan3_input' } rpm

CPU1: ${cpu cpu1}%${alignr}CPU2: ${cpu cpu2}%

${color 555A56}${cpubar cpu1 4,120}${alignr}${cpubar cpu2 4,120}$color

${color 555A56}${cpugraph cpu1 40,120 555A56 555A56}${alignr}${cpugraph cpu2 40,120 555A56 555A56}$color

${color 555A56}Disk ${hr 1}$color

Temperature: ${execi 10 sudo hddtemp /dev/sda | cut -b 32-36 }

DiskIO read: ${diskio_read /dev/sda}${alignr}DiskIO write: ${diskio_write /dev/sda}

${color 555A56}${diskiograph_read /dev/sda 40,120 555A56 555A56}${alignr}${diskiograph_write /dev/sda 40,120 555A56 555A56}$color

/root: ${fs_used /}/${fs_size /}${alignr}${color 555A56}${fs_bar 4,120 /}$color

/home ${fs_used /home}/${fs_size /home}${alignr}${color 555A56}${fs_bar 4,120 /home}$color

/boot ${fs_used /boot}/${fs_size /boot}${alignr}${color 555A56}${fs_bar 4,120 /boot}$color

${color 555A56}GFX ${hr 1}$color

GPU clock: ${execi 10 nvidia-settings -q gpucurrentclockfreqs | grep "(arch:0.0)" | cut -b 48-50} Mhz${alignr}Memory clock ${execi 10 nvidia-settings -q gpucurrentclockfreqs | grep "(arch:0.0)" | cut -b 52-54} Mhz

Temperature: ${execi 10 nvidia-settings -q gpucoretemp | grep "(arch:0.0)" | cut -b 39-40}°C${alignr}PCB temperature: ${execi 10 nvidia-settings -q gpuambienttemp | grep "(arch:0.0)" | cut -b 42-43}°C

${color 555A56}Memory ${hr 1}$color

${color 555A56}${memgraph 40,120 555A56 555A56}${voffset -40}$color${alignr}RAM: $mem / $memmax

${alignr}${color 555A56}${membar 4,95}$color ${memperc}%

${alignr}SWAP: $swap / $swapmax

${alignr}${color 555A56}${swapbar 4,95}$color${alignr} ${swapperc}%

${color 555A56}Network ${hr 1}$color

Ip: ${addr eth0}${alignr}Inbox: ${pop3_unseen pop3.adres login hasło [-i 10]} 

Down: ${downspeed eth0}${alignr}Up: ${upspeed eth0}

Totaldown: ${totaldown eth0}${alignr}Totalup: ${totalup eth0}

${color 555A56}${downspeedgraph eth0 40,120 555A56 555A56 128}${alignr}${upspeedgraph eth0 40,120 555A56 555A56 32}$color

${color #555A56}Weather ${hr 1}$color

${voffset 10}${alignr 56}${color 555A56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=PLXX0020 --datatype=WF}${font}

${color 555A56}${voffset -50}${font Weather:size=40}y${font}$color ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=PLXX0020 --datatype=HT}${font}



${voffset -5}${goto 14} ${execpi 600 conkyForecast --location=PLXX0020 --datatype=DW --startday=1 --shortweekday}${goto 75} ${execpi 600 conkyForecast --location=PLXX0020 --datatype=DW --startday=2 --shortweekday}${goto 124} ${execpi 600 conkyForecast --location=PLXX0020 --datatype=DW --startday=3 --shortweekday}${goto 182} ${execpi 600 conkyForecast --location=PLXX0020 --datatype=DW --startday=4 --shortweekday}

    ${color 555A56}${voffset 10}${font ConkyWeather:size=32}${execpi 600 conkyForecast --location=PLXX0020 --datatype=WF --startday=1 --endday=4 --spaces=2}${font}$color

${voffset 4}${goto 10} ${font DejaVu Sans:size=7}${execpi 600 conkyForecast --location=PLXX0020 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=PLXX0020 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${goto 64} ${execpi 600 conkyForecast --location=PLXX0020 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=PLXX0020 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${goto 120} ${execpi 600 conkyForecast --location=PLXX0020 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=PLXX0020 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${goto 174} ${execpi 600 conkyForecast --location=PLXX0020 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=PLXX0020 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}

${color 555A56}Pidgin ${hr 1}$color

Online: ${execi 10 conkyPidgin -o -t ~/.conkyPidgin2 | wc -l} / ${execi 10 conkyPidgin -t ~/.conkyPidgin2 | wc -l}

${execpi 10 conkyPidgin -o -t ~/.conkyPidgin -C ^ -A a -U x -N s -W P -M ~ -F r}

Tak do wglądu i mam polskie litery.

sorry że odgrzebuję temat ale do tej pory sprawa nie rozwiązana wykonałe polecenia podane wyżej i jest to samo.

a po wposaniu configa podanego wyżej wywala mi conky- przy próbie uruchomienia:

Ba tam masz części które nie będą chodzić no innych kompach i bez dodatkowych programów. Spróbuj tak:

# Use Xft?

    use_xft yes

    xftfont Sansa :size=7.8

    xftalpha 0.5

    text_buffer_size 2048


    # Update interval in seconds

    update_interval 1


    # This is the number of times Conky will update before quitting.

    # Set to zero to run forever.

    total_run_times 0


    # Create own window instead of using desktop (required in nautilus)

    own_window yes

    own_window_transparent yes

    own_window_type override

    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


    # Use double buffering (reduces flicker, may not work for everyone)

    double_buffer yes


    # Minimum size of text area

    minimum_size 250



    # Draw shades?

    draw_shades no


    # Draw outlines?

    draw_outline no


    # Draw borders around text

    draw_borders no


    # Stippled borders?

    stippled_borders 0


    # border margins

    border_margin 1


    # border width

    border_width 2


    # Default colors and also border colors

    default_color ffffff

    default_outline_color 333333

    #default_shade_color black

    #default_outline_color black

    #own_window_colour 000000


    # Text alignment, other possible values are commented

    alignment top_right

    #alignment middle_right

    #alignment bottom_left

    #alignment bottom_right


    # Gap between borders of screen and text

    # same thing as passing -x at command line

    gap_x 10

    gap_y 24


    # Subtract file system buffers from used memory?

    no_buffers yes


    # set to yes if you want all text to be in uppercase

    uppercase no


    # number of cpu samples to average

    # set to 1 to disable averaging

    cpu_avg_samples 2


    # number of net samples to average

    # set to 1 to disable averaging

    net_avg_samples 2


    # Force UTF8? note that UTF8 support required XFT

    override_utf8_locale yes


    # Add spaces to keep things from moving about? This only affects certain objects.

    use_spacer none

    TEXT

    ${color 555A56}System ${hr 1}$color

    $kernel}

    Uptime: ${uptime}

    Load: $loadavg

    Processes: $processes / Running: $running_processes


    ${color 555A56}CPU ${hr 1}$color


    Clock: ${freq_g 1}Ghz${alignr}

    CPU1: ${cpu cpu1}%${alignr}CPU2: ${cpu cpu2}%

    ${color 555A56}${cpubar cpu1 4,120}${alignr}${cpubar cpu2 4,120}$color

    ${color 555A56}${cpugraph cpu1 40,120 555A56 555A56}${alignr}${cpugraph cpu2 40,120 555A56 555A56}$color

    ${color 555A56}Disk ${hr 1}$color


    DiskIO read: ${diskio_read /dev/sda}${alignr}DiskIO write: ${diskio_write /dev/sda}

    ${color 555A56}${diskiograph_read /dev/sda 40,120 555A56 555A56}${alignr}${diskiograph_write /dev/sda 40,120 555A56 555A56}$color

    /root: ${fs_used /}/${fs_size /}${alignr}${color 555A56}${fs_bar 4,120 /}$color

    /home ${fs_used /home}/${fs_size /home}${alignr}${color 555A56}${fs_bar 4,120 /home}$color

    /boot ${fs_used /boot}/${fs_size /boot}${alignr}${color 555A56}${fs_bar 4,120 /boot}$color

    ${color 555A56}GFX ${hr 1}$color



    ${color 555A56}Memory ${hr 1}$color

    ${color 555A56}${memgraph 40,120 555A56 555A56}${voffset -40}$color${alignr}RAM: $mem / $memmax

    ${alignr}${color 555A56}${membar 4,95}$color ${memperc}%

    ${alignr}SWAP: $swap / $swapmax

    ${alignr}${color 555A56}${swapbar 4,95}$color${alignr} ${swapperc}%

    ${color 555A56}Network ${hr 1}$color

    Ip: ${addr eth0}${alignr}Inbox: ${pop3_unseen pop3.adres login hasło [-i 10]}

    Down: ${downspeed eth0}${alignr}Up: ${upspeed eth0}

    Totaldown: ${totaldown eth0}${alignr}Totalup: ${totalup eth0}

    ${color 555A56}${downspeedgraph eth0 40,120 555A56 555A56 128}${alignr}${upspeedgraph eth0 40,120 555A56 555A56 32}$color

Albo tak (moje ustawienia dla conky a twój conky):

# Use Xft?

    use_xft yes

    xftfont Sansa :size=7.8

    xftalpha 0.5

    text_buffer_size 2048


    # Update interval in seconds

    update_interval 1


    # This is the number of times Conky will update before quitting.

    # Set to zero to run forever.

    total_run_times 0


    # Create own window instead of using desktop (required in nautilus)

    own_window yes

    own_window_transparent yes

    own_window_type override

    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


    # Use double buffering (reduces flicker, may not work for everyone)

    double_buffer yes


    # Minimum size of text area

    minimum_size 250



    # Draw shades?

    draw_shades no


    # Draw outlines?

    draw_outline no


    # Draw borders around text

    draw_borders no


    # Stippled borders?

    stippled_borders 0


    # border margins

    border_margin 1


    # border width

    border_width 2


    # Default colors and also border colors

    default_color ffffff

    default_outline_color 333333

    #default_shade_color black

    #default_outline_color black

    #own_window_colour 000000


    # Text alignment, other possible values are commented

    alignment top_right

    #alignment middle_right

    #alignment bottom_left

    #alignment bottom_right


    # Gap between borders of screen and text

    # same thing as passing -x at command line

    gap_x 10

    gap_y 24


    # Subtract file system buffers from used memory?

    no_buffers yes


    # set to yes if you want all text to be in uppercase

    uppercase no


    # number of cpu samples to average

    # set to 1 to disable averaging

    cpu_avg_samples 2


    # number of net samples to average

    # set to 1 to disable averaging

    net_avg_samples 2


    # Force UTF8? note that UTF8 support required XFT

    override_utf8_locale yes


    # Add spaces to keep things from moving about? This only affects certain objects.

    use_spacer none


TEXT

${color #ddaa00}${font Terminus:encoding=iso8859-2:size=15}${time %A}${color}

${font :encoding=iso8859-2:size=9}$alignc${color #ddaa00}${time %e %B %G}


${color slate grey}Czas:

$alignc${color }$uptime


${color }${color slate grey}Procesor: $color%${color #ddaa00}$cpu$alignr$color$running_processes/ $processes

${color slate grey}${cpugraph 25,170 000000 ffffff}

${font :size=8}${color #ddaa00}${top name 1}$alignr${top cpu 1}

${color lightgrey}${top name 2}$alignr${top cpu 2}

${color lightgrey}${top name 3}$alignr${top cpu 3}

${color lightgrey}${top name 4}$alignr${top cpu 4}

${font :size=9}

${color slate grey}Pamiec: $color%$memperc ${alignr}$mem

${membar 5,170}

A teraz zauważałem, spróbuj najpierw w twoim conkyrc zmienić:

override_utf8_locale no

Na:

override_utf8_locale yes