Показано с 1 по 3 из 3
  1. #1
    Админ
    Регистрация
    13.01.2007
    Сообщений
    25
    Сказал(а) спасибо
    30
    Поблагодарили 1 раз в 1 сообщении

    По умолчанию Настройка Conky

    Для настройки Conky используйте файл .conkyrc (можно вызвать из центра управления)

    Вот мой Conky с условиями IF для изменения цвета батареи (точнее бара)

    ================================================== ====

    # Standard antiX .conkyrc file
    #
    # Note: delete the line above to disable automatic scaling with DPI
    # on the live system.

    # set to yes if you want Conky to be forked in the background
    background yes

    short_units yes

    cpu_avg_samples 1
    net_avg_samples 1

    out_to_console no

    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 7x12
    #font 6x10
    #font 7x13
    font 8x12
    #font 7x12
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

    # Use Xft?
    use_xft yes

    # Xft font when Xft is enabled
    #xftfont gentium:size=12
    #ftfont DejaVu Sans:size=10
    xftfont DejaVu Sans:bold:size=9
    #xftfont DejaVu Sans:size=9

    # Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
    own_window yes
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar
    own_window_type desktop

    # Text alpha when using Xft
    xftalpha 1.0

    #on_bottom no

    # mail spool
    mail_spool $MAIL

    # Update interval in seconds
    update_interval 1

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

    # Minimum size of text area
    minimum_size 5 5
    maximum_width 200

    # 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 10

    # border width
    border_width 2

    # Default colors and also border colors
    default_color white
    default_shade_color white
    default_outline_color white

    color1 green
    color2 yellow
    color3 red
    color4 yellow
    color8 77ccff
    color9 5599cc

    memset1 20
    memset2 21
    memset3 30


    # Text alignment, other possible values are commented
    # alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right

    # Gap between borders of screen and text

    gap_x 20
    gap_y 40

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

    # Subtract file system buffers from used memory?
    no_buffers yes

    # if_up_strictness link: up | link | address
    if_up_strictness address

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

    # boinc (seti) dir
    # seti_dir /opt/seti

    # Possible variables to be used:
    #
    # Variable Arguments Description
    # acpiacadapter ACPI ac adapter state.
    # acpifan ACPI fan state
    # acpitemp ACPI temperature.
    # adt746xcpu CPU temperature from therm_adt746x
    # adt746xfan Fan speed from therm_adt746x
    # battery (num) Remaining capasity in ACPI or APM
    # battery. ACPI battery number can be
    # given as argument (default is BAT0).
    # buffers Amount of memory buffered
    # cached Amount of memory cached
    # color (color) Change drawing color to color
    # cpu CPU usage in percents
    # cpubar (height) Bar that shows CPU usage, height is
    # bar's height in pixels
    # downspeed net Download speed in kilobytes
    # downspeedf net Download speed in kilobytes with one
    # decimal
    # exec shell command Executes a shell command and displays
    # the output in torsmo. warning: this
    # takes a lot more resources than other
    # variables. I'd recommend coding wanted
    # behaviour in C and posting a patch :-).
    # execi interval, shell Same as exec but with specific interval.
    # command Interval can't be less than
    # update_interval in configuration.
    # fs_bar (height), (fs) Bar that shows how much space is used on
    # a file system. height is the height in
    # pixels. fs is any file on that file
    # system.
    # fs_free (fs) Free space on a file system available
    # for users.
    # fs_free_perc (fs) Free percentage of space on a file
    # system available for users.
    # fs_size (fs) File system size
    # fs_used (fs) File system used space
    # hr (height) Horizontal line, height is the height in
    # pixels
    # i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
    # may be omitted if you have only one I2C
    # device. type is either in (or vol)
    # meaning voltage, fan meaning fan or temp
    # meaning temperature. n is number of the
    # sensor. See /sys/bus/i2c/devices/ on
    # your local computer.
    # kernel Kernel version
    # loadavg (1), (2), (3) System load average, 1 is for past 1
    # minute, 2 for past 5 minutes and 3 for
    # past 15 minutes.
    # machine Machine, i686 for example
    # mails Mail count in mail spool. You can use
    # program like fetchmail to get mails from
    # some server using your favourite
    # protocol. See also new_mails.
    # mem Amount of memory in use
    # membar (height) Bar that shows amount of memory in use
    # memmax Total amount of memory
    # memperc Percentage of memory in use
    # new_mails Unread mail count in mail spool.
    # nodename Hostname
    # outlinecolor (color) Change outline color
    # pre_exec shell command Executes a shell command one time before
    # torsmo displays anything and puts output
    # as text.
    # processes Total processes (sleeping and running)
    # running_processes Running processes (not sleeping),
    # requires Linux 2.6
    # shadecolor (color) Change shading color
    # stippled_hr (space), Stippled (dashed) horizontal line
    # (height)
    # swapbar (height) Bar that shows amount of swap in use
    # swap Amount of swap in use
    # swapmax Total amount of swap
    # swapperc Percentage of swap in use
    # sysname System name, Linux for example
    # time (format) Local time, see man strftime to get more
    # information about format
    # totaldown net Total download, overflows at 4 GB on
    # Linux with 32-bit arch and there doesn't
    # seem to be a way to know how many times
    # it has already done that before torsmo
    # has started.
    # totalup net Total upload, this one too, may overflow
    # updates Number of updates (for debugging)
    # upspeed net Upload speed in kilobytes
    # upspeedf net Upload speed in kilobytes with one
    # decimal
    # uptime Uptime
    # uptime_short Uptime in a shorter format
    #
    # seti_prog [email protected] current progress
    # seti_progbar (height) [email protected] current progress bar
    # seti_credit [email protected] total user credit


    ## antiX additives examples. Add below Text##
    ##Battery examples##
    ##${color}battery: ${color}$acpiacadapter, ${battery_percent BAT1}%
    ##${color}battery:${color} ${battery}
    #${color}ACPI Battery: ${color}$battery
    #${battery_bar 11,0}
    ##Wireless example##
    #${color}Wireless:
    #${color}essid: ${wireless_essid wlan0}
    #${color}IP:${color} ${addr wlan0}
    #${color}speed: ${color} ${wireless_bitrate wlan0}
    #${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}
    # stuff after 'TEXT' will be formatted on screen
    #${color}res:${alignr}${color3}${execi 60 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
    #${color}dpi:${alignr}${color3}${execi 60 sed -nr "s/^\s*Xft.dpi:\s*([0-9]+(x[0-9]+)?).*/\1/p" $HOME/.Xresources | grep "[0-9]" || echo 96}
    #${color}Automount: ${alignr}${color3}${execi 60 grep -q "^automount=TRUE" $HOME/.desktop-session/automount.conf 2>/dev/null && echo "enabled" || echo "disabled"}
    #${color}${alignc}${exec disp=${DISPLAY#:}; disp=${disp%.[0-9]}; cat $HOME/.desktop-session/desktop-code.$disp 2>/dev/null}
    #${color}wlan1 up: $alignr${color3} ${upspeed wlan1}
    #${color2}$alignr${upspeedgraph wlan1 30,170 5599cc 5599cc}
    #${color}wlan1 down: $alignr${color3} ${downspeed wlan1}
    #${color2}$alignr${downspeedgraph wlan1 30,170 5599cc 5599cc}${endif}
    #${color}${alignr}${color8}Used / Total
    #${color}RAM:${alignr}$mem ${color3} /${color} $memmax
    #${color}Swap:${alignr}$swap ${color3} /${color} $swapmax
    #${color}/ Disk:${alignr}${fs_used /} ${color3} /${color} ${fs_size /}
    #${color3}${alignc}${execi 1000 persist-enabled}
    #${execi 1000 acpi 2>/dev/null | grep -q . && echo "Batt: "}${execi 10 acpi -b 2>/dev/null | cut -d" " -f3,4 | sed 's/,$//'}



    TEXT
    ${color8}${font DejaVu Sans:size=49}${time %I:%M}$font

    ${color}${alignc}MESSER
    ${color2}${alignc}${time %A %d %B}
    ${color}${alignc}В работе: $uptime

    ${color}CPU1:${alignr}${color}${cpu cpu1}${color}%
    ${color}${color}${cpubar cpu1}${color}
    ${color}CPU2:${alignr}${color}${cpu cpu2}${color}%
    ${color}${color}${cpubar cpu2}${color}
    DDR $alignr $mem$alignr/ $memperc%
    ${if_match ${memperc} <= 50}${color1}${membar}${color}${endif}${if_match ${memperc} >= 51}${color3}${membar}${color}${endif}
    ${color}HDD:${alignr}${color}${fs_used}${color}
    ${color}${fs_bar}${color}
    ${color}БАТАРЕЯ:${alignr}${color}${battery_ percent BAT1}%${color}
    ${if_match ${battery_percent BAT1} >= 80}${color1}${battery_bar BAT1}${color}\${else}${if_match ${battery_percent BAT1} <= 79}${color2}${battery_bar BAT1}${color}\${else}${if_match ${battery_percent BAT1} <= 30}${color1}${battery_bar BAT1}${color}${endif}${endif}\${endif}
    #${if_match ${battery_percent BAT1} <= 30}${color3}${battery_bar BAT1}${color}${else}${if_match ${battery_percent BAT1} <= 79}${color2}${battery_bar BAT1}${color}${else}${if_match ${battery_percent BAT1} >= 80}${color1}${battery_bar BAT1}${color}${endif}${endif}${endif}

    ${rss [Только зарегистрированные пользователи могут видеть ссылки. ] 1 item_titles 5 }

    ${color}Disk:${alignr}${color}${diskio}
    ${color}${alignr}${diskiograph 30,200 5599cc 5599cc}${if_up eth0}
    ${color}eth0 up: $alignr${color} ${upspeed eth0}
    ${color}$alignr${upspeedgraph eth0 30,170 5599cc 5599cc}
    ${color}eth0 down: $alignr${color} ${downspeed eth0}
    ${color2}$alignr${downspeedgraph eth0 30,170 5599cc 5599cc}${endif}
    ${if_up eth1}${color}eth1 up: $alignr${color} ${upspeed eth1}
    ${color}$alignr${upspeedgraph eth1 30,200 5599cc 5599cc}
    ${color}eth1 down: $alignr${color3} ${downspeed eth1}
    ${color}$alignr${downspeedgraph eth1 30,170 5599cc 5599cc}${endif}
    ${if_up wlan0}${color}Wi-fi up: $alignr${color} ${upspeed wlan0}
    ${color}$alignr${upspeedgraph wlan0 30,200 5599cc 5599cc}
    ${color}Wi-fi down: $alignr${color} ${downspeed wlan0}
    ${color}$alignr${downspeedgraph wlan0 30,200 5599cc 5599cc}${endif}${if_up wlan1}

    ${color}${top_mem name 1} $alignr${color} ${top_mem mem_res 1}
    ${color}${top_mem name 2} $alignr${color} ${top_mem mem_res 2}
    ${color}${top_mem name 3} $alignr${color} ${top_mem mem_res 3}
    ${color}${top_mem name 4} $alignr${color} ${top_mem mem_res 4}
    ${color}${top_mem name 5} $alignr${color} ${top_mem mem_res 5}

  2. #2
    Админ
    Регистрация
    13.01.2007
    Сообщений
    25
    Сказал(а) спасибо
    30
    Поблагодарили 1 раз в 1 сообщении

    По умолчанию Re: Настройка Conky

    Вместо моих настроек BAT1 укажите свои (возможно BAT0 или BAT2)

  3. #3
    Админ
    Регистрация
    13.01.2007
    Сообщений
    25
    Сказал(а) спасибо
    30
    Поблагодарили 1 раз в 1 сообщении

    По умолчанию Re: Настройка Conky

    Показывать RSS ленты
    Conky имеет возможность отображать RSS-ленты самостоятельно, без необходимости применения внешних скриптов. Например, чтобы отображать заголовки десяти последних обновлений Planet Arch и обновлять ленту каждую минуту вы должны поместить это в ваш ~/.conkyrc в раздел TEXT:

    ${rss [Только зарегистрированные пользователи могут видеть ссылки. ] 1 item_titles 10 }

Похожие темы

  1. Настройка 1с УТ 10.3 РИБ
    от foralex2006 в разделе Установка и администрирование 1С - Предприятие
    Ответов: 1
    Последнее сообщение: 13.07.2015, 17:24
  2. ТиС 9.0 настройка
    от Kuzenadm в разделе 1С - Предприятие 7.7
    Ответов: 1
    Последнее сообщение: 05.07.2013, 09:13
  3. Настройка Wi-fi
    от axistik в разделе Ноутбуки
    Ответов: 1
    Последнее сообщение: 07.03.2011, 00:29
  4. Настройка FTP
    от tixonya в разделе В помощь системному администратору
    Ответов: 2
    Последнее сообщение: 15.06.2010, 16:22
  5. Настройка PGP
    от Phobos24 в разделе СОФТ (SOFT)
    Ответов: 0
    Последнее сообщение: 14.07.2008, 16:30

Социальные закладки

Социальные закладки

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •