Want to make a minor tweak to the default conky that comes with PinGuyOs 14.04.2
Want to add a second Cpu line and show the clock.
Want to make a minor tweak to the default conky that comes with PinGuyOs 14.04.2
Want to add a second Cpu line and show the clock.
The conky is using various transparent images and the output is positioned vertically with ${voffset}s.
Not easily modified because if you add another cpu line you throw all the following lines out of whack because they use negative ${voffset} to position elements.
Start by making a copy and see if you can rewrite the "# Cpu, memory, uptime, and load graph #" section.
I don't have all the conky elements to test but start with something like this for that section....
Then you will need to align the next section with the background images.Code:# Cpu, memory, uptime, and load graph # \ ${voffset 294}${goto 40}${color5}Cpu0:${color}${goto 125}${color2}${cpubar cpu0 5,36}${color}${alignr 39}${color6}${cpu cpu0}%${color} ${goto 40}${color5}Cpu1:${color}${goto 125}${color2}${cpubar cpu1 5,36}${color}${alignr 39}${color6}${cpu cpu1}%${color}[/B]
This conky is written needlessly complicated using voffsets which makes "minor tweaking" not so minor.
Last edited by CantankRus; March 31st, 2015 at 01:36 AM.
ok, so it's likely to snowball. thanks.
I added it to the very end. It gives me the 2nd cpu line
Yeah probably not what you wanted ...but easiest.
You could even make your own little conky to run as well as the default config.
Name what you want and save where ever.
Run with...
Have a play around.Code:conky -c /path/to/conkyconfig
You could use the first part of your default config which loads the background images.
Then configure what you want displayed.
Save and run this config as I described above...
Use the conky manpage for help.Code:# Conky settings # background no update_interval 1 double_buffer yes no_buffers yes imlib_cache_size 10 # Window specifications # alignment top_right gap_x 20 gap_y 50 minimum_size 268 620 maximum_width 268 own_window yes own_window_type normal # other options are: override/dock/desktop/panel own_window_transparent yes own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below border_inner_margin 0 border_outer_margin 0 #alignment middle_middle #own_window_argb_visual yes #own_window_argb_value 0 # Graphics settings # draw_shades no default_shade_color AAAAAA draw_outline no default_outline_color AAAAAA draw_borders no draw_graph_borders no default_graph_size 26 80 show_graph_scale no show_graph_range no # Text settings # use_xft yes xftalpha 0 xftfont Droid Sans:size=8 text_buffer_size 256 override_utf8_locale yes # Useful shortenings # short_units yes pad_percents 2 top_name_width 7 # Color scheme # default_color FFFFFF color1 FFFFFF color2 FFFFFF color3 FFFFFF color4 FFFFFF color5 FFFFFF color6 DCDCDC color7 FFFFFF color8 FFFFFF TEXT # Various images # ${execi 300 ~/.conky-weather/YahooWeather} ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/top-bg.png -p 20,30 -s 228x61}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/bottom-bg.png -p 20,492 -s 228x99}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/bg-1.png -p 20,177 -s 228x86}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/bg-2.png -p 20,263 -s 228x105}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/bg-3.png -p 20,368 -s 228x110}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/bg-4.png -p 20,478 -s 228x14}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/bg-5.png -p 20,478 -s 228x14}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/bg-6.png -p 20,91 -s 228x86}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/fav-color.png -p 20,91 -s 228x86}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/border.png -p 20,30 -s 228x561}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/separator-v.png -p 95,185 -s 1x76}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/separator-v.png -p 172,185 -s 1x76}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/separator-h.png -p 21,369 -s 226x1}\ ${image ~/.conky-weather/assets/Zukitwo-v2/God-Mode/separator-h.png -p 21,269 -s 226x1}\ \ ${goto 40}My content
Last edited by CantankRus; March 31st, 2015 at 04:39 AM.
I've bunch of conky config files....I want to add them to startup and in a quiet mode. Files :conkyrc....conky_speed....conky_rss how should i add them to startup with a single command
Use a script and add the script to startups.
Save as startconky.sh and make executable.
Use your own paths.Code:#!/bin/sh sleep 30 # sleep not required for xfce on startup - 30 or more for others conky -c ~/path/to/conkyrc & conky -c ~/path/to/conky_speed & conky -c ~/path/to/conky_rss
Each line to start a conky except the last must use a "&"
Thanks
conky_speed is returning nul
i've installed the python module using pip
${texeci 25600 speedtest --simple --server 3090 > .speeds 2>&1}
Complete file
# this file goes in ~
background no
use_xft yes
xftfont monospaceixelsize=11
xftalpha 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 0
border_margin 4
border_width 0
default_color cyan
default_shade_color black
default_outline_color white
alignment top_right
gap_x 380
gap_y 185
cpu_avg_samples 10
override_utf8_locale yes
minimum_size 150 120
maximum_width 120
update_interval 1.0
TEXT
#leet chars: ┤┤└└┴┴┐┐││┘┘┌┌├├┬┬┼┼┴┴── ││ ▽▼△▲▵▴▾▿
┌───────────────┐
│ SPEEDTEST.NET │
└───────────────┘
${texeci 25600 speedtest --simple --server 3090 > .speeds 2>&1}
${exec cat /home/cam/.speeds}
Conky will display "null" until the ~/.speeds file is created when the speedtest command completes.
Check in terminal to see if speedtest runs...
Okay this is what I did.Code:speedtest --simple --server 3090
Installed speedtest-cli using pip...
Got a list of servers ...Code:sudo pip install speedtest-cli
Don't like the use of the texeci command here.Code:speedtest --list > speedtest.list
You don't really want the speedtest command to run at specific intervals.
For the speedtest info to be of any use it needs to be run when nothing else is connecting to the net.
I wouldn't even have it in startups. I would have a script to toggle the conky on/off when I want to test.
eg this script will toggle any conky on/off.
Save as toggle-any-conky and make executable.
To run use...Code:#!/bin/bash ## click to start, click to stop ### exec line in .desktop file # /full/path/to/toggle-any-conky /full/path/to/conky-config ## Eg /home/glen/conky/toggle-any-conky /home/glen/conky/configs/comic-conkyrc if pgrep -f "conky -c $1"; then pkill -xf "conky -c $1" else conky -c $1 fieg for me to toggle conky_speed, the command I would use is...Code:/full/path/to/toggle-any-conky /full/path/to/conky-config
orCode:/home/glen/conky/toggle-any-conky /home/glen/conky/configs/conky_speed
create a bash alias in ~/.bash_aliases
egThen all you need to run is conkyspeed to toggle the conky on/off.Code:alias conkyspeed='/home/glen/conky/toggle-any-conky /home/glen/conky/configs/conky_speed'
I changed the conky_speed config to this.
It doesn't need to write to a ~/.speeds file and then cat that file.
Just output straight to conky.
Choose a server near you from the speedtest.list file created earlier in your home folder.Code:background no use_xft yes xftfont monospace:size=11 xftalpha 1 total_run_times 0 own_window yes own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes draw_borders no border_inner_margin 5 #margin between border and text border_outer_margin 0 #margin between border and window edge border_width 5 #border thickness draw_outline no draw_graph_borders yes stippled_borders 0 default_color cyan default_shade_color black default_outline_color white alignment top_right gap_x 380 gap_y 185 cpu_avg_samples 10 override_utf8_locale yes minimum_size 160 120 maximum_width 160 update_interval 86400 TEXT #leet chars: ┤┤└└┴┴┐┐││┘┘┌┌├├┬┬┼┼┴┴── ││ ▽▼△▲▵▴▾▿ ┌───────────────┐ │ SPEEDTEST.NET │ └───────────────┘ ${exec speedtest --simple --server 2627} ${exec notify-send -i network-transmit-receive "Speedtest Completed"}
The conky will take about a minute to show while the speedtest command runs.
It will send a notification when completed.
Last edited by CantankRus; April 2nd, 2015 at 08:15 AM.
Thanks it worked
I'm working on toggle-conky...
Bookmarks