You are not logged in.
Ive seen ways to show transmission downloads in conky and I believe utorrent also but how about vuze downloads? that possible?
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
@ackernan: Thank you for your reply. I must say, that seems like an awful lot of code for a simple background command in conky.
In other news, "own_window_color" magically worked when I tried a few minutes ago. I cannot find anything different from what I tried last night. Guess that's what happens when I tweak things when I should be asleep.
Last edited by elvaqueroloco (2012-07-01 18:02:36)
To say that any people are not fit for freedom, is to make poverty their choice, and to say they had rather be loaded with taxes than not. - Thomas Paine
Offline
@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.
Offline
How do you create a background color for conky?
I've looked numerous places on and off the forums and the best I could find was this #! post
However, "own_window_color" does not work.
Ideas?
try " own_window_colour " i.e. with the proper british english spelling with a 'u',
also consider that the colour code itself takes either a hex value (e.g. ffffff, without '#') or a valid RGB name (see /usr/lib/X11/rgb.txt)
Just suggestions, try them and see!
Offline
@ackernan: Thank you for your reply. I must say, that seems like an awful lot of code for a simple background command in conky.
![]()
In other news, "own_window_color" magically worked when I tried a few minutes ago. I cannot find anything different from what I tried last night. Guess that's what happens when I tweak things when I should be asleep.
![]()
Rather than have a whole bunch of background LUA scripts for different sized conkys why not use the "ultimate background LUA" - one script - the configuration for each use is done within the actual conky file:
In the draw-bg.lua - a simple HowTo at the beginning of the script explains it's use:
--[[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:
Above and After TEXT (requires a composite manager or it blinks!)
lua_load ~/wea_conky/draw_bg.lua
TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
OR Both above TEXT (no composite manager required - no blinking!)
lua_load ~/wea_conky/draw_bg.lua
lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
TEXT
Note
${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}
with 2,3,4 & 5 at 0, the whole window will be covered
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
]]
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
An example in the conky file:
lua_load ~/Conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.4
TEXT
conky stuff here
Or some working examples with a '_pre' and '_post' above TEXT for the last one with two colours and alpha values. If you use a composite manager you can have as many 'below' TEXT as you wish. Above text you can only use two.
Last edited by Sector11 (2012-07-15 12:27:24)
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
Anyone know if theres a way to monitor nvidia GPU load on conky?
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
try in terminal
nvidia-smi -q d UTILIZATION
if it returns more than "N/A" for GPU then it is possible, if not then FUBAR
Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop
Offline
try in terminal
nvidia-smi -q d UTILIZATION
if it returns more than "N/A" for GPU then it is possible, if not then FUBAR
luke@luke-PC ~ $ nvidia-smi -q d UTILIZATION
Invalid combination of input arguments. Please run 'nvidia-smi -h' for help.
Looks like Im SOL?
luke@luke-PC ~ $ nvidia-smi -q
==============NVSMI LOG==============
Timestamp : Mon Jul 2 16:22:21 2012
Driver Version : 280.13
Attached GPUs : 1
GPU 0000:01:00.0
Product Name : GeForce 210
Display Mode : N/A
Persistence Mode : Disabled
Driver Model
Current : N/A
Pending : N/A
Serial Number : N/A
GPU UUID : N/A
Inforom Version
OEM Object : N/A
ECC Object : N/A
Power Management Object : N/A
PCI
Bus : 1
Device : 0
Domain : 0
Device Id : 0A6510DE
Bus Id : 0000:01:00.0
Fan Speed : N/A
Memory Usage
Total : 1023 Mb
Used : 130 Mb
Free : 893 Mb
Compute Mode : Default
Utilization
Gpu : N/A
Memory : N/A
Ecc Mode
Current : N/A
Pending : N/A
ECC Errors
Volatile
Single Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Total : N/A
Double Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Total : N/A
Aggregate
Single Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Total : N/A
Double Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Total : N/A
Temperature
Gpu : 49 C
Power Readings
Power State : N/A
Power Management : N/A
Power Draw : N/A
Power Limit : N/A
Clocks
Graphics : N/A
SM : N/A
Memory : N/A
Would this mean that I could show memory used/available then?
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
Yes.
And for before, I've made a typo, it should be
nvidia-smi -q -d UTILIZATION
a typo was no hyphen before "d"
But it shows no data anyway so...
There are code for memory - if you want to format output then see "END{}" part:
${execpi 5 nvidia-smi -q -d MEMORY |mawk -F: 'tolower($0) ~ /total/ {totalM = sprintf("%s", $2)} tolower($0) ~ /used/ {usedM = sprintf("%s", $2)} tolower($0) ~ /free/ {freeM = sprintf("%s", $2)} END{print "${goto 20}Total:"totalM"${goto 120}Used:"usedM"${goto 220}Free:"freeM}'}
Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop
Offline
^ Awesome thanks dk75
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
Just found this on Pablokal's blog:
http://stillstup.blogspot.nl/2012/06/vo … -arch.html
I don't know if it has been mentioned before. Also don't know if it will work on #!
Looks like a new toy for all the conky addicts here.
sed 's/stress/relaxation/g'
Privacy & Security on #!
Offline
Indeed I have posted it here: http://crunchbanglinux.org/forums/post/238446/#p238446
Nice that you notice it, Tunafish.
It is really a very nice way to explore all kind of beautiful conky scripts.
It is directly usable in Debian; you only have to install conky-lua in a different way than in Arch:
sudo apt-get install conky-all
GNu/Linux: Nu nog schoner: http://linuxnogschoner.blogspot.com/ Dutch
Offline
@ lwfitz & dk75
I can get fan speed, gpu temp, memory used, and max memory using
nvidia-smi -a
You can also get the amount of free memory, if I remember correctly, but I can't check that here.
I would post some sample lua code but I lost power Friday night and still don't have it back yet.
I can't get at my lua script to copy it since it is on my desktop computers.
Edit:
Actually I backed-up the script to my dropbox before I lost power so here is the lua I use to get that information
sensors = io.popen("nvidia-smi -a")
sensorData = sensors:read("*a")
sensors:close()
sensorData = sensorData:gsub(",",""):gsub("\n",'","')
assert(loadstring('sensorData = {"'..sensorData..'"}'))()
gpu_mem_used = sensorData[42]:sub(35,43):gsub(" MB","")
gpu_mem_total = sensorData[41]:sub(35,43):gsub(" MB","")
gpu_mem_percent = string.format("%.2f", (tonumber(gpu_mem_used)/tonumber(gpu_mem_total))*100)
gpu_temp = sensorData[79]:sub(35,40):gsub(" ","°")
gpuFan_speed = sensorData[38]:sub(35,40):gsub(" ","")
@ elvaqueroloco
You can also use semi-transparent images, like ARGB .png files, to shade the background.
Edit:
You can use a 1x1 pixel .png and resize it to fit your conky with ${image} or by using imlib2 in a lua script.
I would go into more detail but I don't have any linux computers I can use here.
mrpeachy has a lua image drawing function that I use if you are interested in that.
@ mrpeachy
I lost power before I could do much with changing variables to be local in my lua script.
I did get far enough to be annoyed by if statements counting as loops when making variables local.
While I wait for my power to come back on could you tell me if this will make a local cpu_table1 in the conky_main() function and then destroy the global cpu_table1 without destroying the local version?
function conky_main()
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)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
--setup cpu table
if updates == 4 then
cpu_table1 = {}
end
if updates == 5 then
cpu_table1[1] = conky_parse("${cpu cpu1}")
end
if updates>5 then
local cpu_table1 = cpu_table1
cpu_table1 = nil
end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function
If that does not work I can just do
function conky_main()
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)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
--setup cpu table
if updates == 4 then
cpu_table1_0 = {}
end
if updates == 5 then
cpu_table1_0[1] = conky_parse("${cpu cpu1}")
end
if updates>5 then
local cpu_table1 = cpu_table1_0
cpu_table1_0 = nil
end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end-- end main function
right?
Last edited by arclance (2012-07-04 20:35:38)
Offline
@arclance
im not sure about the need to localize tables... i would have to look into that
Last edited by mrpeachy (2012-07-04 21:18:07)
Offline
^
Thanks, I will try my second idea (using separate global and local variables) when my power comes back on.
That might not be until this weekend though.
I have 13 graph tables with 300 entries each and I think they are the most likely culprit for the memory leak due to their size but I can't test that theory without being able to use my computer.
I also ran into problems localizing variables due to the way I was using loadstring() but I figured out how to fix that already.
Offline
you could try this for the cputable example
local tab={}--initialize at the top of the script outside of any function
print ("test1",tab[1])
function conky_main()
local updates=tonumber(conky_parse('${updates}'))
if updates>5 then
tab[1]="a"
print ("test2",tab[1])
end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end--end main function
print ("test3",tab[1])
in this case, you get the following on saving the script
test1 nil
test3 nil
Conky: Lua script '/home/mcdowall/lua/blank.lua' reloaded
test2 a
the localized table contents can be accessed anywhere in the script
Last edited by mrpeachy (2012-07-04 21:37:54)
Offline
^
That is an interesting idea I will keep it in mind when I am able to work on the script again.
I am not sure if it will work the way I want it to or not, I will have to try a few things and see what works best.
Offline
HI guys,
HOw can I format a script output in Conky? I have an offset value of 400 (right value for the resolution size i use), the first line appears at that offset value, but all the other lines not. How can I make conky show the entire script output at a specific offset value without calling the script for each line? I can format the script, but I would rather do it in the .conkyrc file.
THe output looks something like this.
THis is twitter bla bla bla first line
This is twitter bla bla bla second line
This is twitter bla bla bla third line
.
.
.
Thank you
Offline
@ lwfitz & dk75
I can get fan speed, gpu temp, memory used, and max memory usingnvidia-smi -a
You can also get the amount of free memory, if I remember correctly, but I can't check that here.
I would post some sample lua code but I lost power Friday night and still don't have it back yet.
I can't get at my lua script to copy it since it is on my desktop computers.Edit:
Actually I backed-up the script to my dropbox before I lost power so here is the lua I use to get that informationsensors = io.popen("nvidia-smi -a") sensorData = sensors:read("*a") sensors:close() sensorData = sensorData:gsub(",",""):gsub("\n",'","') assert(loadstring('sensorData = {"'..sensorData..'"}'))() gpu_mem_used = sensorData[42]:sub(35,43):gsub(" MB","") gpu_mem_total = sensorData[41]:sub(35,43):gsub(" MB","") gpu_mem_percent = string.format("%.2f", (tonumber(gpu_mem_used)/tonumber(gpu_mem_total))*100) gpu_temp = sensorData[79]:sub(35,40):gsub(" ","°") gpuFan_speed = sensorData[38]:sub(35,40):gsub(" ","")
Hey thanks a lot arlance! That computer is in my office and I wont be back there till Monday but I will mess with it when Im there. I know I was able to see memory (total, free, and used) so I believe I should be able to get the output into conky somehow.
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
...If this post seems too involved for the Monster thread, tell me and I will post a Separate Topic..
A little help here, Please...Transparency...
...Works perfectly in #!Crunchbang
...Transparent in Wheezy BUT the Processes displayed (Last 8 lines) ghost over the previous 8 proceses as they up date in the bottom of the Conky display..
...Sid Black Background won't go transparent except by CLI command..
....cb-compmgr --xcompmgr &
As I have said in posts here before I am not a practiced (practised) conky script guy. I will find a script I like and modify it. So, I do run into issues now and again. I prefer a simple conky and I am running various incarnations of the script that I have enclosed below in #!Crunchbang, Wheezy and Siduction. Problem being is Transparency in Siduction 12. The collection of Conky users(gurus) and threads are here and not Siduction.
Here is what I have done:
First off due to the nice cb scripts all conkys run great with #!Crunchbang, no issues.
Second, with Wheezy I copied over the cb-compmgr script,, installed the xcompmgr package,, placed the 1st script below in /home/user/.config/autostart and Wheezy's Conky is transparent.
Lastly, Siduction(Sid) Black Background no conky transparency.
..So in Siduction I installed xcompmgr package etc etc just as in Wheezy but the background for conky is still black.
However if I run the 2nd line of the first script below via the CLI terminal..voila!
Conky goes transparent..Run it again CLI Black..Again CLI transparent..well you get the idea..
So, viewing the two scripts below and examples above.. Suggestions/Solutions for Conky transparency of the below conky script in Sid would be greatly appreciated...
(sleep 10s && cb-compmgr --cairo-compmgr) &
cb-compmgr --xcompmgr &
[Desktop Entry]
Name=xfce4-composites.txt
background no
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
update_interval 4.0
total_run_times 0
own_window_argb_visual yes
own_window_argb_value xxx
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 5
maximum_width 220
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color grey
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 48
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
TEXT
$sysname $kernel on $machine
Uptime $alignr $uptime
Load $alignr $loadavg
Hostname $alignr $nodename
wlan0 $alignr ${addr wlan0}
Inbound $alignr ${downspeed wlan0} kb/s
${downspeedgraph wlan0}
Outbound $alignr ${upspeed wlan0} kb/s
${upspeedgraph wlan0}
$processes processes ($running_processes running)
CPU $alignr ${cpu cpu0}%
${cpubar cpu0}
MEM $alignc $mem / $memmax $alignr $memperc%
$membar
/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}
/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}
swap $alignc $swap / $swapmax $alignr $swapperc%
${swapbar}
NAME $alignr PID CPU
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}
${top name 7} $alignr ${top pid 7} ${top cpu 7}
${top name 8} $alignr ${top pid 8} ${top cpu 8}
#${top name 9} $alignr ${top pid 9} ${top cpu 9}
#${top name 10} $alignr ${top pid 10} ${top cpu 10}
#${top name 11} $alignr ${top pid 11} ${top cpu 11}
#${top name 12} $alignr ${top pid 12} ${top cpu 12}
#${top name 13} $alignr ${top pid 13} ${top cpu 13}
Last edited by sqlpython (2012-07-05 16:21:59)
OHCG #!, Jessie,, Siduction-13.1, Slackware 14, Bridge,, Sabayon 13.4,
Offline
Hey thanks a lot arlance! That computer is in my office and I wont be back there till Monday but I will mess with it when Im there. I know I was able to see memory (total, free, and used) so I believe I should be able to get the output into conky somehow.
I have used that code in two different computers with three different graphics cards so it should work as is just to collect the data.
"nvidia-smi -a" has entries for all the data that could be reported by any nvidia graphics card so most of it will be "N/A".
Supposedly the really expensive, glorified rendering cluster, nvidia cards do return values for all the fields returned by "nvidia-smi -a".
Apparently more fields used to return data for most cards but nvidia stopped supporting them in nvidia-smi at some point.
Last edited by arclance (2012-07-05 20:14:17)
Offline
I have used that code in two different computers with three different graphics cards so it should work as is just to collect the data.
"nvidia-smi -a" has entries for all the data that could be reported by any nvidia graphics card so most of it will be "N/A".
Supposedly the really expensive, glorified rendering cluster, nvidia cards do return values for all the fields returned by "nvidia-smi -a".
Apparently more fields used to return data for most cards but nvidia stopped supporting them in nvidia-smi at some point.
I tried to get in there today just so I could see what info I could get from it but I got stuck having to do real work......... lol
If I remember correctly memory usage was all that it showed. its the Nvidia gforce 210 I believe.
another idea I had was to show network computers in conky? Like maybe samba shares? Would I have to mount the network drive and then do it?
Is that even possible or have I lost my mind?
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
How do you get specific icons in the code? Part of my script looks like this:
According to my code the icons in the System Secton comes from (I think), inorder:
OpenLogos Linux 3.2. etc
StyleBats Nvidia
StyleBats Intel P4 etc
StyleBats System Uptime
(But how are the three StyleBats logos different?).
Also, and this is the main question - how do I change the icons in the Processors Section to be the same as the icon next to Intel P4 Extreme Edition in the System Section? The code in my code in the Processors Section states the icon for each cpu is StyleBats - I can't work out how StyleBats has different icons and how it decides which one to use.
Last edited by quarkrad (2012-07-06 08:40:49)
Offline
How do you get specific icons in the code? Part of my script looks like this:
According to my code the icons in the System Secton comes from (I think), inorder:
OpenLogos Linux 3.2. etc
StyleBats Nvidia
StyleBats Intel P4 etc
StyleBats System Uptime(But how are the three StyleBats logos different?).
Also, and this is the main question - how do I change the icons in the Processors Section to be the same as the icon next to Intel P4 Extreme Edition in the System Section? The code in my code in the Processors Section states the icon for each cpu is StyleBats - I can't work out how StyleBats has different icons and how it decides which one to use.
And... your conkyrc is... in space?
Then we can't help you.
But in case where your conkyrc would be found in your post then it could be another story.
Last edited by dk75 (2012-07-06 08:50:04)
Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop
Offline
Here is my conky - I'm a newbie. I have done a bit of playing and decided to try and build my own conky (copying bits of code from other sources like VinDSL. I'm trying to teach myself how the main window is constructed and what code effects what. Like positioning, heigth, width, etc and later the effects of the lua files). - So ... there are probably errors. Here is my code and the window onmy Desktop.
### Begin Window Settings ###
# Create own window instead of using desktop (required in nautilus)
own_window yes
#colour of background
own_window_colour 003EFF
# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
own_window_type override #override
own_window_transparent no
#own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_class Conky
#own_window_title test 242 CPU0
# 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 override
# own_window_argb_visual yes
minimum_size 255 500 ## width, height
maximum_width 255 ## width, usually a good idea to equal minimum width
# 40 moves box away from ide of screen
gap_x 40 ### left &right
gap_y 0 ### up & down
alignment mr
### Font Settings defines text in box ###
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Anonymous Pro:bold:size=9
#xftfont WenQuanYi Micro Hei Mono:size=8
color1 FFA07A #LightSalmon
color2 778899 #LightSlateGrey
color3 FFDEAD #NavajoWhite
### Miscellaneous Section ###
# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer right
# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256
# Subtract (file system) buffers from used memory?
no_buffers yes
TEXT
# 180 defines how far 12.04 is to the right
${voffset -33}${font OpenLogos:size=103}${color3}v${font}${voffset -76}${goto 180}${font UbuntuTitleBold:size=19.6}${color1}${pre_exec cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
##################################
## SYSTEM ##
##################################
${voffset 17}${font DroidSans:bold:size=8.25}${color1}SYSTEM${offset 8}${color2}${voffset -2}${hr 2}${font}
# ${voffset 4}${font OpenLogos:size=10}${color3}u${voffset -4}${font DroidSans:size=8.6}${color3}${offset 5}${pre_exec lsb_release -sd || cat /etc/*release}${font}
${voffset 2}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.6}${color3}${offset 3}${sysname}${offset 3}${kernel}${alignr}${font DroidSans:size=8.3}${machine}${font}
${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color3}${offset 5}nVidia GeForce 7600 GT${alignr}${font DroidSans:size=8.3}${pre_exec dpkg --status nvidia-current | grep Version | cut -f 1 -d '-' | sed 's/[^.,0-9]//g'}${font}
${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}Intel${offset 3}P4${offset 3}Extreme${offset 3}Edition${alignr 1}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font}
${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}System${offset 3}Uptime${alignr}${font DroidSans:size=8.3}${uptime_short}${font}
##################################
## PROCESSORS ##
##################################
${voffset 4}${font DroidSans:bold:size=8}${color1}PROCESSORS${offset 8}${color2}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU1${offset 5}${font DroidSans:size=8.3}${cpu cpu0}%${font}
${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu1}%${font}
${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU3${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font}
${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU4${offset 5}${font DroidSans:size=8.3}${cpu cpu3}%${font}
##################################
## DUAL CORE TEMP ##
##################################
${font DroidSans:bold:size=8}${color1}DUAL CORE TEMPERATURES${offset 10}${color2}${hr 2}
${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}Core 1 ${color #00FF00}${exec sensors | grep "Core 0" | cut -c18-19}°C${font}${alignr}${color3}69°C${font}
${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}Core 2 ${color #00FF00}${exec sensors | grep "Core 1" | cut -c18-19}°C${font}${alignr}${color3}69°C${font}
thanks.
Offline
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