Författare Ämne: Conky  (läst 1600 gånger)

Utloggad Shade

  • Administrator
  • Hero Member
  • *****
  • Antal inlägg: 988
  • Karma: +3/-0

  • Activity
    0%
    • Visa profil
    • Shades Online Gaming
Conky
« skrivet: juli 10, 2012, 14:48:46 »
Conky är ett litet program som moniterar cpu, ram, hdd mm. Man får ändra vad man vill i programmet och designa det lite hur som helst.

Skall man fixa med det så kan det vara bra att lära sig lua eller programmerat lite php då de är relativt lika.

Det går att hämta hem här
I code
I curse
I drink

Not necessarily in that order but thats what i do

Bitcoin Wallet: 12bnYDq2mtU9xFzah5WqepvdMBee7zsYc8
Litecoin Wallet: LXdwCtZgwGvv28h66hVBosvWh1JwWdhtdC


//Shade

Utloggad EG

  • Administrator
  • Hero Member
  • *****
  • Antal inlägg: 1028
  • Karma: +3/-0

  • Activity
    0%
    • Visa profil
Re: Conky
« Svar #1 skrivet: juli 11, 2012, 23:05:45 »
Trevligt! Det måste testas.
Själv kör jag Rainmeter för tillfället. Det fyller samma funktion och är även det extremt moddvänligt.
(Det som jag har gjort min server display med)
http://i.imgur.com/uuwwU.png
Web0: http://stuxnode.com/
Web1: http://teradome.se
#0 Don't be on fire.
#1 Don't drink and root.

Utloggad Shade

  • Administrator
  • Hero Member
  • *****
  • Antal inlägg: 988
  • Karma: +3/-0

  • Activity
    0%
    • Visa profil
    • Shades Online Gaming
Re: Conky
« Svar #2 skrivet: juli 20, 2012, 00:40:56 »
dock så var den inte kompatibel med linux :(
I code
I curse
I drink

Not necessarily in that order but thats what i do

Bitcoin Wallet: 12bnYDq2mtU9xFzah5WqepvdMBee7zsYc8
Litecoin Wallet: LXdwCtZgwGvv28h66hVBosvWh1JwWdhtdC


//Shade

Utloggad Shade

  • Administrator
  • Hero Member
  • *****
  • Antal inlägg: 988
  • Karma: +3/-0

  • Activity
    0%
    • Visa profil
    • Shades Online Gaming
Re: Conky
« Svar #3 skrivet: oktober 29, 2012, 16:42:30 »
Inställningarna (koden o lite annat) till en av mina polares conky (som jag fixat ihop lite med hjälp av nätet) ser ut så här

Kodstycke: [Välj]
# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_hints below

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

# fiddle with window
use_spacer left
use_xft no

# Update interval in seconds
update_interval 3.0

#Maximum Width of Window
maximum_width 320

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
#border_margin 5

# border width
border_width 6

# Default colors and also border colors, grey90 == #e5e5e5
default_color FFFFCC

own_window_colour brown
own_window_transparent yes

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

# stuff after ‘TEXT’ will be formatted on screen

TEXT
$color
${color CC9900}SYSTEM ${hr 2}$color
$color $alignc Bumbii

${color CC9900}CPU ${hr 2}$color
Total CPU: ${cpu cpu0}%
${color 597DB2}${cpubar}$color
${cpugraph 000000 597DB2}
Core 1: ${freq 1} MHz
${cpu cpu1}% ${color 597DB2}${cpubar cpu1}$color
Core 2: ${freq 2} MHz
${cpu cpu2}% ${color 597DB2}${cpubar cpu2}$color

${color CC9900}MEMORY ${hr 2}$color
RAM Used: ${mem} RAM Free: ${memfree}/ ${memmax}
 RAM: $memperc%  ${color FF6600} ${membar 6}$color
Swap: $swapperc%   ${color FF6600} ${swapbar 6}$color

${color CC9900}Processes ${hr 2}$color
NAME              PID   CPU%   MEM%
${color CCFFFF}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}$color

${color CC9900}DISK ${hr 2}$color
sda5 ${fs_type} (Root): ${fs_free_perc /}% ${color FFFF33} ${fs_bar 6 /}
${fs_size /}
$color

${color CC9900}NETWORK Wireless (${addr wlan0}) ${hr 2}$color
${color CC9900}Wireless SSID: $color ${wireless_essid wlan0}
Down: $color${downspeed wlan0} k/s ${alignr}Up: ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,140 000000 ff0000} ${alignr}${upspeedgraph wlan0
25,140 000000 00ff00}$color
Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

${color CC9900}NETWORK Ethernet (${addr eth0}) ${hr 2}$color
Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
25,140 000000 00ff00}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

${color CC9900}NETWORK Dongel (${addr ppp0}) ${hr 2}$color
Down: $color${downspeed ppp0} k/s ${alignr}Up: ${upspeed ppp0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph ppp0
25,140 000000 00ff00}$color
Total: ${totaldown ppp0} ${alignr}Total: ${totalup ppp0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

I code
I curse
I drink

Not necessarily in that order but thats what i do

Bitcoin Wallet: 12bnYDq2mtU9xFzah5WqepvdMBee7zsYc8
Litecoin Wallet: LXdwCtZgwGvv28h66hVBosvWh1JwWdhtdC


//Shade

Utloggad Shade

  • Administrator
  • Hero Member
  • *****
  • Antal inlägg: 988
  • Karma: +3/-0

  • Activity
    0%
    • Visa profil
    • Shades Online Gaming
Re: Conky
« Svar #4 skrivet: juli 05, 2013, 17:15:43 »
Min kod på laptopen med i7

Kodstycke: [Välj]
# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/messages
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_hints below

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

# fiddle with window
use_spacer left
use_xft no

# Update interval in seconds
update_interval 3.0

#Maximum Width of Window
maximum_width 320

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
#border_margin 5

# border width
border_width 6

# Default colors and also border colors, grey90 == #e5e5e5
default_color FFFFCC

own_window_colour brown
own_window_transparent yes

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

# stuff after ‘TEXT’ will be formatted on screen

TEXT
$color

${color CC9900}SYSTEM ${hr 2}$color
$color $alignc Shades

${color CC9900}CPU ${hr 2}$color
Total CPU: ${cpu cpu0}%
${color 597DB2}${cpubar}$color
${cpugraph 000000 597DB2}
Core 1: ${freq 1} MHz
${cpu cpu1}% ${color 597DB2}${cpubar cpu1}$color
Core 2: ${freq 2} MHz
${cpu cpu2}% ${color 597DB2}${cpubar cpu2}$color
Core 3: ${freq 3} MHz
${cpu cpu3}% ${color 597DB2}${cpubar cpu3}$color
Core 4: ${freq 4} MHz
${cpu cpu4}% ${color 597DB2}${cpubar cpu4}$color
Core 5: ${freq 5} MHz
${cpu cpu5}% ${color 597DB2}${cpubar cpu5}$color
Core 6: ${freq 6} MHz
${cpu cpu6}% ${color 597DB2}${cpubar cpu6}$color
Core 7: ${freq 7} MHz
${cpu cpu7}% ${color 597DB2}${cpubar cpu7}$color
Core 8: ${freq 8} MHz
${cpu cpu8}% ${color 597DB2}${cpubar cpu8}$color

${color CC9900}MEMORY ${hr 2}$color
RAM Used: ${mem} RAM Free: ${memfree}/ ${memmax}
RAM:  $memperc%  ${color FF6600} ${membar 6}$color
Swap: $swapperc%   ${color FF6600} ${swapbar 6}$color

${color CC9900}Processes ${hr 2}$color
NAME              PID   CPU%   MEM%
${color CCFFFF}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}$color

${color CC9900}DISK ${hr 2}$color
/:       Used: ${fs_used /}   Free: ${fs_size /}
${fs_free_perc /}% ${color FFFF33} ${fs_bar 6 /}$color

/home:   Used: ${fs_used /home}   Free: ${fs_size /home}
${fs_free_perc /home}% ${color FFFF33} ${fs_bar 6 /home}
$color

${color CC9900}NETWORK Wireless (${addr wlan0}) ${hr 2}$color
${color CC9900}Wireless SSID: $color ${wireless_essid wlan0}
Down: $color${downspeed wlan0} /s ${alignr}Up: ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,140 000000 ff0000} ${alignr}${upspeedgraph wlan0
25,140 000000 00ff00}$color
Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}

${color CC9900}NETWORK Ethernet (${addr eth0}) ${hr 2}$color
Down: $color${downspeed eth0} /s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
25,140 000000 00ff00}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}

${color CC9900}NETWORK Dongel (${addr ppp0}) ${hr 2}$color
Down: $color${downspeed ppp0} /s ${alignr}Up: ${upspeed ppp0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph ppp0
25,140 000000 00ff00}$color
Total: ${totaldown ppp0} ${alignr}Total: ${totalup ppp0}

I code
I curse
I drink

Not necessarily in that order but thats what i do

Bitcoin Wallet: 12bnYDq2mtU9xFzah5WqepvdMBee7zsYc8
Litecoin Wallet: LXdwCtZgwGvv28h66hVBosvWh1JwWdhtdC


//Shade