Add functionality to your desktop
Forum rules
Before you post read
how to get help . Topics in this forum are automatically closed 6 months after creation.
steak1987
Post
by steak1987 » Wed Jan 18, 2012 11:50 am
Hey, when I run conky in the terminal, I get this message :
http://i.imgur.com/dqoVG.png
Code: Select all
$ conky
Conky: desktop window (1200023) is subwindow of root window (ad)
Conky: window type - normal
Conky: drawing to created window (0x3a00001)
Conky: drawing to double buffer
Nothing happens. Conky doesnt show up or anything. What can I do ?
Last edited by
LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Habitual
Post
by Habitual » Wed Jan 18, 2012 11:52 am
Post your .conkyrc please.
steak1987
Post
by steak1987 » Wed Jan 18, 2012 12:06 pm
Habitual wrote: Post your .conkyrc please.
How would I do that ? Where can I find it ? (talk to me like a fresh off the boat, windows refugee)
I know how to shove commands into terminal though.
Habitual
Post
by Habitual » Wed Jan 18, 2012 12:36 pm
Sure.
Terminal >
If you don't have or haven't made one yet, it will not be found.
In that case, you will need to make one if you prefer more than what the default .conkyrc provides and that is an Adventure!
Here's a starter template you can build off of...
Code: Select all
# Static and Variable Values used by Habitual/John Jones
# Static Values
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_xft yes
draw_outline no
draw_borders no
uppercase no
draw_shades no
draw_shades yes
double_buffer yes
border_width 0
text_buffer_size 2048
default_color white
update_interval 1.0
# Variable Values # These values are the ONLY thing that change from widget to widget
alignment tm
gap_x 00
gap_y 40
minimum_size 10 1
maximum_width 100
TEXT
Welcome to LinuxMint!
Save it to say ~/steakrc
Then you can run that with
Terminal >
steak1987
Post
by steak1987 » Wed Jan 18, 2012 12:56 pm
Code: Select all
find `pwd` -iname "*conkyrc*"
/home/..../Documents/conkytransmission/.conkytransmission/example.conkyrc
/home/..../.conkyrc_bkp
/home/..../.conkyrc
/home/..../.conkytransmission/example.conkyrc
I then used gedit to open it, and I saw this :
Code: Select all
###############################################################################################
# These settings represent the minimum .conkyrc to get results that look like the screenshot. #
###############################################################################################
#################
# - Lua Files - #
#################
lua_load ~/.conkytransmission/conkytransmission.lua
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Sans:size=8
override_utf8_locale yes
text_buffer_size 2048
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182
#########################
# - Graphics settings - #
#########################
draw_shades no
default_color D6D6D6
color0 FFFFFF
color1 B5BB72
color2 FFFFFF
TEXT
################
# - TORRENTS - #
################
${execpi 3 ~/.conkytransmission/conkytransmission.py}
I replaced that with your code.
I opened gedit, made a new file, posted the quote into it, and then saved it as conkytest in my home directory. The resulting terminal output was :
Code: Select all
conky -c ~/conkytest
Conky: desktop window (1200023) is subwindow of root window (ad)
Conky: window type - override
Conky: drawing to created window (0x3a00001)
Conky: drawing to double buffer
Nothing still shows up.
http://i.imgur.com/xNjcF.png
steak1987
Post
by steak1987 » Wed Jan 18, 2012 11:37 pm
Bump
horus
Post
by horus » Thu Jan 19, 2012 6:50 am
Try this...
own_window yes
own_window_argb_visual yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
steak1987
Post
by steak1987 » Thu Jan 19, 2012 9:22 am
horus wrote: Try this...
own_window yes
own_window_argb_visual yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
Is that after the conky command, in terminal ? Or do I add it to the script ?
Habitual
Post
by Habitual » Thu Jan 19, 2012 10:14 am
Code: Select all
# - Lua Files - #
# lua_load ~/.conkytransmission/conkytransmission.lua
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
use_xft yes
xftfont Sans:size=8
override_utf8_locale yes
text_buffer_size 2048
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182
draw_shades no
default_color D6D6D6
color0 FFFFFF
color1 B5BB72
color2 FFFFFF
TEXT
Hello
Change own_window_type normal to own_window_type override
it works here.
horus
Post
by horus » Thu Jan 19, 2012 12:26 pm
Add it to your .conkyrc file.
Mine looks like...
# lm-sensors and hddtemp are both required to make this work
# both are available from main repos.
# set to yes if you want Conky to be forked in the background
background no
out_to_console no
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont DejaVu Sans Mono:size=10
own_window yes
own_window_argb_visual yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Text alpha when using Xft
xftalpha 0.8
#on_bottom yes
# Update interval in seconds
update_interval 2
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
#minimum_size 250 5
maximum_width 268
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 10
# border margins
#border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# 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 15
gap_y 60
# Add spaces to keep things from moving about? This only affects certain objects.
#use_spacer yes
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
steak1987
Post
by steak1987 » Thu Jan 19, 2012 12:58 pm
Habitual wrote: Code: Select all
# - Lua Files - #
# lua_load ~/.conkytransmission/conkytransmission.lua
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
use_xft yes
xftfont Sans:size=8
override_utf8_locale yes
text_buffer_size 2048
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182
draw_shades no
default_color D6D6D6
color0 FFFFFF
color1 B5BB72
color2 FFFFFF
TEXT
Hello
Change own_window_type normal to own_window_type override
it works here.
When I use the unmodified script that you quoted, I see a little hello sign in the top right corner, but no system info :
http://i.imgur.com/D6Crg.png
When I do
Change own_window_type normal to own_window_type override
, this is what I get :
http://i.imgur.com/3lHZg.png
That is to say, for the original script you posted, SOMETHING shows up, but when Im asked to do the modification, nothing shows up.
Habitual
Post
by Habitual » Thu Jan 19, 2012 1:07 pm
steak1987 wrote: Habitual wrote: ...SOMETHING shows up, but when Im asked to do the modification, nothing shows up.
"Asked to to the modification"...?
"Hello" is all the code provides.
override varies on diff. systems I have used, It's kinda of hit and miss but generally that is the line I use.
steak1987
Post
by steak1987 » Thu Jan 19, 2012 2:05 pm
Habitual wrote: steak1987 wrote: Habitual wrote: ...SOMETHING shows up, but when Im asked to do the modification, nothing shows up.
"Asked to to the modification"...?
"Hello" is all the code provides.
override varies on diff. systems I have used, It's kinda of hit and miss but generally that is the line I use.
Sorry, I was kinda vague there. What I meant was, that when I used the original script that you quoted, the text "hello" showed up, but when I altered the one value to "override", nothing showed up.
I do apologise for my vagueness and if I seemed pompous that was definetly not my intent. I am simply curious about how I can get conky to "work" on my system, so I can see the load, and network usage and whatnot, and the script that you suggested in the quote seems to be going in the right direction.
Habitual
Post
by Habitual » Thu Jan 19, 2012 2:17 pm
steak1987 wrote: Habitual wrote: steak1987 wrote: but when I altered the one value to "override", nothing showed up.
I do apologise for my vagueness and if I seemed pompous that was definetly not my intent. I am simply curious about how I can get conky to "work" on my system, so I can see the load, and network usage and whatnot, and the script that you suggested in the quote seems to be going in the right direction.
No harm, no foul.
It was only meant to encourage you to dig into the conkyrc and create your own conkyrc file.
This is the default code installed with conky...
Code: Select all
alignment top_left
background no
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=12
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type desktop
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
TEXT
${scroll 16 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color grey}Networking:
Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
$hr
${color grey}Name PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
Save it to /home/user/somefile then run it with
and see if THAT shows up on the screen.
Chop and hack accordingly.
Habitual
Post
by Habitual » Thu Jan 19, 2012 2:26 pm
steak1987
Post
by steak1987 » Thu Jan 19, 2012 3:24 pm
The original conky file worked great
http://i.imgur.com/PYFeG.png
However, whenever I clicked the background, the conky window vanished. Undaunted, I tried to make a mashup conky script from the first two posts here :
http://forums.linuxmint.com/viewtopic.php?f=60&t=30209
I tried removing the calendar from the first script, and replacing it with the process list from the script below.
I got this :
Code: Select all
# maintain spacing between certain elements
use_spacer yes
# set to yes if you want tormo to be forked in the background
#background yes
use_xft yes
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono-9
#xftfont Andale Mono-9
#xftfont Clean-9
#xftfont cubicfive10:pixelsize=10
#xftfont squaredance10:pixelsize=14
#xftfont swf!t_v02:pixelsize=12
# Text alpha when using Xft
xftalpha 0.65
mail_spool $MAIL
# Update interval in seconds
update_interval 1.0
# Create own window instead of using desktop (required in nautilus)
own_window yes
#own_window_type override
#own_window_transparent yes
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 230
maximum_width 320
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no # amplifies text
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_margin 0
# border width
border_width 2
# Default colors and also border colors, grey90 == #e5e5e5
default_color grey90
default_shade_color black
default_outline_color DarkGrey
# 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 25
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# stuff after 'TEXT' will be formatted on screen
## IF I WANT TO ADD THE WEATHER BACK IN...
#${color #ffcb48}WEATHER$color ${color #ffcb48}${hr 2}$color
# ${execi 1800 /home/jeff/.conky-weather/weather.sh 02155}
##
## IF I WANT THE HDD TEMPERATURE BACK IN...
# temp:$color ${hddtemp /dev/sda}
##
## IF I WANT BATTERY STATE BACK IN...
#${color #ffcb48}BATTERY STATE$color ${color #ffcb48}${stippled_hr}$color
# $battery (time left: ${battery_time})
##
TEXT
$color
${color #dc0e0e}System ${hr 2}$color
${color white}$nodename $sysname $kernel on $machine
Uptime:$uptime
${color white}${time %A %B %e, %G} ${color #00ff00}${time %I:%M:%S}${time %p} ${time %Z}
${color #dc0e0e}Cpu ${hr 2}$color
${color white}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}
${color white}Usage:${color green}${cpu}% ${color #DFDFDF}${cpubar}
${color #DFDFDF}${cpugraph} ${color #DFDFDF}
${color white}Processes:${color green} $processes ${color white}Running:${color green} $running_processes ${color white}Cpu:${color green} ${acpitemp}C${color white}
${color #dc0e0e}HDD ${hr 2}$color
${color white}used:${color green} ${fs_used_perc /}% ($fs_used/$fs_size) $alignr ${color white}
${color #DFDFDF}${fs_bar 6 /}$color
${color white}disk IO:${color green} $diskio
${color #DFDFDF}${diskiograph #DFDFDF}$color
${color #dc0e0e}RAM ${hr 2}$color
${color white}RAM used:${color green} $memperc% ($mem/$memmax)
${color #DFDFDF}${membar 6}$color
${color white}swap used:${color green} $swapperc% ($swap/$swapmax)
${color #DFDFDF}${swapbar 6}$color
${color #dc0e0e}NETWORKING ${hr 2}$color
${color white}Down: ${color green}${downspeed eth0} k/s ${alignr}${color white}Up:${color green} ${upspeed eth0} k/s
${color #DFDFDF}${downspeedgraph eth0 25,140 FF8200 ff0000} ${alignr}${upspeedgraph eth0
25,140 FF0000 FF9900}$color
${color white}Total: ${color green}${totaldown eth0} ${alignr}${color white}Total:${color green} ${totalup eth0}
${color white}Inbound:${color green} ${tcp_portmon 1 32767 count}
${color white}Outbound:${color green} ${tcp_portmon 32768
61000 count}${alignr}${color white}Total:${color green} ${tcp_portmon 1 65535 count}
${color}Name PID CPU% MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
AND, It worked
...wooohooo, thanks habitual
...
http://i.imgur.com/ywxqN.png
On to more tinkering !
Habitual
Post
by Habitual » Thu Jan 19, 2012 4:24 pm
Glad it's working'ish.