You are not logged in.
Some are really cool, like the LED EQ t-shirt.
These are all so great.
I really want my conky to look exciting and even though I know I can back it up, I am scared of changing it!
You can't mess it up so bad that it can't be fixed here.
a conky in the "traditional" style with lua functions all set in the conkyrc
the conky and lua file that does it
https://dl.dropbox.com/u/19008369/conky.tar.gzbars, background and calendar are lua
ill add some v9000 weather later on
Temp of 32F? Man that's cold. I've heard people talk about computers being cold hearted!
What every coffee drinker needs. A coffee candy bar. It's not just a coffee flavored candy bar but one made from coffee beans.
I like the coffee cup power inverter.
@ackernan: Thank you for your reply. I must say, that seems like an awful lot of code for a simple background command in conky.
It's lua script that a lot of people use to make a background. Add something like this to your conky. It's explained more in the script file.
lua_load ~/.conky/draw_bg.lua
TEXT
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.5}
Maybe Sector11 or someone else will pipe in with another solution for you.
How do you create a background color for conky?
Have you tried draw_bg.lua?
draw_bg.lua
--[[Background originally by londonali1010 (2009)
ability to set any size for background mrpeachy 2011
ability to set variables for bg in conkyrc dk75
the change is that if you set width and/or height to 0
then it assumes the width and/or height of the conky window
so:
lua_load ~/Conky/LUA/draw_bg.lua
TEXT
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.4}
See below: 1 2 3 4 5 6 7
${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
covers the whole window and will change if you change the minimum_size setting
1 = 20 corner_radius
2 = 0 x_position
3 = 0 y_position
3 = 0 width
5 = 0 height
6 = 0x000000 color
7 = 0.4 alpha
or both above TEXT
lua_load ~/Conky/LUA/draw_bg.lua
lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.4
TEXT
]]
require 'cairo'
local cs, cr = nil
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) 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)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end
@rcc - Looks good. More then defaultish.
actually I'm tweaking with ${goto} and ${voffset} and it's working out, thanks anyway
Glad you figured it out. Share a snapshot when you get it set up.
@ ackernan
That is the .conkyrc for the system info conky
..... ${voffset 5} ${goto 0}${color1}${font 6x10:size=8,weight:bold}Memory Info ${goto 5}${color}${font 6x10:size=8,weight:normal}Total:${execi 1000 free -tm | grep -i mem |gawk '{ print $2}'}MB - Used: $mem - Free: $memfree ${voffset 5} ....
Thanks. Why are you using free instead of memmax which is part of conky?
memmax Total amount of memory
Here is my slightly different conky setup.
I did setup a crunchbang usb stick install with some rescue application.
Since I can use the stick on different computer I thought it would be nice to have all the hardware info on the desktop at boot, without the need of to run multiple commands.back on black with grey font color
CLICK TO ZOOM
Looks good, I like the idea of posting the hardware info. Can you post the code?
I have just stated learning conky and playing with VinDSL's code. My screen shot below shows where I am - I have work to do with the Weather section and movng the bar graphs down. My current issue is the vertical size of the conky window. My understanding (probably wrong) is the height and width are determined by the lines
####
## Minimum size of the text area.
## Syntax: minimum_size [width] [height]
# the 300 determins the width of the conky window
minimum_size 300 1000I can alter the width by changing the 300 value but changing the 1000 (originally it was 1394) seems to have no effect. Perhaps I'm getting confusing with this section that seems to refer to the text area and the background, which I think is controlled by draw_bg.lua. Thing is - changing the 300 certainly does change the width on the screen so what does the 1000 do? Also - there looks, to me, nothing in draw_bg.lua about the size of the background. One other thing, there are lots of refs to colour in draw_bg.lua but I cannot see you change the colour of the background. Where is this defined?
It maybe going off the bottom of your screen. Keep decrementing 1000 by 50 until you see the bottom. Then increase by 10 or 20 until it fits you screen.
What are you using for draw_bg.lua? There are a couple out there. I use draw_bg.lua written by londonali and updated by mrpeachy and dk75. This only draws a background color not an image. You can use it by adding this line above TEXT.
lua_load ~/.conky/draw_bg.lua
Then add something like this above TEXT..
lua_draw_hook_post draw_bg 20 0 0 0 0 0x000000 0.5
Or add something like this below TEXT...
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.5}
draw_bg.lua
All the numbers are explained in the lua file.
--[[Background originally by londonali1010 (2009)
ability to set any size for background mrpeachy 2011
ability to set variables for bg in conkyrc dk75
the change is that if you set width and/or height to 0
then it assumes the width and/or height of the conky window
so:
lua_load ~/Conky/LUA/draw_bg.lua
TEXT
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.4}
See below: 1 2 3 4 5 6 7
${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
covers the whole window and will change if you change the minimum_size setting
1 = 20 corner_radius
2 = 0 x_position
3 = 0 y_position
3 = 0 width
5 = 0 height
6 = 0x000000 color
7 = 0.4 alpha
or both above TEXT
lua_load ~/Conky/LUA/draw_bg.lua
lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.4
TEXT
]]
require 'cairo'
local cs, cr = nil
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) 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)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end
Actually I originally had it in one line but thought the style of having it stacked evenly fit in more with everything else.
This config Im using is one I found on deviantart I think and then I tweaked and separated it to fit my conky
That was just an example of using the --oneline option of vnstat and awk to get what was needed. The big thing is to get what you wanted and you did.
Got vnstats working
Down: ${goto 75}${downspeed wlan0}${alignr 10}${voffset -10}${downspeedgraph wlan0 25,90} Up: ${goto 75}${upspeed wlan0} ${alignr 10}${voffset -10}${upspeedgraph wlan0 25,90} Downloads Today:${alignr 10}${execi 1 vnstat -i wlan0 | grep "today" | awk '{print $2 $3}'} Week:${alignr 5}${execi 1 vnstat -i wlan0 -w | grep "current week" | awk '{print $3 $4}'} Month:${alignr 10}${execi 1 vnstat -i wlan0 -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'} Uploads Today: ${alignr 10}${execi 1 vnstat -i wlan0 | grep "today" | awk '{print $5 $6}'} Week: ${alignr 5}${execi 1 vnstat -i wlan0 -w | grep "current week" | awk '{print $6 $7}'} Month: ${alignr 10}${execi 1 vnstat -i wlan0 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}
You can also use the oneline option for vnstat and awk. I use them for my net stats.
Conky code for picture.
${goto 60}${font size=12}STATS${font}
${goto 120}Dn${goto 190}Up${alignr 10}Total
${goto 60}Today${goto 105}${execi 300 vnstat --oneline -i wlan0|awk -F \; '{print $4}'}${goto 175}${execi 300 vnstat --oneline -i wlan0|awk -F \; '{print $5}'}${alignr 3}${execi 300 vnstat --oneline -i wlan0|awk -F \; '{print $6}'}
${goto 60}Week${goto 105}${execi 300 vnstat --oneline -i wlan0|awk -F \; '{print $13}'}${goto 175}${execi 300 vnstat --oneline -i wlan0|awk -F \; '{print $14}'}${alignr 3}${execi 300 vnstat --oneline -i wlan0|awk -F \; '{print $15}'}
${goto 60}Month${goto 105}${execi 300 vnstat --oneline -i wlan0|awk -F \; '{print $9}'}${goto 175}${execi 300 vnstat --oneline -i wlan0|awk -F \; '{print $10}'}${alignr 3}${execi 300 vnstat --oneline -i wlan0|awk -F \; '{print $11}'}
tony@crunchbang:~$ vnstat --oneline -i wlan0
1;wlan0;06/12/12;121.28 MB;9.17 MB;130.45 MB;2.15 KB/s;Jun '12;2.58 GB;186.27 MB;2.76 GB;2.86 KB/s;2.58 GB;186.27 MB;2.76 GB
Separate the areas with a semi-colon. I don't know why the weekly stats are after the monthly stats.
Todays download is $4, todays upload is $5 and todays total is $6.
tony@crunchbang:~$ vnstat --oneline -i wlan0|awk -F \; '{print $4}'
122.71 MB
tony@crunchbang:~$ vnstat --oneline -i wlan0|awk -F \; '{print $5}'
9.42 MB
tony@crunchbang:~$ vnstat --oneline -i wlan0|awk -F \; '{print $6}'
132.13 MB
Weekly stats are $13, $14, and $15.
tony@crunchbang:~$ vnstat --oneline -i wlan0|awk -F \; '{print $13}'
2.58 GB
tony@crunchbang:~$ vnstat --oneline -i wlan0|awk -F \; '{print $14}'
186.58 MB
tony@crunchbang:~$ vnstat --oneline -i wlan0|awk -F \; '{print $15}'
2.76 GB
Monthly stats are $9, $10, $11.
tony@crunchbang:~$ vnstat --oneline -i wlan0|awk -F \; '{print $9}'
2.58 GB
tony@crunchbang:~$ vnstat --oneline -i wlan0|awk -F \; '{print $10}'
186.58 MB
tony@crunchbang:~$ vnstat --oneline -i wlan0|awk -F \; '{print $11}'
2.76 GB
Good afternoon.....or evening .....or morning, depending on where you happen to be
So Im trying to add a calendar into my conky and finally I got it to work but I would like to highlight the current day but all I can get is this ...... <current day>.
Im using this for my calendar
${font DejaVu Sans Mono :size=18}${exec gcal --starting-day=sunday}
If anyone has a nicer way to do a calendar Id be very grateful for the help.
I'm using a bash script written by mobilediesel.
week.sh
#!/bin/bash
# by mobilediesel
font=("\${font monospace:size=5}" "\${voffset -4}\${font monospace:size=10}" "\${voffset -5}\${font monospace:size=16}" "\${voffset -8}\${font monospace:size=25}\${color 7095BB}" "\${color}\${voffset -3}\${font monospace:size=16}" "\${voffset -2}\${font monospace:size=10}" "\${voffset -2}\${font monospace:size=5}")
color=("" "" "" "\${color}" "" "" "")
for i in $(seq -3 3); do
echo -n "${font[$[i+3]]}$(date '+%d' -d "$i days")\${offset 3}"
done
Here's snippet of my conky.
${voffset 10}${font LCDMono:bold:size=10}${color B2B9C1}${alignc}${time %A}${color}
${voffset 5}${goto 67}${execpi 3600 ~/.conky/week.sh}
${voffset 5}${font LCDMono:bold:size=10}${color B2B9C1}${alignc}${time %b %Y}${color}${font}
Yea, I recall some people talking about that with hwmon, like ackernan, I've never experienced that problem.
Will run some test those since VastOne brought it up inadvertently in his conky.
Don't know what you're talking about! Must be an imaginary figment!
ackernan wrote:Seems like they display the same info. I'm using hwmon. Saw the latest posts about platform and looked into it some. I don't see any reason to change.
the only reaon i could think to use platform instead of hwmon is if, when you reboot, your sensor modules load in a different order from time to time (which can happen)
if it does happen then the hwmon folders will change alsowith platform you are calling one set of sensors directly, so it shouldnt matter about load order
Oh, that kinda makes sense. Never had problem with hwmon modules loading.
ackernan wrote:What's the difference between hwmon & platform? I looked at conky variable documentation and they seem redundant.
Well the difference is .....
platform: First 5 lines: 01 /sys/bus/platform/devices/f71882fg.2560/uevent 02 /sys/bus/platform/devices/f71882fg.2560/temp3_type 03 /sys/bus/platform/devices/f71882fg.2560/temp3_max_hyst 04 /sys/bus/platform/devices/f71882fg.2560/temp3_max_beep 05 /sys/bus/platform/devices/f71882fg.2560/temp3_max Last 5: /sys/bus/platform/devices/f71882fg.2560/fan2_alarm /sys/bus/platform/devices/f71882fg.2560/fan1_input /sys/bus/platform/devices/f71882fg.2560/fan1_full_speed /sys/bus/platform/devices/f71882fg.2560/fan1_beep /sys/bus/platform/devices/f71882fg.2560/fan1_alarm OR platform: First 5 lines: 01 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/uevent 02 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/temp3_type 03 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/temp3_max_hyst 04 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/temp3_max_beep 05 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/temp3_max Last 5: 83 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/fan2_alarm 84 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/fan1_input 85 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/fan1_full_speed 86 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/fan1_beep 87 /sys/bus/platform/devices/f71882fg.2560/hwmon/hwmon2/device/fan1_alarm hwmon: First 5 lines: 01 /sys/class/hwmon/hwmon2/device/uevent 02 /sys/class/hwmon/hwmon2/device/temp3_type 03 /sys/class/hwmon/hwmon2/device/temp3_max_hyst 04 /sys/class/hwmon/hwmon2/device/temp3_max_beep 05 /sys/class/hwmon/hwmon2/device/temp3_max last 5: 83 /sys/class/hwmon/hwmon2/device/fan2_alarm 84 /sys/class/hwmon/hwmon2/device/fan1_input 85 /sys/class/hwmon/hwmon2/device/fan1_full_speed 86 /sys/class/hwmon/hwmon2/device/fan1_beep 87 /sys/class/hwmon/hwmon2/device/fan1_alarm
... nothing, they seem to be the same.
aka: What do I know.
Seems like they display the same info. I'm using hwmon. Saw the latest posts about platform and looked into it some. I don't see any reason to change.
What's the difference between hwmon & platform? I looked at conky variable documentation and they seem redundant.
hwmon (dev) type n (factor offset) Hwmon sensor from sysfs (Linux 2.6). Parameter dev may be omitted if you have only one hwmon device. Parameter type is either 'in' or 'vol' meaning voltage; 'fan' meaning fan; 'temp' meaning temperature. Parameter n is number of the sensor. See /sys/class/hwmon/ on your local computer. The optional arguments 'factor' and 'offset' allow precalculation of the raw input, which is being modified as follows: 'input = input * factor + offset'. Note that they have to be given as decimal values (i.e. contain at least one decimal place).
platform (dev) type n (factor offset) Platform sensor from sysfs (Linux 2.6). Parameter dev may be omitted if you have only one platform device. Platform type is either 'in' or 'vol' meaning voltage; 'fan' meaning fan; 'temp' meaning temperature. Parameter n is number of the sensor. See /sys/bus/platform/devices/ on your local computer. The optional arguments 'factor' and 'offset' allow precalculation of the raw input, which is being modified as follows: 'input = input * factor + offset'. Note that they have to be given as decimal values (i.e. contain at least one decimal place).
^ I always install with ethernet. Wireless is tricky because most of the time non-free firmware is needed but it is possible to add the firmware from a USB, I do it always after the installation.
Yea, I can add firmware to use my wireless after install. That would be good if a network connection is not required for the install to complete.
I found a solution to my 'Release' file problem in this post, 3rd post in the thread, http://forums.debian.net/viewtopic.php?t=34909#wrap
Press alt-f2 and type
mkdir -p /cdrom /dev/cdroms
cd /dev/cdroms
ln -s ../sdg cdrom0
That got me past that issue but I ran into another problem. The install doesn't work unless you have an ethernet connection. My wireless card was not detected.
arclance wrote:[
I got the time display fixed, and tweaked it a little bit.The is one issue with your font...
It looks good but it's not monospace, you can see the problems I am having with it.I'm quite new to linux could you suggest a good monspace font and download location and I will adjust the configurations for that font
I get fonts at http://www.dafont.com/. I think they also have monospace fonts.
Make sure you did not have a number at the end of
of=/dev/sd[x]
ie, sdc NOT sdc1.
That fixed my boot problem, I was using sdg1 instead of sdg. Glad it was simple. My next problem happens when cdrom hardware is detected. I get an error of 'no valid release file found'. I downloaded iso images from the site in the first post. I've gone through the steps a few times to make sure I wasn't missing anything.
ackernan wrote:What do you use to burn the iso image to a USB drive? I use Unetbootin and it boots fine. The install aborts when it looks for a cd and doesn't find it.
Try using dd, like below. This often works where unetbootin fails (I actually only ever use dd)
dd if=archlinux.iso of=/dev/sd[x]
Replace archlinux.iso with the appropriate file name and path, and /dev/sd[x] with your USB device
From the Arch wiki https://wiki.archlinux.org/index.php/US … tion_Media
That didn't work. I've tried a couple different distro iso images. They all have the same error isolinux.bin missing.
Should I try another usb drive? I think I got another around here somewhere.
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat