SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#5201 2013-04-29 09:11:18

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,108

Re: Conky v1.9 Thread

acpitemp is the conky object relevant to temperature (that I'm most familiar with anyway). How are you using it in your .conkyrc?

Offline

Be excellent to each other!

#5202 2013-04-29 13:32:45

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

Re: Conky v1.9 Thread

Try with this:

${execpi 10 sensors | grep Core | sed 's/ (.*$//g' | sed 's/: *+/: +/g'}

Last edited by TeoBigusGeekus (2013-04-29 13:33:18)


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#5203 2013-04-29 14:37:38

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

#5204 2013-04-29 17:07:06

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

Last edited by PackRat (2013-04-29 17:22:09)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5205 2013-04-29 17:20:38

JWJones
#! Member
From: Cascadia
Registered: 2009-02-23
Posts: 65

Re: Conky v1.9 Thread

# Hack your own Conky, don't leech, LEARN!!
# http://conky.sourceforge.net/
# http://conky.sourceforge.net/config_settings.html
# http://conky.sourceforge.net/variables.html
# http://conky.sourceforge.net/docs.html
#
#
# Reading all the documentation, looking @ other .conkyrc's
# and general knowledge of Linux will help you tweak this
# or create your own.
#
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

update_interval 1

total_run_times 0

own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar

double_buffer yes

minimum_size 200 0

draw_shades yes

draw_outline no

draw_borders no

stippled_borders 0

border_margin 5

border_width 1

default_color white
default_shade_color black
default_outline_color black
own_window_colour white

alignment top_right

gap_x 25
gap_y 25

no_buffers yes

uppercase no

cpu_avg_samples 2

net_avg_samples 2

override_utf8_locale yes

use_spacer none

TEXT
${alignc 35}${font DejaVu Sans:size=14}${execi 1 cat /etc/slackware-version}${font}
${alignc 25}${font DejaVu Sans:size=12}For the Subgenius${font}

Changelog: ${execi 1 lynx -dump ftp://slackware.oregonstate.edu/pub/slackware/slackware-14.0/ChangeLog.txt | head -1}

SYSTEM  ${hr 1}

Kernel: ${alignr}${kernel}
Uptime: ${alignr}${uptime}

Core 1:    ${cpu cpu1}% ${alignr}${freq_g cpu1} GHz  /  ${hwmon 0 temp 1} C
Core 2:    ${cpu cpu2}% ${alignr}${freq_g cpu2} GHz  /  ${hwmon 1 temp 1} C

Load Averages: ${alignr}$loadavg

Top 5 Processes                 PID   CPU%  MEM%
${top name 1} ${alignr}${top pid 1}    ${top cpu 1}    ${top mem 1}
${top name 2} ${alignr}${top pid 2}    ${top cpu 2}    ${top mem 2}
${top name 3} ${alignr}${top pid 3}    ${top cpu 3}    ${top mem 3}
${top name 4} ${alignr}${top pid 4}    ${top cpu 4}    ${top mem 4}
${top name 5} ${alignr}${top pid 5}    ${top cpu 5}    ${top mem 5}

GPU Temp: ${alignr}${execi 20 nvidia-settings -q gpucoretemp |grep Attribute |awk '{print $4}' |cut -c1-2} C

RAM:  ${alignr}$mem  /  ${alignr}$memmax
SWAP: ${alignr}$swap  /  ${alignr}$swapmax

MOUNT / HDD's  ${hr 1}

Root:      ${alignr}${fs_used /}  /  ${alignr}${fs_size /}
Available:   ${fs_free_perc /}%

Home:      ${alignr}${fs_used /home}  /  ${alignr}${fs_size /home}
Available:   ${fs_free_perc /home}%

NETWORK  ${hr 1}

Up:     ${alignr}${upspeed eth0}KB/s
Total:  ${alignr}${totalup eth0}

Down:   ${alignr}${downspeed eth0}KB/s
Total:  ${alignr}${totaldown eth0}
${hr 1}

${font DejaVu Sans:size=12}${time %H:%M:%S}${alignr}${time %A, %D}${font}

Offline

#5206 2013-04-29 17:21:06

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

${execpi 10 sensors | grep Core | sed 's/ (.*$//g' | sed 's/: *+/: +/g'}

"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5207 2013-04-29 17:50:55

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Last edited by Sector11 (2013-04-29 17:55:05)

Offline

#5208 2013-04-29 22:45:41

ichase
#! CrunchBanger
Registered: 2011-03-16
Posts: 146

Re: Conky v1.9 Thread

own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_colour white
own_window_class Conky
own_window_title Chronograph TEST
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
#own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 5


minimum_size 275 650 ## width, height
maximum_width 275    ## width

gap_x 320
gap_y -25

### alignment values or top_left, bottom_right, etc
# tl, tm, tr
# ml, mm, mr
# bl, bm, br
#alignment tl
alignment top_right
use_xft yes
xftfont monofur:bold:size=14

xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
draw_shades no
default_shade_color black
draw_outline no # amplifies text if yes
default_outline_color black
default_color 86b5ea
color1 red
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
background yes
use_spacer none
text_buffer_size 256
no_buffers yes
short_units yes
pad_percents 2
format_human_readable yes
short_units yes
imlib_cache_size 0
temperature_unit Fahrenheit
update_interval 1

###  Load Lua  ###########################################################

lua_load /home/ichase02/Scripts/rings_3.lua
lua_draw_hook_pre main_rings

##############################  End LUA Settings  ###

TEXT
#${lua conky_draw_bg 132 3 3 264 264 0x000000 0.5}
#${lua conky_draw_bg 98 37 37 196 196 0xFFFFFF 0.2}
#${lua conky_draw_bg 68 67 67 136 136 0x000000 0.4}
#${lua conky_draw_bg 35 100 100 70 70 0x000000 0.3}



${goto 148}${font monofur:bold:size=10}${color}AVG     
${voffset -5}${goto 132}${font monofur:size=8}${goto 190}${color1}${cpu cpu0}%







${goto 148}${font monofur:bold:size=10}${color}CPU1 
${voffset -5}${goto 132}${font monofur:size=8}${goto 190}${color1}${cpu cpu1}% 







${goto 148}${font monofur:bold:size=10}${color}CPU2
${voffset -5}${goto 132}${font monofur:size=8}${goto 190}${color1}${cpu cpu2}%







${goto 148}${font monofur:bold:size=10}${color}CPU3
${voffset -5}${goto 132}${font monofur:size=8}${goto 190}${color1}${cpu cpu3}%







${goto 148}${font monofur:bold:size=10}${color}CPU4
${voffset -5}${goto 132}${font monofur:size=8}${goto 190}${color1}${cpu cpu4}%

Offline

#5209 2013-04-30 01:55:42

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

Last edited by PackRat (2013-04-30 01:56:08)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5210 2013-04-30 02:09:25

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

#5211 2013-04-30 02:16:27

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

#5212 2013-04-30 02:30:29

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

Last edited by PackRat (2013-04-30 02:33:45)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5213 2013-04-30 02:49:56

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

#5214 2013-04-30 13:49:47

captdavid1949
Member
From: Deltaville VA
Registered: 2012-09-22
Posts: 42
Website

Re: Conky v1.9 Thread

After much searching, and pulling of hair I decided to post this question in the #! forums (Where I first learned of Conky) even though this is running on a Fedora box. Sure there is a very simple solution, but like the jitterbug, it has plumb evaded me....

Very simple conky which includes monitoring used/available space on drives. One internal drive mounted on boot, and external usb drive which may or may not be mounted at any given time.

${color}/root${color}${alignr}${fs_used /} / ${fs_size /}    ${color}${alignr}${fs_free_perc /} % Free
${if_mounted /run/media/david/External_Drive_1}${color}External-1${color}${alignr}${fs_used /run/media/david/External_Drive_1} / ${fs_size /run/media/david/External_Drive_1}    ${color}${alignr}${fs_free_perc /run/media/david/External_Drive_1} % Free${endif}

Everything works as advertised as my external drive is always mounted in the same place, with the same name. What I need is a pointer to a "simple" (external?) script to parse the   /run/media/david/  directory for new mounts and pass them to conky if found.
In my current setup any hot-plugged usb device will not be auto mounted, but when mounted it will be in this directory. Depending on the device, the actual mount directory name could be whatever. Eg: a 4gig stick could be mounted as  /run/media/david/ 176E9D8C7FB9084E or  /run/media/david/ misc_files  or  /run/media/david/ foo.  How  to pass the info to conky ?

TIA for suggestions

Offline

#5215 2013-04-30 14:14:03

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5216 2013-04-30 14:36:02

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

thermometer ({x=100,y=50,numbers=1,lines=1,f="sans",fs=12,label=weather_location,scale=0.5,units="C",tcol=tcol,val=val})

Offline

#5217 2013-04-30 15:16:12

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

${if_mounted /media/disk}
External HDD is plugged in and mounted!${else}Ext HDD not mounted${endif}${if_existing /media/disk}
mount exists${else}mount non-existing${endif}

Offline

#5218 2013-04-30 16:02:54

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

attempt to compare string with number

Offline

#5219 2013-04-30 23:22:09

captdavid1949
Member
From: Deltaville VA
Registered: 2012-09-22
Posts: 42
Website

Re: Conky v1.9 Thread

Offline

#5220 2013-05-01 02:54:35

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

df -h

Last edited by mrpeachy (2013-05-01 02:55:54)

Offline

#5221 2013-05-01 04:45:35

captdavid1949
Member
From: Deltaville VA
Registered: 2012-09-22
Posts: 42
Website

Re: Conky v1.9 Thread

Tks guys....  appreciate it.

Offline

#5222 2013-05-01 11:07:54

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

Last edited by ragamatrix (2013-05-01 15:00:19)

Offline

#5223 2013-05-01 13:30:16

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

TEXT
${lua get_mounted_data 3}\
${color6}fsys${color} = ${lua mount 1 total}${goto 85}${color8}Size${goto 130}${color7}Free${goto 180}${color1}Used${goto 220}${color}Mount
${color6}${lua mount 1 fsys 9}${goto 85}${color8}${lua mount 1 size}${goto 130}${color7}${lua mount 1 free}${goto 180}${color1}${lua mount 1 use%}${goto 220}${color}${lua mount 1 mount}
${color6}${lua mount 5 fsys 9}${goto 85}${color8}${lua mount 5 size}${goto 130}${color7}${lua mount 5 free}${goto 180}${color1}${lua mount 5 use%}${goto 220}${color}${lua mount 5 mount}
${color6}${lua mount 2 fsys 9}${goto 85}${color8}${lua mount 2 size}${goto 130}${color7}${lua mount 2 free}${goto 180}${color1}${lua mount 2 use%}${goto 220}${color}${lua mount 2 mount}
${color6}${lua mount 4 fsys 9}${goto 85}${color8}${lua mount 4 size}${goto 130}${color7}${lua mount 4 free}${goto 180}${color1}${lua mount 4 use%}${goto 220}${color}${lua mount 4 mount}
${color6}${lua mount 3 fsys 9}${goto 85}${color8}${lua mount 3 size}${goto 130}${color7}${lua mount 3 free}${goto 180}${color1}${lua mount 3 use%}${goto 220}${color}${lua mount 3 mount}
External mounts (I have space for 4 RARELY use 3):
${color6}${lua mount 6 fsys 9}${goto 85}${color8}${lua mount 6 size}${goto 130}${color7}${lua mount 6 free}${goto 180}${color1}${lua mount 6 use%}${goto 220}${color}${lua mount 6 mount}
${color6}${lua mount 7 fsys 9}${goto 85}${color8}${lua mount 7 size}${goto 130}${color7}${lua mount 7 free}${goto 180}${color1}${lua mount 7 use%}${goto 220}${color}${lua mount 7 mount}
${color6}${lua mount 8 fsys 9}${goto 85}${color8}${lua mount 8 size}${goto 130}${color7}${lua mount 8 free}${goto 180}${color1}${lua mount 8 use%}${goto 220}${color}${lua mount 8 mount}

Offline

#5224 2013-05-01 13:44:16

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

Offline

Be excellent to each other!

#5225 2013-05-01 15:01:51

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

@mr peachy
Thanks again for your kind explanations  cool

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo