Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
conky: Useful consepts for Debian, And Arch
#1
Let me start by saying
I am sure there are people here that are FAR more advanced than i am with conky. The target group is newbies, to novice. Though anyone can chime in. The idea is to help people learn a little, and maybe learn a little myself.

My main System Is Arch. I also have a Peppermint 10 on a secondary backup drive.
On both of them my Conky setup is nearly identical.

this is In Arch
[Image: Screenshot-2019-06-10-02-01-14.png]
The Red zero is AUR updates. This is the only visual difference.
although under the hood, they are a little different.
But only in one or two areas.

This is the conky in Peppermint 10
[Image: photo-2019-06-10-08-29-06.jpg]
The red zero is all available Updates. Unlike Arch, Debian only has one.
NET: Up (Down)  is the same in Both Arch and Debian conky.

Because Arch is a little bit easier for me, due to personal experience I will start with that

a small script is needed (The same script works in both Arch and Debian based systems)

Code:
#!/bin/bash

if ping -c 1 -W 2 $1 > /dev/null
    then
       echo "Up"
    else
       echo "Down"
fi

name it whatever-you-want.sh then
Code:
chmod +x what-ever-you-want.sh

Now that you have that, set it aside and go to the next step.

for Arch you will need "checkupdates" and "checkupdates-aur"
to install checkupdates

Code:
sudo pacman -Sy pacman-contrib

installing checkupdates-aur will vary somewhat depending on your AUR helper/manager. most will fuction the same as yay. 

Code:
yay -Sy checkupdates-aur

Replace yay with whatever your favorite AUR manager is.

Now,
this is my Arch-conky
Code:
#
background yes
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type nomal
own_window_argb_visual yes
own_window_argb_value 255
#own_window_colour 000000

own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 650 150
maximum_width 650
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

#default_shade_color 000000
#default_outline_color 828282
alignment top_right
gap_x 20
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
#override_utf8_locale no
#edf1f6
default_color edf1f6
color1 2da83b
color2 2da73b
color3 db303e #RED
color4 edf1f6 #WHITE  
color5 F2F40C #YELLOW
color6 79DDF7 #SKY-BLUE

TEXT
#time
${offset 20}${font Times:pixelsize=100}${if_match "pmfix${time %p}" == "pmfix"}${time %k:%M}${else}${time %l:%M}${endif}${font}${font}${voffset -45}${offset 10}${font Roboto-Light - U:pixelsize=35}${time %P}${font}


#date
${voffset 30}${offset 20}${color2}${font Droid:pixelsize=30}${time %A, }${time %d, %b}${font}
#
#
#swap
${voffset -120}${offset 330}${font Roboto-Light:pixelsize=20}${offset 9}${offset 9}${color2}SWAP ${color6}${swap}${color1}    ${color6}${swapperc}%${color2}
#
#
# RAM
${voffset 0}${offset 330}${font Roboto-Light:pixelsize=20}${offset 9}${offset 9}${color1}RAM ${color6}${offset 9}${mem}${offset 9}${color1}${offset 9}${color6}${memperc}%${offset 9}
#${offset 9}
#
#
# CPU
${voffset 3}${offset 350}${color1}CPU${offset 9}${color6}${cpu}%${font}
#
#
# check updates
${voffset 6}${offset 345}${color1}${font Roboto-Light:pixelsize=20} UPDATES: ${color6}${execpi 600 checkupdates | wc -l} / ${color3}${execpi 600 checkupdates-aur | wc -l}
#
#
# internet check, up or down
${voffset -60}${offset 470}${color1}${font Roboto-Light:pixelsize=20}NET:${color5}  ${execi 10 /home/$USER/path/to/script/up-down.sh google.com}
the path to up-down.sh(what-ever-you-want.sh) needs to be correct

as for color and things of that nature, you can play around with it, to set it to your liking.
Now for Debian/Ubuntu/mint/peppermint
that script will also be needed here so grab it.
we will also need another small script
Code:
#!/bin/bash

# debupdates.sh

# This script assumes you are in the sudo group and require no password for root access for these two commands.

sudo apt-get -qy update > /dev/null
NUMOFUPDATES=$(sudo aptitude search "~U" | wc -l)
echo $NUMOFUPDATES

whatyouwant.sh

Code:
chmod +x whatyouwant.sh
now this next part is a bit questionable, you could set visudo to do nopasswords across the board, but i strongly advise against that.
since these two commands that need to have root access don't actually change your system (other than repo info) it should be safe to set those two commands to nopassword

Code:
sudo EDITOR=nano visudo

Then at the botom, add this

Code:
yourusername ALL=(ALL) NOPASSWD: /usr/bin/apt-git -qy update*, /usr/bin/aptitude search*

don't forget to change yourusername to whatever it is
next install aptitude
Code:
sudo apt install aptitude

Then

Code:
#
background yes
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type nomal
own_window_argb_visual yes
own_window_argb_value 255
#own_window_colour 000000

own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 650 150
maximum_width 650
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

#default_shade_color 000000
#default_outline_color 828282
alignment top_right
gap_x 20
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
#override_utf8_locale no
#edf1f6
default_color edf1f6
color1 2da83b #GREEN
color2 D84242
color3 db303e #RED
color4 edf1f6 #WHITE  
color5 F2F40C #YELLOW
color6 79DDF7 #SKY-BLUE

TEXT
#time
${offset 20}${font Times:pixelsize=100}${if_match "pmfix${time %p}" == "pmfix"}${time %k:%M}${else}${time %l:%M}${endif}${font}${font}${voffset -45}${offset 10}${font Roboto-Light - U:pixelsize=35}${time %P}${font}


#date
${voffset 30}${offset 20}${color1}${font Droid:pixelsize=30}${time %A, }${time %d, %b}${font}
#
#
# SWAP
${voffset -120}${offset 330}${font Roboto-Light:pixelsize=20}${offset 9}${offset 9}${color1}SWAP ${color6}${swap}${color1}    ${color6}${swapperc}%${color2}
#
#
# RAM
${voffset 0}${offset 330}${font Roboto-Light:pixelsize=20}${offset 9}${offset 9}${color1}RAM ${color6}${offset 9}${mem}${offset 9}${color1}${offset 9}${color6}${memperc}%${offset 9}
#${offset 9}
#
#
# CPU
${voffset 3}${offset 350}${color1}CPU${offset 9}${color6}${cpu}%${font}
#
#
# check updates
${voffset 6}${offset 345}${color1}${font Roboto-Light:pixelsize=20} UPDATES: ${color1}${offset 25}UPDATES: ${color2}${execi 600 ~/bin/debupdates.sh}
#
#
# internet check, up or down
${voffset -60}${offset 470}${color1}${font Roboto-Light:pixelsize=20}NET:${color5}  ${execi 10 /home/elias/Git-Stuff/GitLab/my-scripts/png1.sh google.com}
And that should do it.

enjoy? leave a comment, vote.

kudos
A computer without Microsoft is like a piece of chocolate cake without ketchup and mustard.
-
It is okay to not be able to answer a question,
however it should be a crime to not be able to question an answer.

@ArrowLinux
Reply
#2
I have been playing around with this conky in Arch, and added a few things,
[Image: Eli-Arch-two-2.png]

Here is the updated conky

Code:
background yes

use_xft yes

xftfont Liberation Sans:size=9

xftalpha 1

update_interval 1.0

total_run_times 0

own_window yes

own_window_transparent yes

own_window_type nomal

own_window_argb_visual yes

own_window_argb_value 255

#own_window_colour 000000



own_window_hints undecorated,below,skip_taskbar,skip_pager

double_buffer yes

minimum_size 650 150

maximum_width 650

draw_shades no

draw_outline no

draw_borders no

draw_graph_borders no



#default_shade_color 000000

#default_outline_color 828282

alignment top_right

gap_x 20

gap_y 50

no_buffers yes

uppercase no

cpu_avg_samples 2

#override_utf8_locale no

#edf1f6

default_color edf1f6

#color1 9ACD32 # MINT-GREEN

color1 2da83b #GREEN

color2 55ff00 #LIGHT-GREEN

color3 db303e #RED

color4 edf1f6 #WHITE  

color5 F2F40C #YELLOW

color6 79DDF7 #LIGHT-SKY-BLUE

#color6 38CFFC #SKY-BLUE

color7 ffaa00 #ORANGE

color8 00ff00 #LIGHT-GREEN2

color9 ff6e70 #PASTEL-PINK

color0 ffaaff #LIGHT-PINK



# Blue--------- 0099CC

# Sky Blue----- 38CFFC

# Yellow ------ FFF64B

# Orange Peal-- FFC52C

# Purple------- 9933CC

# Orange------- FF8800

# Dark Orange-- FFA726

# Bright Orange FFA300

# Red---------- CC0000

# Firebrick-Red F1544B

# Grey--------- AAAAAA

# Dark Grey---- 666666

# White-------- DDDDDD

# Green-------- 1F7411

# Light Green-- 669900

# Mint Green--- 9ACD32 or YellowGreen



TEXT

#time

${voffset 0}${offset 20}\

${font Times:pixelsize=100}\

${if_match "pmfix${time %p}" == "pmfix"}\

${time %k:%M}${else}${time %l:%M}${endif}\

${font}${font}${voffset -45}${offset 10}\

${font Roboto-Light - U:pixelsize=35}${time %P}${font}





#date

${voffset 30}${offset 20}\

${color1}${font Droid:pixelsize=30}\

${time %A, }${time %d, %b}${font}

#

#

#swap

${voffset -110}${offset 330}\

${font Roboto-Light:pixelsize=20}\

${offset 9}${offset 9}${color1}SWAP ${color6}${swap}\

${offset 15}${color6}${swapperc}%${color1}

#

#

# RAM

${voffset 0}${offset 330}\

${font Roboto-Light:pixelsize=20}\

${offset 18}${color1}RAM ${color6}${offset 9}\

${mem}${offset 9}${color1}${offset 9}${color6}${memperc}%${offset 9}

#

#

# CPU

${voffset 3}${offset 348}${color1}CPU${offset 9}${color6}${cpu}%${font}

#

#

# check updates

${voffset 6}${offset 343}\

${color1}${font Roboto-Light:pixelsize=20}\

UPDATES: ${color5}${execpi 600 checkupdates | wc -l}${color1} / \

${color9}${execpi 600 checkupdates-aur | wc -l}

#

#

# internet check, up or down,,,, requires png.sh script

${voffset -60}${offset 470}\

${color1}${font Roboto-Light:pixelsize=20}\

NET:${color5}  \

${execi 10 /home/user-name/path/to/script/png.sh google.com}

#

# Battery Status

${voffset 100}${offset 348}\

${font Roboto-Light:pixelsize=18}\

${if_existing /sys/class/power_supply/BAT0/capacity}${color1}Battery:  \

$color3${if_match ${battery_percent BAT0}<=15}${color3}${blink ${battery BAT0}}\

${color7}${else}${if_match ${battery_percent BAT0}<=25}${color7}${battery BAT0}\

${else}${if_match ${battery_percent BAT0}>25}${color2}${battery BAT0}\

${endif}${endif}${endif}, ${battery_time BAT0}${color}${else}${color0} ${endif}

#

# IP Addresses

${voffset -80}${offset 348}\

${font Roboto-Light:pixelsize=20}\

${color1}Public IP: ${color7}${exec wget http://ipinfo.io/ip -qO -}

#

${voffset -0}${offset 348}${font Roboto-Light:pixelsize=20}\

${if_existing /proc/net/dev_snmp6/wlan0}${color1}\

Local  IP: ${color7}${addr wlan0}\

${else}\

${if_existing /proc/net/dev_snmp6/eth0}${color1}\

Local  IP: ${color7}${addr eth0}\

${else}\

${color3}NO NETWORK\

${endif}\

${endif}

#

## Divider Line

${voffset -85}${offset 20}${color2}\

_______________________________________________________________${color1}

#

## Network Traffic Speeds

${voffset 4}${offset 20}\

Network Traffic Speeds

${voffset 1}${offset 20}\

${font Roboto-Light:pixelsize=20}\

${if_existing /proc/net/dev_snmp6/wlan0}${color1}\

UP: ${color9}${upspeed wlan0}

${voffset -27}${offset 160}\

${color1}DN: ${color5}${downspeed wlan0}\

${else}\

${if_existing /proc/net/dev_snmp6/eth0}${color1}\

UP: ${color9}${upspeed eth0}

${voffset -27}${offset 160}\

${color1}DN: ${color5}${downspeed eth0}${color1}\

${else}\

${color1}

${endif}\

${endif}

#


Remember, this one is for Arch.
though I believe all the new code can just be added to the Ubuntu version. it should work ok. You may need to play around with the voffset and offset to get it placed correctly on your system but i like it as it is.
also, you will need to change "eth0" and "wlan0" to what ever they are
And " Battery: Status " only appears if you have one.
Actually, you may need to check and see if " /sys/class/power_supply/BAT0/capacity " exists. if not you will need to find its equivalent and change the path to that.

I hope this helps some one.

kudos
A computer without Microsoft is like a piece of chocolate cake without ketchup and mustard.
-
It is okay to not be able to answer a question,
however it should be a crime to not be able to question an answer.

@ArrowLinux
Reply
#3
I for one like Conky... I know some folks don't and that is ok too...  Wink
It reminds me of the old windows gadgets back in the Win 7 days...
I like to know what my system is doing at a glance of the screen. As a rule I don't work much off of the desktop so the right side of the screen needs something on it too... Big Grin Big Grin Big Grin 

I looked at your conky code and wow it is advanced coding for me. I did understand about 2/3's of it and some went that way...<----

Looks good for sure!

Mine is just some basic stuff that I have hacked together over the years and works on 99% of the OS's I have tried it on...  It has colors, bars, upload and download stats, hdd space, just your basic stuff in plain text, but I like it simple... Never got in the the lua, stuff to much for my half baked brain to process (286 cpu).... LOL

Anyway thanks for sharing!!!
**********************************************************
Taglines of the Day:
Today is the tomorrow you worried about yesterday.  Huh 

Everybody remember where we parked. - Kirk

To Boldly Go Where No BBS Has Gone Before. USS Stargazer BBS, Sheridan In.
Reply
#4
(06-16-2019, 08:31 PM)bescott9944 Wrote: I for one like Conky... I know some folks don't and that is ok too...  ;)

I do as well, but I think it is a shame that most people insist on running them transparent. A solid background colour plus a border looks better in my opinion and does not require a wallpaper with a dark spot in the correct corner, which was always annoying to find :D
My website - My git repos

"Things are only impossible until they’re not." - Captain Jean-Luc Picard
Reply
#5
I've been using conky for a while and I have a simple script that I use on all my Linux Mint systems. I created a template for my conky script and have a bash script that fillesin the device names for the laptop battery, and Ethernet (wired) and WiFi network interfaces if they exist and are connected.

On my systems I have the conkyrc template in the ~/Templates directory. In the template, <BAT>, <EN> and <WL> are placeholders for the battery, Ethernet, and Wireless device names, respectively.

The conkyrc template which I placed in ~/Templates:

Code:
conky.config = {
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = true,
    own_window_hints = 'below',
    own_window_colour = '660033',
    own_window_title = 'NET',
    double_buffer = true,
    gap_x = 10,
    gap_y = 10,
    alignment = 'top_right',
    use_xft = true,
    font = 'Terminus:size=10',
    xftalpha = 1,
    override_utf8_locale = true,
    draw_shades = false,
    draw_outline = false,
    default_outline_color = 'black',
    uppercase = false,
    default_color = 'ECEAE4',
    color1 = 'FFFF00',
    color2 = '01C400',
    draw_borders = false,
    stippled_borders = 0,
    border_inner_margin = 5,
    border_outer_margin = 0,
    border_width = 0,
    draw_graph_borders = false,
    background = false,
    use_spacer = 'right',
    text_buffer_size = 256,
    no_buffers = true,
    short_units = true,
    pad_percents = 2,
    update_interval = 1.5
}

conky.text = [[
${font AvantGardeLTMedium:bold:size=10}${color Tan1}System ${color slate grey}${hr 2}${font}
${color1}Computer name      ${alignr}${color}${nodename}
${color1}Kernel version     ${alignr}${color}${kernel}-${machine}
${color1}Distribution: ${alignr}${color}${execi 99999 lsb_release --description | awk '{ print $2" "$3" "$4" "$5 }'}
${color1}CPU frequency      ${alignr}${color}${freq_g}GHz
${color1}Load (average)     ${alignr}${color}${loadavg 1}
${color1}CPU temperature    ${alignr}${color}${acpitemp} degrees Celsius
${color1}Uptime:${alignr}${color}${uptime}

${if_existing /sys/class/power_supply/<BAT>/present}
${font AvantGardeLTMedium:bold:size=10}${color Tan1}Laptop battery charge ${color slate grey}${hr 2}${font}
${color1}Battery charge     ${alignr}${color}${battery_short <BAT>}
${endif}

${font AvantGardeLTMedium:bold:size=10}${color Tan1}Processors ${color slate grey}${hr 2}${font}
${color1}Kernel 1     ${color}${cpu cpu1}%  ${cpubar cpu1}

${font AvantGardeLTMedium:bold:size=10}${color Tan1}Memory (RAM) ${color slate grey}${hr 2}${font}
${color1}Memory free / total ${alignr}${color}${memeasyfree} / ${memmax}
${color1}Now in use   ${color}${memperc}%   ${membar}
${color1}Virtual memory (swap)  ${alignc}${color}${swap} / ${swapmax} ${color}${alignr}${swapperc} %

${font AvantGardeLTMedium:bold:size=10}${color Tan1}File system ${color slate grey}${hr 2}${font}
${color1}Root or /       ${alignc}${color}${fs_used /} / ${fs_size /} ${color}${alignr}${fs_free_perc /} %
${color}${fs_bar 5,300 /}
${color1}Home or /home   ${alignc}${color}${fs_used /home} / ${fs_size /home} ${color}${alignr}${fs_free_perc /home} %
${color}${fs_bar 5,300 /home}

${if_existing /proc/net/route <WL>}
${font AvantGardeLTMedium:bold:size=10}${color Tan1}Wireless network ${color slate grey}${hr 2}${font}
${color1}Wireless access point ${alignr}${color}${wireless_essid <WL>}
${color1}Signal strength     ${alignr}${color}${wireless_link_qual_perc <WL>}   ${wireless_link_bar 10,100 <WL>}
${color1}Private IP:${alignr}${color}${addr WL}
${color1}Data traffic down / up   ${alignr}${color}${totaldown <WL>}  ${color1}/  ${color}${totalup <WL>}${endif}
${if_existing /proc/net/route <EN>}
${font AvantGardeLTMedium:bold:size=10}${color Tan1}Wired network ${color slate grey}${hr 2}${font}
${color1}Private IP:${alignr}${color}${addr <EN>}
${color1}Data traffic down / up   ${alignr}${color}${totaldown <EN>}  ${color1}/  ${color}${totalup <EN>}${endif}
${color1}Default Gateway:${alignr}${color}${gw_ip}
${color1}Public IP:${alignr}${color}${execi 3600 wget -qO- http://ipv4.icanhazip.com}
]]

The bash script that creates the .conkyrc from the template:

Code:
#!/bin/bash
#####################################################################
# Script Name  : mk-conkyrc
# Description  : Configure .conkyrc from a template file
# Dependencies : awk, grep, nmcli, sed, upower
# Arguments    : None
# Comment      : copies .conkyrc to archive file appended by hostname
#####################################################################

# Variables

hname=$HOSTNAME
user=$USER

ename=$(nmcli dev | awk '/ethernet/ {print $1}')
wname=$(nmcli dev | awk '/wifi/ {print $1}')
bname=$(upower -i `upower -e | grep 'BAT'` | awk '/native-path/ {print $2}')

# Set defaut Battery device name

[ -z "$bname" ] && bname="BAT0"

# Set default Network device names

# wired
[ -z "$ename" ] && ename="eno1"
# Wireless
[ -z "$wname" ] && wname="wlo1"

# Create ~/.conkyrc

sed -e "s/<BAT>/$bname/g" \
      -e "s/<EN>/$ename/g" \
      -e "s/<WL>/$wname/g" "/home/$user/Templates/conkyrc" > "/home/$user/.conkyrc"

# Copy .conkyrc to file with hostname for backup purposes

cp "/home/$user/.conkyrc" "/home/$user/conkyrc-$hname"

exit
Reply
#6
I don't disagree with leon.p
Actually, the background was grey until I realized that both my desktops were dark. Then I changed them to transparent. I have no problem with a solid background, when it fits.

rickomig's code is great! That is how it should look. Mine works, but it looks like someone pooped on a page. Anyone who actually does code knows what I'm talking about. Presentation does mater, great code man. Your template kinda has a C++ feel to it.

bescott9944, I agree. Though it wasn't always that way. There was a time that I thought conky was stupid. Until my WiFi router fried one day. Then I realized maybe I was wrong. Conky is very useful, if it is customized to your needs. And if the code is advanced for you, then it is the perfect tool to learn from. This code actually follows the old conky format. What can I say, I am a creature of habit. By the way, I learned to code by dissecting and reverse engineering other peoples code. Your on the right path.

kudos
A computer without Microsoft is like a piece of chocolate cake without ketchup and mustard.
-
It is okay to not be able to answer a question,
however it should be a crime to not be able to question an answer.

@ArrowLinux
Reply
#7
Hello...

Quote:I don't disagree with leon.p
Actually, the background was grey until I realized that both my desktops were dark. Then I changed them to transparent. I have no problem with a solid background, when it fits.
I agree that sometimes you can do what leon.p says and not at the same time. What I mean for me, it depends on the wallpaper that I choose, I tend not to change them much, if I do I edit the Conky's to suite the wallpaper. 
Hmmm, Borders leon.p? That is a good Idea!

Quote:Yes rickomig's code is great!


I agree rickomig, that is some cool (do people still say that?)stuff... I will have to take a good look at it in between the "mystat" script that I am working on in another thread... :-)

Quote:Mine works, but it looks like someone pooped on a page. Anyone who actually does code knows what I'm talking about.
That is just to funny! I truly know what you mean...
My stuff is a major hack job but they work...

Quote:Conky is very useful, if it is customized to your needs. And if the code is advanced for you, then it is the perfect tool to learn from. This code actually follows the old conky format. What can I say, I am a creature of habit. By the way, I learned to code by dissecting and reverse engineering other peoples code. Your on the right path.
Yes it is useful and fun to play with... 
Yep that is how I have learned to make it work. I see something I l like or a part of it and I grab it and see if I can get it two fit in...  I think mine is the old code too...

Right or wrong I follow the path... LOL

I will share the "top right" conky "defiant-50.1" just a name I picked...lol
It is a big pile of horse poop but it works and took 5 years to hack together...
Sorry I did not have time to paint it or build it to scale, excuse the dent's... 

Code:
#####################################################################
#
# Conky Name  : defiant-50.1 v.1000000000000 and counting!
# Description  : Displays System and IP Network information
#
####################################################################
#
# This CONKY is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
####################################################################
#
# Hacked together by Bescott9944 for most systems and OS's.
# Some stuff might have to be changed to work with your OS...
# This conky is a bunch of pieses that I have tacked together
# to get the information that I want...
# USE AT YOU OWN RISK!!!    
#
#
# By Jesse_Avalos , See me on Eye Candy Linux
background yes
use_xft yes
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=7.5
# xftfont Roboto:size=10
xftalpha 1.0
update_interval 1
total_run_times 0
own_window yes
own_window_type dock
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 5
# border_width 1
default_color 000000
default_shade_color 000000
default_outline_color 000000
# minimum_size 800 800
# maximum_width 800
gap_x 25
gap_y 35
alignment top_right
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
short_units yes
text_buffer_size 2048
use_spacer none
override_utf8_locale yes

# Text settings #
# use_xft yes
# xftalpha 0
# xftfont TheNautiGal:bold:size=10
# override_utf8_locale yes
# lua_load time.lua

# Color scheme #
default_color white
# color1 black
# color2 E8E1E6
# color3 EDD077

own_window_argb_value 0
own_window_argb_visual yes
own_window_colour 000000
minimum_size 0 0
TEXT
${color yellow}System ${hr 2}$color
${color white}$nodename $sysname Ver ${color Green}$machine Linux
${color white}Kernel Version: ${color Green}$kernel
#
# Note: The next line is for Linux Solus/Mint OS. You will have to change the file path for the "cat" command to read and display the
# os-release file on your system to show the Linux Version Name. Ie "Linuc Mint 18.3"
# Mint places it file is in the /usr/lib and others OS's are in the /etc, just do a search for the "os-release" file name
# and chance the path below to reflect the path your os-release file...
#
${color white}On Linux:${color green}${execi 1000 cat /etc/os-release | grep 'PRETTY_NAME' | sed -e 's/PRETTY_NAME.//'}
# ${color White}Linux Ver ${color Green}$machine Linux
${color white}System Uptime: ${color green}$uptime
${color white}${time %A %B %e, %G} ${color 00ff00} ${time %I:%M:%S}${time %p} ${time %Z}
# ${color light blue}      ${scroll 20 $nodename - $sysname $kernel on $machine |}
#
${color green}${hr 2}$color
${color yellow}Cpu ${hr 2}$color
#
# Note: The next line deals with displaying the CPU and Cores. And wasted screen space............
# To keep from having 2-8 Core displayed on the Conky, you will have to copy the information from the "cpuinfo" file
# on your system (/proc/cpuinof on Mint and most other OS's) and make a "cpuinfo" file
# in your ~/.conly/system-folder-name. This file must contain the first Cores (0) information only copied from the systems "cpuinfo"
# file, just the first Core ONLY!
# Then place the copied info into your "cpuinfo" file that you created in your ~/.conky/system-folder-name folder, that way the
# the CPU Core will be displayed on one line and not all 2-8 lines of core's as in the systems "cpuinfo" file. If you want to see all 0-8
# core's displayed just use the "cpuinfo" located in /proc/cpuinfo, it will list them all.... ):-D
#
${color FF8700}${execi 1000 cat ~/.conky/Defiant/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}
#
# CPU useage and bar graph for all the cores
# Added to reflect what the cores are doing. should be univeral...
#
${color green}CPU Speed: ${color white}${freq}Ghz
${color white}CPU Usage:$color $cpu% ${color #cc2222} ${alignr}${cpubar 6,200}
${color white}Core 1:$color ${cpu cpu1} ${color #cc2222} ${alignr}${cpubar cpu1 6,220}
${color white}Core 2:$color ${cpu cpu2} ${color #cc2222} ${alignr}${cpubar cpu2 6,220}
${color white}Core 3:$color ${cpu cpu3} ${color #cc2222} ${alignr}${cpubar cpu3 6,220}
${color white}Core 4:$color ${cpu cpu4} ${color #cc2222} ${alignr}${cpubar cpu4 6,220}
${color white}Bar: ${color red}${alignr}${cpugraph 25,280 0000ff 00ff00}
#
${color green}${hr 2}$color
${color yellow}Memory ${hr 2}$color
${color white}Ram:${color white} $mem/$memmax - $memperc% ${alignr}${color FF6D00}${membar 5,110}
${color white}Swap:${color white} $swap/$swapmax - $swapperc% ${alignr}${color 00d8ff}${swapbar 5,110}
# $color$stippled_hr
#
${color yellow}Top Processes ${hr 2}$color
${color white}NAME             PID       CPU%      MEM%
${color 00BEFF}${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
${color white}${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
${color eeee00}${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
${color 00ee00}${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
${top name 5} ${top pid 5}   ${top cpu 5}    ${top mem 5}
${top name 6} ${top pid 6}   ${top cpu 6}    ${top mem 6}
#
${color yellow}MEM Usage:${hr 2}$color
${color ff4500} ${top_mem name 1} ${top_mem cpu 1} ${top_mem mem 1} ${top_mem pid 1}
${color eeee00} ${top_mem name 2} ${top_mem cpu 2} ${top_mem mem 2} ${top_mem pid 2}
${color 00ee00} ${top_mem name 3} ${top_mem cpu 3} ${top_mem mem 3} ${top_mem pid 3}
${color lightgrey} ${top_mem name 4} ${top_mem cpu 4} ${top_mem mem 4} ${top_mem pid 4}
${color lightgrey} ${top_mem name 5} ${top_mem cpu 5} ${top_mem mem 5} ${top_mem pid 5}
${color lightgrey} ${top_mem name 6} ${top_mem cpu 6} ${top_mem mem 6} ${top_mem pid 6}
#
${color green}${hr 2}$color
${color yellow}Hard Disk I/O ${hr 2}$color
${color white}I/O:${color white} ${color green}${diskio} 
${color white}$diskiograph 7,275 ffba00 00ff001
#
# ${color FFFFFF}${diskiograph FF00AB FFE200}
# ${color white}HDD I/O:$color $diskio
# ${color red}$diskiograph ffba00 00ff00
#
${color yellow}Disk Space ${hr 2}$color
#
${color white}Bruce-/ ${color white}${fs_used /home/bruce}/${fs_size /home/bruce}${alignr}${color 00d8ff}${fs_bar 5,120 /home/bruce}
${color white}VM-Data ${color white}${fs_used /vm-data}/${fs_size /vm-data}${alignr}${color 00d8ff}${fs_bar 5,120 /vm-data}
#
# ${color white}/Vm-Data ${color white}${fs_used /vm-data}/${fs_size /vm-data}${alignr}${color 00d8ff}${fs_bar 5,120 /vm-data}
# ${color white} usr ${color white}${fs_used /usr}/${fs_size /usr}${alignr}${color white}${fs_bar 5,120 /usr}
# ${color white}/Bruce ${color white}${fs_used /home/bruce}/${fs_size /home/bruce}${alignr}${color 00d8ff}${fs_bar 5,170 /home/bruce}
# ${color white}Swap-File ${color white}${fs_used /dev/sda1}/${fs_size /dev/sda1}${alignr}${color 00d8ff}${fs_bar 5,120 /dev/sda1}
# ${hr 2}$color
# ${color yellow}${hr 2}$color
${color green}${hr 2}$color

I have one for the Network and Open Ports but they are a seperate...
Like I sad it is a hack but it works and I commented out stuff that I don't understand.. But Hay! It works... Watch you back it is HEAVY....  Big Grin

Later!
**********************************************************
Taglines of the Day:
Today is the tomorrow you worried about yesterday.  Huh 

Everybody remember where we parked. - Kirk

To Boldly Go Where No BBS Has Gone Before. USS Stargazer BBS, Sheridan In.
Reply
#8
(06-17-2019, 05:03 PM)bescott9944 Wrote: I agree that sometimes you can do what leon.p says and not at the same time. What I mean for me, it depends on the wallpaper that I choose, I tend not to change them much, if I do I edit the Conky's to suite the wallpaper. 
Yeah, I change my wallpaper about every 6 months, if that. And I almost always choose dark wallpapers because I do most of my work at night. It's easier on the eyes. And I also update the conky to fit. It just takes a minute to do.

(06-17-2019, 05:03 PM)bescott9944 Wrote: Right or wrong I follow the path... LOL

That's just funny to me. For so many years I didn't even know what path I was on, I was just happy to be on one. Now I'm pretty sure that if its with Linux, it is the right one.... which ever one that is. LOL
A computer without Microsoft is like a piece of chocolate cake without ketchup and mustard.
-
It is okay to not be able to answer a question,
however it should be a crime to not be able to question an answer.

@ArrowLinux
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)