جارى التحميل
صفحة 2 من 2 الأولىالأولى 12
النتائج 21 إلى 26 من 26

الموضوع: Post your Conkyrc

  1. #21
    ::مشرف قسم توزيعة فرتكس:: الصورة الرمزية حسن الدهراوي
    التوزيعة
    Ubuntu 10.04
    واجهة النظام
    GNOME
    محل الإقامة
    مصر

    تاريخ التسجيل
    Mar 2008
    المشاركات
    2,085
    شكراً
    561
    شُكر 3,218 مرة في 823 موضوع
    مقالات المدونة
    1

    افتراضي

    # Use Xft?
    use_xft yes
    xftfont Sans:size=7
    #xftalpha 0.8
    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 160 0
    maximum_width 160
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_graph_borders yes
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_margin 5
    
    # border width
    border_width 5
    
    # Default colors and also border colors
    default_color 303030
    #default_shade_color white
    #default_outline_color black
    own_window_colour 262626
    
    # 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
    # same thing as passing -x at command line
    gap_x 10
    gap_y 10
    
    # 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 1
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 1
    
    # 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
    ${image ~/.scripts/tlo.png -p -1,0 -s 600x1280}
    
    ${color white}SYS ${hr 1}${color white}
    
    ${color ff4848}${font OpenLogos:size=40}S${voffset -30}${color white}${font Arial Black:size=18}${offset 4}${time %H:%M}${color EE3A03}${font Arial Black:size=12}${time :%S}${font}
    ${color 98c2c7}${font Arial Black:size=10}${offset 60}${time %d/%m/%Y}${voffset 6}
    ${offset 15}${font Arial Black:size=8}${color white}$kernel $machine}${color white}
    ${font StyleBats:size=15}K${font} CPU1 ${alignr}${cpu cpu0}% ${cpugraph cpu0 cpu1 10,70 262626 CCCCCC}
    ${font StyleBats:size=15}k${font} CPU2 ${alignr}${cpu cpu1}% ${cpugraph cpu1 10,70 262626 CCCCCC}
    ${font StyleBats:size=15}y${font} RAM ${alignr}$memperc% ${memgraph 10,70 262626 CCCCCC}
    ${font PizzaDude Bullets:size=15}p${font} SWAP ${alignr}$swapperc% ${color white}${swapbar 10,70}${color white}${color white}
    ${font StyleBats:size=15}p${font} Uptime${alignr}${uptime}
    
    TEMP ${hr 1}${color white}
    
    ${color DD0000}${font weather:size=45}y ${font}${color white} ${voffset -50}
    ${offset 20}MB: ${alignr}${color white}${acpitemp}°C${color white}
    ${offset 20}CPU1: ${alignr}${color white}${execi 300 sensors | grep Core0 | cut -c15-16 ;}°C${color white}
    ${offset 20}CPU2: ${alignr}${color white}${execi 300 sensors | grep Core1 | cut -c15-16 ;}°C${color white}
    ${offset 20}${pre_exec nc localhost 7634 | sed -e 's/|[[:digit:]]\{2,4\}|C|/\n/g' | grep sda | sed -e 's/|.*|//'} ${alignr} ${hddtemp /dev/sda}°C
    
    HDD ${hr 1}
    Filesystem ${alignr}${fs_used /}/${fs_size /}
    ${fs_used_perc /}%${alignr}${fs_bar 7,120 /} 
    ${diskiograph 15,160 262626 238B23}${color white}
    ${color A0D647}${font Martin Vogel's Symbols:size=20}m${font}${color white}${voffset -5}${offset 5}NET ${hr 1} 
    ${if_existing /proc/net/route wlan0} 
    ${font PizzaDude Bullets:size=10}O${font} Up${alignr}${upspeed wlan0}kb/s${alignr}${upspeedgraph wlan0 10,70 262626 FF3C00}} 
    ${font PizzaDude Bullets:size=10}U${font} Do${alignr}${downspeed wlan0}kb/s${alignr}${downspeedgraph wlan0 10,70 262626 3AE813} 
    ${font PizzaDude Bullets:size=10}N${font} Upload:${alignr}${totalup wlan0} 
    ${font PizzaDude Bullets:size=10}T${font} Download:${alignr}${totaldown wlan0} 
    ${font PizzaDude Bullets:size=10}Z${font}${wireless_essid wlan0} Signal${alignr}${wireless_link_qual wlan0}%${wireless_link_bar 15,160 wlan0} 
    ${font PizzaDude Bullets:size=10}a${font}Local Ip:${alignr}${addr wlan0} 
    ${font PizzaDude Bullets:size=10}b${font}Public Ip:${alignr}${execi 1 ~/.scripts/ip.sh} 
    ${else}${if_existing /proc/net/route eth0} 
    ${font PizzaDude Bullets:size=10}O${font}Up${alignr}${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 10,70 262626 FF3C00}
    ${font PizzaDude Bullets:size=10}U${font}Do${alignr}${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 10,70 262626 3AE813}
    ${font PizzaDude Bullets:size=10}N${font}Upload: ${alignr}${totalup eth0}
    ${font PizzaDude Bullets:size=10}T${font}Download: ${alignr}${totaldown eth0}
    ${font PizzaDude Bullets:size=10}a${font}Local Ip:${alignr}${alignr}${addr eth0}
    ${font PizzaDude Bullets:size=10}b${font}Public Ip:${alignr}${alignr}${execi 1 ~/.scripts/ip.sh}${endif}${else}
    ${font PizzaDude Bullets:size=10:bold}4${voffset -2}${font}Network Unavailable ${endif}
    ${hr 1} 
    ${if_running audacious2}${color 0784C2}${font Musicelements:size=25}p${font}${color white}${voffset -30}
    ${color white}${font Dialtone:size=15}${offset 15}AUDACIOUS${font}${color white}${voffset 12}${voffset -12}
    ${offset 40}your music, your way.${color white}${voffset 1}
    ${exec audtool2 --current-song | cut -b-32}
    ${exec audtool2 --current-song-bitrate-kbps} kbps ${alignr}${alignr}${exec audtool2 --current-song-output-length} / ${exec audtool2 --current-song-length}
    ${execbar expr 100 \* $(audtool2 --current-song-output-length-seconds) \/ $(audtool2 --current-song-length-seconds)}
    ${hr 1}
    ${endif}${color FFE515}${font Martin Vogel's Symbols:size=15}i${font}${color DB008B} Highest CPU ${color white}$alignr CPU% MEM%
    ${hr 1}
    ${top name 1}$alignr${top cpu 1}${top mem 1}
    ${top name 2}$alignr${top cpu 2}${top mem 2}
    ${top name 3}$alignr${top cpu 3}${top mem 3}
    ${hr 1} 
    ${color FFE515}${font Martin Vogel's Symbols:size=15}i${font}${color DB008B} Highest MEM ${color white}$alignr CPU% MEM%
    ${hr 1}
    ${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
    ${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
    ${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
    ${hr 1}
    وهذه صوره
    ملف مرفق 10817

  2. الأعضاء التالية أسمائهم يشكرون حسن الدهراوي على هذه المشاركة القيَمة:


  3. #22
    لينكساوي الصورة الرمزية هشام محمد
    التوزيعة
    Debian 6
    واجهة النظام
    LXDE
    محل الإقامة
    العراق

    تاريخ التسجيل
    Sep 2010
    المشاركات
    645
    شكراً
    484
    شُكر 381 مرة في 211 موضوع
    مقالات المدونة
    10

    افتراضي

    اضغط على الصورة لعرض أكبر

الاســـم:	2011-11-02--1320235981_1024x768_scrot.png
المشاهدات:	47
الحجـــم:	833.7 كيلوبايت
الرقم:	15374

       background yes
    use_xft yes
    xftfont Sans:size=8
    xftalpha 1
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_type desktop
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 200 200
    maximum_width 200
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color blue
    default_outline_color white
    alignment top_right
    gap_x 12
    gap_y 12
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
    
    TEXT
    ${font sans-serif:bold:size=8}SYSTEM ${hr 2}
    ${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
    Host:$alignr$nodename
    Uptime:$alignr$uptime
    File System: $alignr${fs_type}
    Mail: $alignr ${execi 300 python ~/.scripts/gmail.py}
    
    ${font sans-serif:bold:size=8}AMD Turion(tm) 64 X2 TL-60${hr 2}
    ${font sans-serif:normal:size=8}${cpugraph cpu1}
    Core 1: ${cpu cpu1}% ${cpubar cpu1}
    ${font sans-serif:normal:size=8}${cpugraph cpu2}
    Core 2: ${cpu cpu2}% ${cpubar cpu2}
    
    ${font sans-serif:bold:size=8}MEMORY ${hr 2}
    ${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
    $membar
    
    ${font sans-serif:bold:size=8}HDD ${hr 2}
    ${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
    ${fs_bar /}
    ${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
    ${fs_bar /home}
    
    ${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2}
    ${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
    ${top_mem name 2}${alignr}${top mem 2} %
    $font${top_mem name 3}${alignr}${top mem 3} %
    $font${top_mem name 4}${alignr}${top mem 4} %
    
    ${font sans-serif:bold:size=8}NETWORK ${hr 2}
    ${font sans-serif:normal:size=8}IP address: $alignr ${addr wlan0}
    ESSID: $alignr ${wireless_essid wlan0}
    Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
    ${downspeedgraph wlan0}
    DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0}
    ${upspeedgraph wlan0}
    ULS:${upspeed wlan0} kb/s $alignr total: ${totalup wlan0}
    
    ${font sans-serif:bold:size=8}SHORTCUT KEYS ${hr 2}
    ${font sans-serif:normal:size=8}Super+t$alignr Terminal
    Super+f$alignr File Manager
    Super+e$alignr Editor
    Super+w$alignr Web Browser
    Super+q$alignr Force Quit
    Super+v$alignr Adjust Volume
    Super+u$alignr System Upgrade

  4. الأعضاء التالية أسمائهم يشكرون هشام محمد على هذه المشاركة القيَمة:


  5. #23
    .: مشرف سابق :. الصورة الرمزية أحمد عطاالله
    التوزيعة
    أعجوبة 16
    واجهة النظام
    GNOME3
    محل الإقامة
    مصر

    تاريخ التسجيل
    May 2008
    المشاركات
    2,443
    شكراً
    1,159
    شُكر 3,430 مرة في 1,010 موضوع

    افتراضي

    اضغط على الصورة لعرض أكبر

الاســـم:	myConky.jpg
المشاهدات:	30
الحجـــم:	153.0 كيلوبايت
الرقم:	16031


    1- أولا عليك أن تثبت conky-lua
    2- حمل حزمة الثيم من http://gnome-look.org/content/show.p...content=139024
    3- أنشئ مجلد في Home وسمه .conky وانسخ داخله اللوجو اللذي يظهر وسط الساعة
    4- أنشئ مجلد في Home وسمه .lua ثم داخله مجلد scripts وضع داخله سكربت clock_rings.lua الموجود في الحزمة
    5- أنسخ ملف .conkyrc الموجود في الحزمة إلي مجلد Home
    6- لأضافة درجة حرارة المدينة ابحث عن كود المدينة هنا http://weather.noaa.gov/
    ${font ubuntu:size=12}${color FFFFFF}${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ HEGN temperature temperature 30} °C${font} 
    أستبدل كود مدينتك بالكود HEGN

    ملحوظة : الثيم اﻷصلي يعرض cpu واحدة فقط لذا قمت بالتعديل علي ملفي lua و conkyrc ليبدو كما بالصورة يعرض 2 cpu

    الملفات بعد التعديل
    conkyrc
    # Conky settings #
    background no
    update_interval 1
    
    cpu_avg_samples 2
    net_avg_samples 2
    
    override_utf8_locale yes
    
    double_buffer yes
    no_buffers yes
    
    text_buffer_size 2048
    #imlib_cache_size 0
    
    temperature_unit fahrenheit
    
    # Window specifications #
    
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 200 250
    maximum_width 200
    
    alignment tr
    gap_x 10
    gap_y 10
    
    # Graphics settings #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # Text settings #
    use_xft yes
    xftfont ubuntu:size=8
    xftalpha 0.5
    
    uppercase no
    
    temperature_unit celsius
    
    
    default_color FFFFFF
    
    # Lua Load  #
    lua_load ~/.lua/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
    
    TEXT
    ${voffset 8}${color 0066FF}${font ubuntu:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font ubuntu:size=38}${time %e}${font}
    ${color FFFFFF}${voffset -30}${color FFFFFF}${font ubuntu:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font ubuntu:size=20}${time %Y}${font}${color 0066FF}${hr}
    ${voffset 140}${font ubuntu:size=10}${alignr}Hurgada${font}
    ${font ubuntu:size=12}${color FFFFFF}${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ HEGN temperature temperature 30} °C${font}
    ${image ~/.conky/fedora-logo.png -p 58,115 -s 80x35}
    
    ${color FFFFFF}${goto 25}${voffset 40}${cpu cpu0}%${color FFFFFF}${goto 105}${cpu cpu1}%
    ${color 0066FF}${goto 25}CPU0${color 0066FF}${goto 105}CPU1
    ${color FFFFFF}${goto 50}${voffset 28}${memperc}%
    ${color 0066FF}${goto 50}RAM
    ${color FFFFFF}${goto 75}${voffset 28}${swapperc}%
    ${color 0066FF}${goto 75}Swap
    ${color FFFFFF}${goto 100}${voffset 23}${fs_used_perc /}%
    ${color 0066FF}${goto 100}Disk
    ${color FFFFFF}${goto 125}${voffset 20}${downspeed ppp0}
    ${color FFFFFF}${goto 125}${upspeed ppp0}
    ${color 0066FF}${goto 125}Net
    
    ${color FFFFFF}${font ubuntu:size=8}Uptime: ${uptime_short}
    ${color FFFFFF}${font ubuntu:size=8}Processes: ${processes}
    ${color FFFFFF}${font ubuntu:size=8}Running: ${running_processes}
    ${color 0066FF}${font ubuntu:size=8}${alignr}${nodename}
    ${color 0066FF}${font ubuntu:size=8}${alignr}${pre_exec cat /etc/issue.net}  $machine
    ${color 0066FF}${font ubuntu:size=8}${alignr}Kernel: ${kernel}
    clock_rings.lua
    --[[
    Clock Rings by Linux Mint (2011) reEdited by despot77
    
    This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.
    
    IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
    
    To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
        lua_load ~/scripts/clock_rings.lua
        lua_draw_hook_pre clock_rings
        
    Changelog:
    + v1.0 -- Original release (30.09.2009)
       v1.1p -- Jpope edit londonali1010 (05.10.2009)
    *v 2011mint -- reEdit despot77 (18.02.2011)
    ]]
    
    settings_table = {
        {
            -- Edit this table to customise your rings.
            -- You can create more rings simply by adding more elements to settings_table.
            -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
            name='time',
            -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
            arg='%I.%M',
            -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
            max=12,
            -- "bg_colour" is the colour of the base ring.
            bg_colour=0xffffff,
            -- "bg_alpha" is the alpha value of the base ring.
            bg_alpha=0.1,
            -- "fg_colour" is the colour of the indicator part of the ring.
            fg_colour=0x0066FF,
            -- "fg_alpha" is the alpha value of the indicator part of the ring.
            fg_alpha=0.2,
            -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
            x=100, y=150,
            -- "radius" is the radius of the ring.
            radius=50,
            -- "thickness" is the thickness of the ring, centred around the radius.
            thickness=5,
            -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            start_angle=0,
            -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
            end_angle=360
        },
        {
            name='time',
            arg='%M.%S',
            max=60,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x0066FF,
            fg_alpha=0.4,
            x=100, y=150,
            radius=56,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='time',
            arg='%S',
            max=60,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x0066FF,
            fg_alpha=0.6,
            x=100, y=150,
            radius=62,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='time',
            arg='%d',
            max=31,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x0066FF,
            fg_alpha=0.8,
            x=100, y=150,
            radius=70,
            thickness=5,
            start_angle=-90,
            end_angle=90
        },
        {
            name='time',
            arg='%m',
            max=12,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x0066FF,
            fg_alpha=1,
            x=100, y=150,
            radius=76,
            thickness=5,
            start_angle=-90,
            end_angle=90
        },
        {
            name='cpu',
            arg='cpu0',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x0066FF,
            fg_alpha=0.8,
            x=50, y=300,
            radius=25,
            thickness=5,
            start_angle=-90,
            end_angle=180
        },
        {
            name='cpu',
            arg='cpu1',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x0066FF,
            fg_alpha=0.8,
            x=130, y=300,
            radius=25,
            thickness=5,
            start_angle=-90,
            end_angle=180
        },
        {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x0066FF,
            fg_alpha=0.8,
            x=75, y=350,
            radius=25,
            thickness=5,
            start_angle=-90,
            end_angle=180
        },
        {
            name='swapperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x0066FF,
            fg_alpha=0.8,
            x=100, y=400,
            radius=25,
            thickness=5,
            start_angle=-90,
            end_angle=180
        },
        {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x0066FF,
            fg_alpha=0.8,
            x=125, y=450,
            radius=25,
            thickness=5,
            start_angle=-90,
            end_angle=180
        },
            {
            name='downspeedf',
            arg='eth0',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x0066FF,
            fg_alpha=0.8,
            x=150, y=500,
            radius=25,
            thickness=4,
            start_angle=-90,
            end_angle=180
        },
            {
            name='upspeedf',
            arg='eth0',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xff3300,
            fg_alpha=0.8,
            x=150, y=500,
            radius=20,
            thickness=4,
            start_angle=-90,
            end_angle=180
        },
    }
    
    -- Use these settings to define the origin and extent of your clock.
    
    clock_r=65
    
    -- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
    
    clock_x=100
    clock_y=150
    
    show_seconds=true
    
    require 'cairo'
    
    function rgb_to_r_g_b(colour,alpha)
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    function draw_ring(cr,t,pt)
        local w,h=conky_window.width,conky_window.height
        
        local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
        local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
    
        local angle_0=sa*(2*math.pi/360)-math.pi/2
        local angle_f=ea*(2*math.pi/360)-math.pi/2
        local t_arc=t*(angle_f-angle_0)
    
        -- Draw background ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
        cairo_set_line_width(cr,ring_w)
        cairo_stroke(cr)
        
        -- Draw indicator ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
        cairo_stroke(cr)        
    end
    
    function draw_clock_hands(cr,xc,yc)
        local secs,mins,hours,secs_arc,mins_arc,hours_arc
        local xh,yh,xm,ym,xs,ys
        
        secs=os.date("%S")    
        mins=os.date("%M")
        hours=os.date("%I")
            
        secs_arc=(2*math.pi/60)*secs
        mins_arc=(2*math.pi/60)*mins+secs_arc/60
        hours_arc=(2*math.pi/12)*hours+mins_arc/12
            
        -- Draw hour hand
        
        xh=xc+0.7*clock_r*math.sin(hours_arc)
        yh=yc-0.7*clock_r*math.cos(hours_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xh,yh)
        
        cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
        cairo_set_line_width(cr,5)
        cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
        cairo_stroke(cr)
        
        -- Draw minute hand
        
        xm=xc+clock_r*math.sin(mins_arc)
        ym=yc-clock_r*math.cos(mins_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xm,ym)
        
        cairo_set_line_width(cr,3)
        cairo_stroke(cr)
        
        -- Draw seconds hand
        
        if show_seconds then
            xs=xc+clock_r*math.sin(secs_arc)
            ys=yc-clock_r*math.cos(secs_arc)
            cairo_move_to(cr,xc,yc)
            cairo_line_to(cr,xs,ys)
        
            cairo_set_line_width(cr,1)
            cairo_stroke(cr)
        end
    end
    
    function conky_clock_rings()
        local function setup_rings(cr,pt)
            local str=''
            local value=0
            
            str=string.format('${%s %s}',pt['name'],pt['arg'])
            str=conky_parse(str)
            
            value=tonumber(str)
            pct=value/pt['max']
            
            draw_ring(cr,pct,pt)
        end
        
        -- Check that Conky has been running for at least 5s
    
        if conky_window==nil then return end
        local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
        
        local cr=cairo_create(cs)    
        
        local updates=conky_parse('${updates}')
        update_num=tonumber(updates)
        
        if update_num>5 then
            for i in pairs(settings_table) do
                setup_rings(cr,settings_table[i])
            end
        end
        
        draw_clock_hands(cr,clock_x,clock_y)
    end
    المصدر
    http://www.webupd8.org/2011/02/try-t...conky-lua.html

  6. الأعضاء التالية أسماءهم وعددهم 3 يشكرون أحمد عطاالله على هذه المشاركة القيمة:


  7. #24
    لينكساوي الصورة الرمزية عبدالعزيز النمري
    التوزيعة
    Arch
    واجهة النظام
    XFCE
    محل الإقامة
    السعودية

    تاريخ التسجيل
    Nov 2010
    المشاركات
    133
    شكراً
    215
    شُكر 91 مرة في 51 موضوع

    افتراضي

    اضغط على الصورة لعرض أكبر

الاســـم:	myconky.png
المشاهدات:	51
الحجـــم:	977.2 كيلوبايت
الرقم:	16035


    # Use Xft?
    use_xft yes
    xftfont Sans
    :size=7
    #xftalpha 0.8
    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 160 0
    maximum_width 160

    # Draw shades?
    draw_shades no

    # Draw outlines?
    draw_outline no

    # Draw borders around text
    draw_graph_borders yes

    # Stippled borders?
    stippled_borders 0

    # border margins
    border_margin 5

    # border width
    border_width 5

    # Default colors and also border colors
    default_color 303030
    #default_shade_color white
    #default_outline_color black
    own_window_colour 262626

    # 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
    # same thing as passing -x at command line
    gap_x 10
    gap_y 10

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

    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 1

    # 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
    # Default colors and also border colors
    default_color 1E1C1A
    #default_shade_color white
    #default_outline_color black
    own_window_colour 1E1C1A

    # 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
    # same thing as passing -x at command line
    gap_x 35
    gap_y 50

    # 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
    ${font Radio Space:size=9}${color #ba2929}SYSTEM ${color #4a4a4a}${hr 2}
    ${font International Playboy:size=11=9}${color #6d6d6d}Kernel${color #ba2929} || ${color #ffffff}${alignr}${kernel}
    ${font StyleBats:size=13}q${font}${color #6d6d6d}${font International Playboy:size=11} Uptime${color #ba2929} || ${color #ffffff}${alignr}${uptime}
    ${font StyleBats:size=13}A${font}${color #6d6d6d}${font International Playboy:size=11} CPU ${color #ba2929}(${color #41e3e5}1${color #ba2929}) || ${color #ffffff}${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
    ${font StyleBats:size=13}A${font}${color #6d6d6d}${font International Playboy:size=11} CPU ${color #ba2929}(${color #41e3e5}2${color #ba2929}) || ${color #ffffff}${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
    ${font StyleBats:size=13}A${font}${color #6d6d6d}${font International Playboy:size=11} CPU ${color #ba2929}(${color #41e3e5}3${color #ba2929}) || ${color #ffffff}${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
    ${font StyleBats:size=13}A${font}${color #6d6d6d}${font International Playboy:size=11} CPU ${color #ba2929}(${color #41e3e5}4${color #ba2929}) || ${color #ffffff}${cpu cpu3}% ${alignr}${cpubar cpu3 8,60}
    ${font StyleBats:size=13}g${font}${color #6d6d6d}${font International Playboy:size=11} RAM ${color #ba2929}|| ${color #ffffff}$memperc% ${alignr}${membar 8,60}
    ${font International Playboy:size=13}${color #6d6d6d}R${color #ba2929}o${color #6d6d6d}O${color #ba2929}t${color #6d6d6d}-${color #ba2929}S${color #6d6d6d}e${color #ba2929}C${color #6d6d6d}u${color #ba2929}R${color #6d6d6d}i${color #ba2929}T${color #6d6d6d}y${color #ba2929}${color #41e3e5}@${font International Playboy:size=13}${color #6d6d6d}a${color #ba2929}l${color #6d6d6d}n${color #ba2929}i${color #6d6d6d}m${color #ba2929}r${color #6d6d6d}e
    ${font International Playboy:size=13}L${color #41e3e5}inux ${color #6d6d6d}W${color #41e3e5}e ${color #6d6d6d}W${color #41e3e5}ill ${color #6d6d6d}A${color #41e3e5}live ${color #ba2929}:)
    ${font Radio Space:size=10}${color #ba2929}DATE ${color #4a4a4a}${hr 2}
    ${font Radio Space:size=11}${color #41e3e5}${alignc 49}${font Radio Space:size=30}${time %H:%M}${font}
    ${font Radio Space:size=8}${color #8ff08a}${voffset 4}${alignc}${time %A %d}
    ${color #ba2929}${alignc}${execi 60 date +"%B %Y" | tr "[:lower:]" "[:upper:]"}

    ${font Radio Space:size=9}${color #ba2929}HD ${color #4a4a4a}${hr 2}
    ${voffset 4}${font Pie charts for maps:size=14}6${font} ${font International Playboy:size=11}${color #6d6d6d} ${font International Playboy:size=11}Temperature ${color #ba2929}|| ${color #ffffff}${alignr}${exec nc localhost 7634 | perl -ne 'print $1 if /\/sda\|.*?\|(\d+)\|C/;'}°C
    ${voffset 6}${font Pie charts for maps:size=14}7${font}${color #6d6d6d} ${voffset -5}${color #ba2929}(${color #ffffff}${font International Playboy:size=11}Root${color #ba2929}) Free
    ${color #6d6d6d}${voffset 4}${fs_free /}${color #ba2929} || ${color #6d6d6d}${fs_size /} ${color #ffffff}${alignr}${fs_bar 8,60 /}
    ${font Pie charts for maps:size=14}7${font}${color #6d6d6d}${voffset -5} ${color #ba2929}(${color #ffffff} ${font International Playboy:size=11}Home${color #ba2929}) Free
    ${color #6d6d6d}${voffset 4}${fs_free /home}${color #ba2929} || ${color #6d6d6d}${fs_size /home} ${color #ffffff}${alignr}${fs_bar 8,60 /home}

    ${font Radio Space:size=9}${color #ba2929}GRAPHICS ${color #4a4a4a}${hr 2}
    ${voffset 8}${font PizzaDude Bullets:size=12}Y${font}${font International Playboy:size=9}${color #41e3e5}V${color #6d6d6d}ideo${color #41e3e5}C${color #6d6d6d}ard ${color #41e3e5}M${color #6d6d6d}odel${color #ba2929} || ${color #ffffff}${alignr}${execi 300 ~/.scripts/nvidia.sh}
    ${voffset 6}${font PizzaDude Bullets:size=12}Z${font}${color #41e3e5}${font International Playboy:size=11}S${color #6d6d6d}oftware ${color #41e3e5}V${color #6d6d6d}ersion${color #ba2929} || ${color #ffffff}${alignr}${execi 300 ~/.scripts/nvidia-version.sh}
    ${voffset 6}${font PizzaDude Bullets:size=12}9${font}${color #41e3e5}${font International Playboy:size=11}G${color #6d6d6d}PU ${color #41e3e5}T${color #6d6d6d}emp${color #ba2929} || ${color #ffffff}${alignr}${execi 300 ~/.scripts/nvidia-gpu.sh}

    ${font Radio Space:size=9}${color #ba2929}NETWORK ${color #4a4a4a}${hr 2}
    ${font Radio Space:size=9}${color #6d6d6d}${if_existing /proc/net/route wlan0}
       
    Up: ${upspeed wlan0kb/${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
       
    Down: ${downspeed wlan0kb/${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
       
    Upload: ${alignr}${totalup wlan0}
       
    Download: ${alignr}${totaldown wlan0}
       
    Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
       
    Local Ip: ${alignr}${addr wlan0}
       Public 
    Ip: ${alignr}${execi 1 ~/.scripts/ip.sh}
    ${
    color #e49c16}${else}${if_existing /proc/net/route eth0}
    ${voffset -6}${font PizzaDude Bullets:size=14}O${font} ${color #41e3e5}${font International Playboy:size=11=8}U${color #6d6d6d}p${color #ba2929} || ${color #ffffff}${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font} ${color #41e3e5}${font International Playboy:size=11}D${color #6d6d6d}own${color #ba2929} || ${color #ffffff}${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font} ${color #41e3e5}${font International Playboy:size=11}U${color #6d6d6d}pload${color #ba2929} || ${color #ffffff}${alignr}${totalup eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font} ${color #41e3e5}${font International Playboy:size=11}D${color #6d6d6d}ownload${color #ba2929} || ${color #ffffff}${alignr}${totaldown eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}a${font} ${color #41e3e5}${font International Playboy:size=11}L${color #6d6d6d}ocal ${color #6d6d6d}I${color #41e3e5}p${color #ba2929} || ${color #ffffff}${alignr}${addr eth0}
    ${endif}${else}${if_existing /proc/net/route eth1}
       
    Up: ${upspeed eth1kb/${alignr}${upspeedgraph eth1 8,60 F57900 FCAF3E}
       
    Down: ${downspeed eth1kb/${alignr}${downspeedgraph eth1 8,60 F57900 FCAF3E}
       
    Upload: ${alignr}${totalup eth1}
       
    Download: ${alignr}${totaldown eth1}
       
    Local Ip: ${alignr}${addr eth1}
    ${endif}${else}
    ${
    font PizzaDude Bullets:size=14}4${font}   Network Unavailable
    ${endif} 

    >> طبعاّ عدلت فيه كثير بداية بالخط والالوان .. + مرفق ثلاث اسكربتات لجلب نوع كرت الشاشة nvidia فقط .. أنشئ مجلد جديد في الهوم وسمه .scripts وضع بداخه الاسكربتات ..
    .. وعدل الكونكي بما يناسبك أنت ..

    الملفات المرفقة الملفات المرفقة
    .. لاتنسوا الدعاء لأحبابنا في سورية فهم تحت النار ..
    >> My Arch <<


  8. #25
    لينكساوي الصورة الرمزية هاشم
    التوزيعة
    Arch
    واجهة النظام
    Openbox
    محل الإقامة
    الجزائر

    تاريخ التسجيل
    Nov 2008
    المشاركات
    785
    شكراً
    247
    شُكر 883 مرة في 319 موضوع

    افتراضي

    اقتباس المشاركة الأصلية كتبت بواسطة alnimre مشاهدة المشاركة
    اضغط على الصورة لعرض أكبر

الاســـم:	myconky.png
المشاهدات:	51
الحجـــم:	977.2 كيلوبايت
الرقم:	16035



    >> طبعاّ عدلت فيه كثير بداية بالخط والالوان .. + مرفق ثلاث اسكربتات لجلب نوع كرت الشاشة nvidia فقط .. أنشئ مجلد جديد في الهوم وسمه .scripts وضع بداخه الاسكربتات ..
    .. وعدل الكونكي بما يناسبك أنت ..

    السلام عليكم و رحمة الله
    هل هو نفس هذا ال Conky مع التعديل ؟ و اذا كان اريد النسخة الاصلية ايضا من فضلك
    الناس رجلان : رجل نام في النور، و رجل استيقظ في الظلام!!
    فاين انت منهما ؟؟؟


    archlinux x86_64

  9. #26
    لينكساوي الصورة الرمزية عبدالعزيز النمري
    التوزيعة
    Arch
    واجهة النظام
    XFCE
    محل الإقامة
    السعودية

    تاريخ التسجيل
    Nov 2010
    المشاركات
    133
    شكراً
    215
    شُكر 91 مرة في 51 موضوع

    افتراضي

    السلام عليكم و رحمة الله
    هل هو نفس هذا ال Conky مع التعديل ؟ و اذا كان اريد النسخة الاصلية ايضا من فضلك

    وعليكم السلام ورحمة الله وبركاته .. أهلا أخي هشام ..

    .. إذا كنت تقصد الكونكي اﻷول لا للاسف ليس هو ..

    .. الكونكي الاصلي بدون التعديل هنا .. مع إعدادت كوكني أخي حسن الدهراوي في المشاركة التي بالاعلى ..

    .. كما يوجد في الموقع ثيمات جميلة للكونكي .. 1 - 2 - 3

    .. لاتنسوا الدعاء لأحبابنا في سورية فهم تحت النار ..
    >> My Arch <<


  10. الأعضاء التالية أسماءهم وعددهم 2 يشكرون عبدالعزيز النمري على هذه المشاركة القيمة:


صفحة 2 من 2 الأولىالأولى 12

معلومات الموضوع

الأعضاء الذين يشاهدون هذا الموضوع

الذين يشاهدون الموضوع الآن: 2 (0 من الأعضاء و 2 زائر)

المواضيع المتشابهه

  1. [شرح] 4-الحصول على البيانات من المستخدم | الطريقة post
    بواسطة sasa1 في المنتدى .: برمجة وتطوير الوِب :.
    مشاركات: 2
    آخر مشاركة: 18-11-2011, 01:19 PM
  2. [كود] Post Ur Code Here
    بواسطة StrikerX في المنتدى .: برمجة وتطوير سطح المكتب :.
    مشاركات: 266
    آخر مشاركة: 25-06-2011, 09:58 PM
  3. [سؤال] كيف ابعث بيانات (post)لويب ما من بايثون
    بواسطة شادي المشاقي في المنتدى .: برمجة وتطوير سطح المكتب :.
    مشاركات: 2
    آخر مشاركة: 03-01-2009, 01:27 PM

الكلمات الدلالية لهذا الموضوع

مواقع النشر (المفضلة)

مواقع النشر (المفضلة)

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •