You are not logged in.

#1176 2015-02-04 12:08:44

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

Re: conky configs and screenshots!

easysid wrote:

Saw these clocks for Android on the playstore, seemed a good thing to do.

http://i.imgur.com/abmRdzts.png


...

Superb!


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#1177 2015-02-04 12:54:11

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: conky configs and screenshots!

OdinEidolon wrote:
easysid wrote:

Saw these clocks for Android on the playstore, seemed a good thing to do.

http://i.imgur.com/abmRdzts.png


...

Superb!

Thanks smile

Offline

#1178 2015-02-04 14:28:57

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: conky configs and screenshots!

easysid wrote:

Saw these clocks for Android on the playstore, seemed a good thing to do.

http://i.imgur.com/abmRdzts.png

Where is that like button...


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#1179 2015-02-04 15:13:51

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: conky configs and screenshots!

Still a work in progress, so not pushed to git yet.

UstXDOUs.png

Offline

#1180 2015-02-04 18:57:16

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 391

Re: conky configs and screenshots!

KDE is removed, just playing with conky and openbox:

openboxconky.jpg

I do not have time for now to play with lua scripts.... smile


I do not speak English, but I understand...

Offline

#1181 2015-02-07 08:43:15

rghamilton3
Member
Registered: 2015-02-06
Posts: 2

Re: conky configs and screenshots!

Thanks to spudrucket for point out this original by n00by4ever HERE. I modified to fit my setup and I couldn't be happier.

bBvixIX.png

Offline

#1182 2015-02-15 03:55:51

darksyntax
Member
From: 10.242.166.156
Registered: 2015-02-15
Posts: 20

Re: conky configs and screenshots!

lowph wrote:

http://www.lotje.com/files/screenshots/ … 9_arch.jpg
Still a bit bit WIP but I'm quite happy with it. Now to figure out how to auto start it in XFCE as the wiki way doesn't work for me.

.conkyrc

#-- Process --
background              no
double_buffer           yes
update_interval         2
cpu_avg_samples         5
net_avg_samples         5
no_buffers              yes
#-- Window base --
own_window              no
own_window_colour       393939
own_window_type         override
own_window_transparent  yes
#-- Window looks --
alignment               top_left
gap_x                   20
gap_y                   20
minimum_size            250 5
border_width            0
draw_shades             no
draw_outline            no
draw_borders            no
draw_graph_borders      yes
stippled_borders        0
default_color           white
default_outline_color   white
border_inner_margin     5
border_outer_margin     5
border_width            5
#default_shade_color     black
#-- Font --
use_xft                 yes
xftalpha                1
xftfont                 Droid Sans:size=8

# stuff after 'TEXT' will be formatted on screen
TEXT
#${font OpenLogos:size=190}A${font}
# SYSTEM
${goto 25}${voffset 5}${font Droid Sans Bold:size=8}SYSTEM${font} ${hr 1}
${goto 90}Hostname:${alignr}$nodename
${goto 90}Kernel:${alignr}$kernel ($machine)
#${goto 90}User:${alignr}${uid_name 1000}



# LOAD
${goto 25}${font Droid Sans Bold:size=8}LOAD${font} ${hr 1}
${goto 90}${cpugraph 38,172 fef7b2 e18522 -t}
${goto 30}${voffset 5}Core1${goto 60}: ${hwmon 1 temp 2}°C @ ${freq_g 1}GHz ${cpu cpu1}% ${alignr}${cpubar cpu1 6,80}
${goto 30}Core2${goto 60}: ${hwmon 1 temp 3}°C @ ${freq_g 2}GHz ${cpu cpu2}% ${alignr}${cpubar cpu2 6,80}
${goto 30}Core3${goto 60}: ${hwmon 1 temp 4}°C @ ${freq_g 3}GHz ${cpu cpu3}% ${alignr}${cpubar cpu3 6,80}
${goto 30}Core4${goto 60}: ${hwmon 1 temp 5}°C @ ${freq_g 4}GHz ${cpu cpu4}% ${alignr}${cpubar cpu4 6,80}
${goto 30}RAM${goto 60}: $memmax $memperc% ${alignr}${membar 6,80}
${goto 30}Swap${goto 60}: $swapmax $swapperc% ${alignr}${swapbar 6,80}
${goto 30}HDD${goto 60}: $hddtemp°C${goto 120}M/B: ${hwmon 2 temp 3}°C${goto 200}GPU:${alignr}${hwmon 0 temp 1}°C
${goto 30}CPU${goto 60}: ${hwmon 2 fan 1} rpm${goto 120}M/B: ${hwmon 2 fan 3} rpm${goto 200}GPU:${alignr}${hwmon 2 fan 2} rpm

# DISK
${goto 25}${font Droid Sans Bold:size=8}DISK${font} ${hr 1}
${goto 90}${diskiograph 38,172 fef7b2 e18522}
${goto 30}${voffset 5}/${goto 82}: ${fs_size /}   ${fs_used_perc /} % ${alignr}${fs_bar 6,80 /}
${goto 30}/home${goto 82}: ${fs_size /home}   ${fs_used_perc /home} % ${alignr}${fs_bar 6,80 /home}
${goto 30}/mnt/data${goto 82}: ${fs_size /mnt/data}   ${fs_used_perc /mnt/data} % ${alignr}${fs_bar 6,80 /mnt/data}
${goto 30}/dev/sda${goto 100}Read: ${diskio_read /dev/sda}${goto 200}Write: ${diskio_write /dev/sda}
${goto 30}/dev/sdb${goto 100}Read: ${diskio_read /dev/sdb}${goto 200}Write: ${diskio_write /dev/sdb}

# SERVER
${goto 25}${font Droid Sans Bold:size=8}SERVER${font} ${hr 1}
#${offset 60}${texeci 10 ~/.conky/server.sh}
${goto 30}${voffset 52}storage${goto 69}: ${fs_size /mnt/wodan/storage} ${fs_used_perc /mnt/wodan/storage}% ${alignr}${fs_bar 6,80 /mnt/wodan/storage}
${goto 30}data${goto 69}: ${fs_size /mnt/wodan/data} ${fs_used_perc /mnt/wodan/data}%${alignr}${fs_bar 6,80 /mnt/wodan/data}
${goto 30}scratch${goto 69}: ${fs_size /mnt/scratch} ${fs_used_perc /mnt/scratch}%${alignr}${fs_bar 6,80 /mnt/scratch}

# NETWORK
${goto 25}${font Droid Sans Bold:size=8}NETWORK${font} ${hr 1}
${goto 85}${downspeedgraph bond0 24,88 fef7b2 e18522}${goto 185}${upspeedgraph bond0 24,88 fef7b2 e18522}
${goto 85}Down: ${downspeed bond0}${goto 185}Up: ${upspeed bond0}
#
#-- background & images --
${image ~/.conky/background.png -p 0,0 -s 282x605}${image ~/.conky/system48.png -p 5,20}${image ~/.conky/load48.png -p 5,98}${image ~/.conky/disk48.png -p 5,284}${image ~/.conky/server48.png -p 5,432}${image ~/.conky/network48.png -p 5,550}

On XFCE to get it to autostart the way I assume is correct. I would go to "sessions and autostart" inside the XFCE settings menu.

Add the command "conky -d -c ~/path/to/.conkyrc".

I've always had good luck with that. Good luck if you haven't got it autostarting yet big_smile

Offline

#1183 2015-02-15 17:44:32

ThePierrezou
Member
Registered: 2015-02-10
Posts: 5

Re: conky configs and screenshots!

rghamilton3 wrote:

Thanks to spudrucket for point out this original by n00by4ever HERE. I modified to fit my setup and I couldn't be happier.

http://i.imgur.com/bBvixIX.png

Can you upload the conky script ? please smile

Offline

#1184 2015-02-15 19:38:41

spyrou
Member
Registered: 2015-02-15
Posts: 3

Re: conky configs and screenshots!

Dear all ,
This is my first contribution in archlinux. My first conky setup.
Please tell me what you think about it.
Cheers.

FreeClox Date and Time - The French Freebox clock conky :
FreeClox Date and Time - The FR Freebox clock conky

The conky is :

# FreeClox Date and Time - The FR Freebox clock conky
# Author : Spyrou
# History Release :
# v1.0 - First Release
# this file is FREE to redistribute
# Font included :
## True Type Font: Square Sans Serif 7 version 1.0
## See Readme.txt included for details. The font Square Sans Serif 7 is freeware. You may use it for commercial purposes (see 'NOTES' section).
## AUTHOR = Sizenko Alexander - November 20 2014
# Wallpaper included : genuine abstract
## http://www.hdwallpapers.in/genuine_abstract-wallpapers.html
#Tags : Customization Linux conky


# Conky settings
# set to yes if you want Conky to be forked in the background
background no
update_interval 1.0

override_utf8_locale yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Subtract file system buffers from used memory?
no_buffers yes
out_to_console no
out_to_stderr no

text_buffer_size 2048

# Window specifications
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_class Conky
own_window_type desktop # allow to be part of the desktop background : Do not minimize on Show Desktop + icons over conky
own_window_transparent yes
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

# Text alignment, other possible values are commented
alignment top_right
#alignment top_left
#alignment bottom_left
#alignment bottom_right

minimum_size 450 10
maximum_width 450

# Gap between borders of screen and text
gap_x 20
gap_y 360


# Graphics settings
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
draw_graph_borders no
# border_width 0

# Text settings
use_xft yes
xftalpha 0
text_buffer_size 2048
xftfont Square Sans Serif 7,:size=20
# set to yes if you want all text to be in uppercase
uppercase no

# Default colors and also border colors
default_color 800058 # Hexa, or name, ex : white
# default_shade_color white
# default_outline_color white
color1     a8028e # Purple
# color1     FF7D00 # Orange
# color1     AC0000 # Red
color2     969696
color3     E6E6E6

TEXT
${alignr 200}${voffset 50}${font Square Sans Serif 7,:size=20}${color2}${time %A}${voffset -20}
${alignr 200}${voffset 20}${font Square Sans Serif 7,:size=20}${color3}${time %b} ${time %e}${voffset -20}
${alignr 200}${voffset 30}${font Square Sans Serif 7,:size=20}${color1}${time %S}${voffset -20}
${offset 260}${voffset -130}${font Square Sans Serif 7,:size=80}${color1}${time %H}${voffset -20}
${offset 260}${voffset -22}${font Square Sans Serif 7,:size=80}${color1}${time %M}${voffset -170}

The full source is downloadable here

Thank you
Spyrou

Offline

#1185 2015-04-16 22:09:21

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: conky configs and screenshots!

My current conky is a one line info bar thing at the bottom of my screen.

Ngbf153m.png

.conkyrc

alignment bottom_left
background no
gap_x 2
gap_y 2
minimum_size 1024 2
maximum_width 1024

update_interval 1
total_run_times 0
double_buffer yes

cpu_avg_samples 2
net_avg_samples 2

use_xft yes
xftfont HanelGotD:size=8
xftalpha 0.5
override_utf8_locale yes

own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints below,undecorated,sticky,skip_taskbar,skip_pager
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

default_color 86b5ea

TEXT
${alignc}${font Dejavu Sans:normal:size=8}${color #cccccc}Uptime:${color} $uptime ${color #cccccc}CPU:${color} ${cpu cpu0}% ${color #cccccc}CPU Temp:${color} ${execi 60 acpi -t | cut -c 16-17 | awk '{print $1}{exit}'}°C ${color #cccccc}Mem:${color} ${memperc}% ${color #cccccc}Swap:${color} $swapperc% ${color #cccccc}HDD Temp:${color} ${execi 60 sudo hddtemp /dev/sda | cut -c 24-27}C ${color #cccccc}Storage:${color} ${fs_used /}/ ${fs_size /} ${color #cccccc}Updates:${color} ${execpi 12000 checkupdates | wc -l} ${color #cccccc}Weather:${color} ${execpi 3600 weather.py} ${color #cccccc}Network:${color} ⬇${downspeed wlp2s0}⬆${upspeed wlp2s0}

And weather.py

#!/usr/bin/env python3

import urllib.request
import json

weather = urllib.request.urlopen('http://api.openweathermap.org/data/2.5/weather?id=4500458&units=imperial')
data = weather.read()
response = json.loads(data.decode('utf8'))

conditions = response["weather"][0]["main"]
tempurature = float(response['main']['temp'])

print (round(tempurature),"°F ",conditions)

Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#1186 2015-04-18 11:25:18

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: conky configs and screenshots!

rghamilton3 wrote:

Thanks to spudrucket for point out this original by n00by4ever HERE. I modified to fit my setup and I couldn't be happier.

http://i.imgur.com/bBvixIX.png

I like this very much and because of that i would like to ask for one thing - this conky settings is not at the bootom of the screen. Could you tell me where is and which is the line that respond for it? This is my screenshot:
ExLXvSps.jpg

I would like to place it above small KDE taskbar with my icon apps. Could you help me? I don't want to mess this conky and in fact i learned that running your conky setup in fact does that not one but few conky are being launched. Don't want to break something because it's nice and i changed from my own conky big_smile What makes me feel stunned was how the conky parts are being launched. Each one is started with minimal delay and it feel awesome big_smile

I think that it is this

#------------------------- Location
minimum_size 313 165
maximum_width 313
gap_x 1252
gap_y 150

But is there a way to find what to type her to be at the bottom or lower?

Last edited by firekage (2015-04-18 11:38:13)

Offline

#1187 2015-04-18 16:47:20

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: conky configs and screenshots!

Nice looking Conky firekage  smile  I really like your Arch background.  Did you design that?

Offline

#1188 2015-04-18 16:51:44

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: conky configs and screenshots!

You mean wallpaper or conky? Wallpaper was posted somewhere on forum and conky config is mix of two, right now:
oto1kV8s.jpg

-the bottom is from rghamilton3 conky config
https://bbs.archlinux.org/viewtopic.php … 1#p1500571
orginal is there and it's from n00by4ever
http://n00by4ever.deviantart.com/art/co … -401254455

-right side is conky from brok9n and it is named brok9n_conky but i changed something to my needs.

Last edited by firekage (2015-04-18 16:53:45)

Offline

#1189 2015-04-18 17:01:41

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: conky configs and screenshots!

Actually referring to your wallpaper which is most impressive as is the Conky.  I have used Conky for years but have not messed with it in so long, most of what I remember in how to configure it has slipped.  Makes me want to get back into it as it was always most fun.  smile

This is my current setup with 4 conky's running.

http://i.imgur.com/uTpKxxQ.png

Offline

#1190 2015-05-01 12:21:06

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: conky configs and screenshots!

I would like to ask for small hint. I modified my conky because it did not show any hddtemp. Now it shows. Default hddtemp shows only /dev/sda hddtemp. I did some changes in order to show all my hdd temps. It shows but now it looks like this;

NPeIlaps.jpg

Could somebody tell me what to change here:

#------------------------- Windows Settings
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
own_window_colour black
own_window_class Conky
own_window_title Simple Default Conky
own_window_argb_visual yes
own_window_argb_value 0
double_buffer yes

#------------------------- Location
minimum_size 313 100
maximum_width 313
gap_x 939
gap_y 150

#------------------------- FONT
use_xft yes
xftfont Monofur:bold:size=8
xftalpha 0.8 	# Alpha of Xft font. Must be a value at or between 1 and 0 ###
override_utf8_locale yes
draw_shades yes
default_shade_color black
draw_outline no
uppercase no

#------------------------- Colors
default_color DCDCDC 		#220 220 220	Gainsboro

#------------------------- BORDERS
draw_borders no
draw_outline no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
border_width 0

draw_graph_borders no

#------------------------- OTHER
text_buffer_size 256
use_spacer none
background no
use_spacer none
update_interval 1

#------------------------- LUA
lua_load ~/.conkyconfig/lua/hdd_graph.lua
lua_draw_hook_pre main_graph
lua_load ~/.conkyconfig/lua/files_ring_clock.lua
lua_draw_hook_post main

TEXT
${voffset 25}${GOTO 50}${font}File System
${GOTO 200}${font}Hdd: ${font Monofur:size=8}${fs_used /}
${GOTO 200}${font}Temp: ${font Monofur:size=8}${hddtemp /dev/sda} °C
${GOTO 200}${font}Temp: ${font Monofur:size=8}${hddtemp /dev/sdb} °C
${GOTO 200}${font}Temp: ${font Monofur:size=8}${hddtemp /dev/sdc} °C
${GOTO 200}${font}Temp: ${font Monofur:size=8}${hddtemp /dev/sde} °C
${GOTO 200}${font}Temp: ${font Monofur:size=8}${hddtemp /dev/sdf} °C
${GOTO 200}${font}Temp: ${font Monofur:size=8}${hddtemp /dev/sdg} °C
${GOTO 200}${font}Temp: ${font Monofur:size=8}${hddtemp /dev/sdh} °C
${GOTO 200}${font}Temp: ${font Monofur:size=8}${hddtemp /dev/sdi} °C
${voffset 75}
${GOTO 50}${font}Read: ${font Monofur:size=8}${diskio_read}${GOTO 200}${font}Write: ${font Monofur:size=8}${diskio_write}
${image ~/.conkyconfig/img/files.png -p 0,15 -s 45x45}

In order to have all my disk temps fit this part of conky? With one hdd it is in place - earlier see my screenshot. But with all of them it won't fit. I'tried to change by my own but can't do it.

Last edited by firekage (2015-05-01 12:21:36)

Offline

#1191 2015-05-03 14:21:19

Paramvir
Member
Registered: 2009-08-06
Posts: 135
Website

Re: conky configs and screenshots!

firekage wrote:

I would like to ask for small hint. I modified my conky because it did not show any hddtemp. Now it shows. Default hddtemp shows only /dev/sda hddtemp. I did some changes in order to show all my hdd temps. It shows but now it looks like this;

Suggest play with the voffset value - since the hddtemp values are numerous - they will push the group upwards - so change the voffset 25 to say voffset -25 or the later voffset to minus value.

Remember it all works in a serial order - if you have given a rise with voffset 25 later you may need to use voffset -25 -  I have skipped adding the curly braces...

see how ti goes smile

cheers

Offline

#1192 2015-05-03 23:33:42

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: conky configs and screenshots!

I did not change anything regardins voffset. I had to configure hddtemp and something more and now all my disks are readed correctly...but now it won't fit the "conky disk" place.

Offline

#1193 2015-05-04 06:10:51

Paramvir
Member
Registered: 2009-08-06
Posts: 135
Website

Re: conky configs and screenshots!

firekage wrote:

I did not change anything regardins voffset. I had to configure hddtemp and something more and now all my disks are readed correctly...but now it won't fit the "conky disk" place.

Actually that is what I was trying to say in my last message. You need to change the voffset as you are using the original voffset - which does not account for the new data from hddtemp.

You may need to make 2 columns for hddtemp to fit or use a much smaller font.

cheers

Offline

#1194 2015-06-18 16:57:27

Aerial Boundaries
Member
Registered: 2015-05-15
Posts: 26

Re: conky configs and screenshots!

ncwomrm.png

# Use Xft?
use_xft yes
xftfont Input Mono:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
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 200 0
minimum_size 200 200
maximum_width 200
default_bar_size 0 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
#default_shade_color black
#default_outline_color white
own_window_colour 333333

# 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
# same thing as passing -x at command line
#gap_x 30
gap_x 12
gap_y 10

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

# Colors
color1 66FFFF

#Image cache size
imlib_cache_size 0


TEXT
Kernel
 +
 | + ${kernel}
 +
Weather
 +
 | + ${texeci 300 /home/ab/scripts/weather.sh "EUR|UK|UK241|LONDON"}
 +
Gmail
 +
 | + Unread: ${execpi 300 python3 /home/ab/scripts/gmail.py}
 +
System
 +
 | + CPU:  ${cpu cpu0}%
 | + RAM:  $memperc%
 | + Core Temp: ${execi 30 sensors | sed '20!d' | cut -c16-22} 
 | + /:    ${fs_free /root}/${fs_size /root} 
 | + sda2: ${fs_free /mnt/sda2}/${fs_size /mnt/sda2}
 | + sda3: ${fs_free /mnt/sda3}/${fs_size /mnt/sda3}
 +
Net
 +
 | + U: ${upspeed wlp3s0}/s ~${totalup wlp3s0} 
 | + D: ${downspeed wlp3s0}/s ~${totaldown wlp3s0}
 +
Processes
 +
 | + NAME                PID     
 | + ${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}
 +   
Now Playing:${voffset 1}${execbar /home/ab/scripts/cmus-conky-timebar.sh}
${execi 4 /home/ab/scripts/cmus-conky-art.sh}
${image /home/ab/Images/conkyart -s 204x204 -p 0,470}














${font Ubuntu Mono:style=Bold:size=9}${execi 4 /home/ab/scripts/cmus-conky.sh}${font}

The config section is a little messy and parts of this script are of course specific to my own setup so you'll need to modify them. Not that archers tend to blindly copy/paste. The overall layout is based entirely on someone else's, can't remember who. Maybe someone in this thread.

The album art, and time bar are scripts written by my self for Cmus. If you want to use them they are on my Github: https://github.com/TiredSounds/cmus-conky

If I've done something dumb or inefficient in my scripts or this config, please let me know smile

Last edited by Aerial Boundaries (2015-06-18 16:58:46)

Offline

#1195 2015-09-04 01:20:05

exadrid
Member
From: Ottawa, Ontario, Canada
Registered: 2010-01-27
Posts: 29

Re: conky configs and screenshots!

Here is my new Conky setup. Including fitbit information.

N2S7TGT.png

I wrote it with the new Conky syntax.

Right Conky :

conky.config = {

    -- false only for testing
    background = false,
    
    -- better fonts
    use_xft = true,
    
    -- update interval
    update_interval = 0.5,
    total_run_times = 0,

    -- window settings
    own_window = true,
    own_window_transparent = true,
    own_window_type = 'desktop',
    own_window_hints = 'undecorated, below, sticky, skip_taskbar, skip_pager',
    own_window_argb_visual = true,

    -- anti-flickering
    double_buffer = true,
    
    -- size
    minimum_width = 400,
    minimum_height = 1000,
    maximum_width = 400,
    
    -- shadows
    draw_shades = false,

    -- position
    alignment = 'top_right',
    gap_x = 3,
    gap_y = 40,
    
    -- borders
    draw_outline = false,
    default_outline_color = 'red',
    draw_graph_borders = true,
    
    -- frame
    draw_borders = false,

    -- color
    default_color = 'white',
    
    show_graph_range = false,
    show_graph_scale = false,
    --default_bar_height = 6,
    --default_bar_width = 200,
    text_buffer_size = 1000,
    override_utf8_locale = true,

    font = 'Liberation Sans:bold:size=9', --important for shades
    template0 = 'Liberation Sans:bold:size=9',
    template1 = 'Liberation Mono:bold:size=12',
    template2 = 'Liberation Mono:bold:size=30',
    template3 = 'Liberation Mono:bold:size=5',

    -- Lua Load
    lua_load = "/home/eric/.conky/rings_right.lua",    
    
}

conky.text = [[${lua rings}${color lightgray}${font $template2}${time %I:%M%P}${font $template1}










${color #0066FF}Information${hr 2}
${font $template0}${color lightgray}
Manufacturer:${alignr} ${execi 60 sudo dmidecode | grep -i "manufacturer" | tail -2 | head -1 | cut -c 16-24}
Model: ${alignr} ${execi 60 sudo dmidecode | grep -i "Product Name" | head -1 | cut -c 16-28}
Kernel: ${alignr}Linux ${kernel} on ${machine}
Operating System: ${alignr}Arch Linux
Desktop Evironment: ${alignr}${execi 100 xfce4-about --version | grep -i "Xfce4-about" | cut -c 21-29}
Total Uptime: ${alignr}${uptime_short}
${if_match "${exec acpi | grep -i "100" | cut -c 18-21}" == "100%"}Battery: ${alignr}Laptop Plugged (100%)${else}${if_match "${exec acpi | grep -i "Discharging" | cut -c 12-22}" == "Discharging"}Battery: ${alignr}${exec acpi | grep -i "Discharging" | cut -c 25-27} (${execi 15 acpi | grep -i "Discharging" | cut -c 31-31}h ${execi 15 acpi | grep -i "Discharging" | cut -c 33-34}m remaining)${else}${if_match "${exec acpi | grep -i "Charging" | cut -c 12-19}" == "Charging"}Battery: ${alignr}${exec acpi | grep -i "Charging" | cut -c 22-24} (${execi 15 acpi | grep -i "Charging" | cut -c 28-28}h ${execi 15 acpi | grep -i "Charging" | cut -c 30-31}m until charged)${endif}

${font $template1}${color #0066FF}Processor${hr 2}${font $template0}${color lightgray}

CPU Model: ${alignr}${execi 100 lscpu | grep -i "model name" | cut -c 24-}
Temperature: ${alignr}${execi 15 sensors | grep -i "CPU" | cut -c 18-24}
Fan Speed: ${alignr}${execi 15 sensors | grep -i "FAN" | cut -c 16-24}

${color lightgray}CPU 1 | ${cpu cpu1}%${alignr}CPU 2 | ${cpu cpu2}%${color #0066FF}
${cpugraph cpu1 32, 190}${alignr}${cpugraph cpu2 32, 190}
${color lightgray}CPU 3 | ${cpu cpu3}%${alignr}CPU 4 | ${cpu cpu4}%${color #0066FF}
${cpugraph cpu3 32, 190}${alignr}${cpugraph cpu4 32, 190}

${font $template1}${color #0066FF}Graphic Card${hr 2}${font $template0}${color lightgray}

Intel Model: ${alignr}${exec lspci | grep -i "VGA" | cut -c 54-84}

NVIDIA Model: ${alignr}${exec lspci | grep -i "04:00.0" | cut -c 51-65}
 ↳ Driver Version: ${alignr}${execi 60 optirun nvidia-smi -q | grep -i "driver" | head -1 | cut -c 39-44}
 ↳ Temperature: ${alignr}${execi 60 optirun nvidia-smi -q -d TEMPERATURE | grep -i "Current" | cut -c 39-40}°C
 ↳ Memory Usage:${alignr}${execi 60 optirun nvidia-smi -q -d Memory | grep -i "Used" | head -1 | cut -c 39-100} / ${execi 60 optirun nvidia-smi -q -d Memory | grep -i "Total" | head -1 | cut -c 39-100}

${font $template1}${color #0066FF}Memory${hr 2}${font $template0}${color lightgray}

Size: ${alignr} ${execi 60 sudo dmidecode --type memory | grep -i "size" | wc -l} x ${execi 60 sudo dmidecode --type memory | grep -i "size" | head -1 | cut -c 8-14}
Type: ${alignr} ${execi 60 sudo dmidecode --type memory | grep -i "type" | head -4 | tail -1 | cut -c 8-12}
Speed: ${alignr} ${execi 60 sudo dmidecode --type memory | grep -i "speed" | head -1 | cut -c 9-16}

$mem / $memmax ${alignr} $memperc%
${color #0066FF}${membar 8, 400}${color lightgray}

${font $template1}${color #0066FF}Audio & Video${hr 2}${font $template0}${color lightgray}

Audio Card: ${alignr}${execi 60 aplay --list-device | grep -i "card 1" | cut -c 14-26}
Master Volume: ${alignr}${exec amixer | grep -i "front left" | head -2 | tail -1 | cut -c 28-30}${if_match "${exec amixer | grep -i "front left" | head -2 | tail -1 | cut -c 28-30}" == "100"}%${endif}
Headphone Volume:${alignr}${exec amixer | grep -i "mono" | head -2 | tail -1 | cut -c 22-24}${if_match "${exec amixer | grep -i "mono" | head -2 | tail -1 | cut -c 22-24}" == "100"}%${endif}

Resolution: ${alignr}${execi 60 xrandr | grep -i "*+" | head -1 | cut -c 4-12} (${execi 60 xrandr | grep -i "*+" | head -1 | cut -c 18-22} Hz)
HDMI: ${alignr}${if_match "${exec xrandr | grep -i "HDMI1" | cut -c 7-18}" == "disconnected"}Disconnected${else}${exec xrandr | grep -i "*" | tail -1 | cut -c 4-11} (${execi 5 xrandr | grep -i "*" | tail -1 | cut -c 18-22} Hz)${endif}
]]

Left Conky:

conky.config = {

    -- false only for testing
    background = false,
    
    -- better fonts
    use_xft = true,
    
    -- update interval
    update_interval = 0.5,
    total_run_times = 0,

    -- window settings
    own_window = true,
    own_window_transparent = true,
    own_window_type = 'desktop',
    own_window_hints = 'undecorated, below, sticky, skip_taskbar, skip_pager',
    own_window_argb_visual = true,

    -- anti-flickering
    double_buffer = true,
    
    -- size
    minimum_width = 400,
    minimum_height = 1000,
    maximum_width = 400,
    
    -- shadows
    draw_shades = false,

    -- position
    alignment = 'top_right',
    gap_x = 1515,
    gap_y = 120,
    
    -- borders
    draw_outline = false,
    default_outline_color = 'red',
    draw_graph_borders = true,
    
    -- frame
    draw_borders = false,

    -- color
    default_color = 'white',
    
    show_graph_range = false,
    show_graph_scale = false,
    --default_bar_height = 6,
    --default_bar_width = 200,
    text_buffer_size = 1000,
    override_utf8_locale = true,

    font = 'Liberation Sans:bold:size=9', --important for shades
    template0 = 'Liberation Sans:bold:size=9',
    template1 = 'Liberation Mono:bold:size=12',
    template2 = 'Liberation Mono:bold:size=30',
    template3 = 'Liberation Mono:bold:size=5',


    -- Lua Load
    -- lua_load = "/home/eric/.conky/rings_left.lua",    
    
}

conky.text = [[${font $template1}${color #0066FF}Hard Drive${hr 2}${font $template0}${color lightgray}

/${alignr}${fs_size /}
${color #0066FF}${fs_bar /}${color lightgray}
${fs_used_perc /}%${alignr}${fs_used /}${font $template3}

${font $template0}/home${alignr}${fs_size /home}
${color #0066FF}${fs_bar /home}${color lightgray}
${fs_used_perc /home}%${alignr}${fs_used /home}${font $template3}

${font $template0}/boot${alignr}${fs_size /boot}
${color #0066FF}${fs_bar /boot}${color lightgray}
${fs_used_perc /boot}%${alignr}${fs_used /boot}${font $template3}

${font $template0}/windows${alignr}${fs_size /windows}
${color #0066FF}${fs_bar /windows}${color lightgray}
${fs_used_perc /windows}%${alignr}${fs_used /windows}

Disk Read: ${diskio_read}${alignr} Disk Write: ${diskio_write}
${color #0066FF}${diskiograph_read 32, 190}${alignr}${diskiograph_write 32, 190}${color lightgray}

HDD Temperature: ${alignr}${execi 10 sudo hddtemp /dev/sda | cut -c 33-37}

${font $template1}${color #0066FF}Network${hr 2}${font $template0}${color lightgray}

${if_match "${execi 1 cat /sys/class/net/wlp2s0/operstate}" == "up"}wlp2s0 (up)${endif}${if_match "${execi 1 cat /sys/class/net/wlp2s0/operstate}" == "down"}wlp2s0 (down)${endif}${alignr} ${addr wlp2s0}
${if_match "${execi 1 cat /sys/class/net/enp3s0f1/operstate}" == "up"}enp3s0f1 (up)${endif}${if_match "${execi 1 cat /sys/class/net/enp3s0f1/operstate}" == "down"}enp3s0f1 (down)${endif} ${alignr} ${addr enp3s0f1}
External IP:${alignr}${execi 3600 wget -q -O /dev/stdout http://checkip.dyndns.org/ | cut -d : -f 2- | cut -d \< -f -1 | cut -c 2-14}
Raspberry Pi: ${alignr}${execi 60 wget -qO- 192.168.1.1 | grep -i osmc | sed -e 's=.*osmc==' | cut -c 4-16}

${if_match "${execi 1 cat /sys/class/net/enp3s0f1/operstate}" == "up"} ${upspeed enp3s0f1}${alignr}down ${downspeed enp3s0f1}${else}Upload: ${upspeed wlp2s0}${alignr} Download: ${downspeed wlp2s0}${endif}
${if_match "${execi 1 cat /sys/class/net/enp3s0f1/operstate}" == "up"}${color #0066FF}${upspeedgraph enp3s0f1 32, 190}${alignr}${downspeedgraph enp3s0f1 32, 190}${color lightgray}${else}${color #0066FF}${upspeedgraph wlp2s0 32, 190}${alignr}${downspeedgraph wlp2s0 32, 190}${color lightgray}${endif}

Pacman Updates Count: ${alignr}${execi 100 checkupdates | wc -l} 

]]

If you are interested in anything else, let me know.

Offline

#1196 2015-09-04 09:22:10

philad
Member
Registered: 2014-05-01
Posts: 4

Re: conky configs and screenshots!

exadrid wrote:

... Including fitbit information.

...

I'd be really interested in the fitbit stuff. I guess u're using a lua/python script for these information. can you provide it or the source?

Offline

#1197 2015-09-04 15:26:22

exadrid
Member
From: Ottawa, Ontario, Canada
Registered: 2010-01-27
Posts: 29

Re: conky configs and screenshots!

philad wrote:

I'd be really interested in the fitbit stuff.

Sure, I wrote a python script using the fitbit-python package to connect to the API. I originally started writing it for other people, but then just adapted it for me, so the end is pretty rough. I may improve it in the future on github.

#!/usr/bin/python

#Conky-Fitbit by Exadrid

from fitbit.api import FitbitOauthClient

import os, sys, webbrowser, fitbit, time, datetime

import configparser
config = configparser.ConfigParser()

client_key = 'ba7c8a6d4376449f8ed481f0af25c7e2'
client_secret = '69f323833a91491cbac4fdc4ff219bdc'

#Get personal keys and put it in a config file
def gather_keys():
    
    print('* Obtain a request token ...\n')
    client = FitbitOauthClient(client_key, client_secret)
    token = client.fetch_request_token()
    
    stderr = os.dup(2)
    os.close(2)
    os.open(os.devnull, os.O_RDWR)
    try:
        webbrowser.get().open(client.authorize_token_url())
    finally:
        os.dup2(stderr, 2)
        
    print('* Authorize the request token in your browser\n')
    time.sleep(3)
    
    verifier = input('\nPlease input PIN: ')
        
    # get access token
    print('\n* Obtain an access token ...\n')
    token = client.fetch_access_token(verifier)

    global user_id, user_key, user_secret

    user_key = token['oauth_token']
    user_secret = token['oauth_token_secret']

    print('* Your user key is %s and your user secret is %s. These will be saved in config.cfg.' % (user_key, user_secret))
    
    # lets create that config file for next time...
    cfgfile = open("./config.cfg",'w')

    # add the settings to the structure of the file, and lets write it out...
    config.add_section('Passkey')
    config.set('Passkey','user_key', user_key)
    config.set('Passkey','user_secret', user_secret)
    config.write(cfgfile)
    cfgfile.close()

#Gather data by time period
def gather_data(auth, path, activity_type, time_input):
    if time_input == '1d':
        date_list = (auth.time_series('%s/%s' % (path, activity_type), period=time_input))
        final_sum = next (iter (date_list.values()))[-1]['value']
    elif time_input in('1d', '7d', '30d', '1w', '1m', '3m', '6m', '1y'):
        date_list = (auth.time_series('%s/%s' % (path, activity_type), period=time_input))
        final_sum = 0
        for item in range(len(next (iter (date_list.values())))):
            final_sum = final_sum + int(next (iter (date_list.values()))[item]['value'])
    elif time_input == 'yesterday':
        date_list = (auth.time_series('%s/%s' % (path, activity_type), period='1w'))
        final_sum = next (iter (date_list.values()))[-2]['value']
    elif len(time_input) == 10:
        date_list = (auth.time_series('%s/%s' % (path, activity_type), period='max'))
        date = next (iter (date_list.values()))
        for item in range(len(date)):
            if (date[item]['dateTime']) == time_input:
                final_sum = (date[item]['value'])
    elif time_input == 'last_week':
        date_list = (auth.time_series('%s/%s' % (path, activity_type), period='max'))
        date_list2 = next (iter (date_list.values()))
        date_list3 = date_list2[-days_since_sunday:]
        final_sum = 0
        for item in range(len(date_list3)):
            final_sum = final_sum + int(date_list3[item]['value'])
    return(final_sum)




#Keys for the fitbit API
if not os.path.exists("/home/eric/.conky/Fitbit/config.cfg"):
    gather_keys()

config.read('/home/eric/.conky/Fitbit/config.cfg')
user_key = config.get('Passkey', 'user_key')
user_secret = config.get('Passkey', 'user_secret')

authd_client = fitbit.Fitbit(client_key, client_secret, resource_owner_key=user_key, resource_owner_secret=user_secret)
    

#days since last sunday
d = datetime.datetime.today()
today = datetime.date(d.year, d.month, d.day)
days_since_sunday = today.weekday() + 1

#Information on how many steps today
steps_today = gather_data(authd_client, 'activities', 'steps', "1d")
today_ff = open('/home/eric/.conky/Fitbit/steps_format.txt', 'w')
today_ff.write(steps_today)
if int(steps_today) > 10000:
    steps_today = 10000
    today_f = open('/home/eric/.conky/Fitbit/steps.txt', 'w')
    today_f.write(str(steps_today))
else:
    today_f = open('/home/eric/.conky/Fitbit/steps.txt', 'w')
    today_f.write(str(steps_today))

#Information on how many steps since last sunday
steps_this_week = gather_data(authd_client, 'activities', 'steps', "last_week")
week_ff = open('/home/eric/.conky/Fitbit/week_format.txt', 'w')
week_ff.write(str(steps_this_week))
if int(steps_this_week) > 70000:
    steps_this_week = 70000
    week_f = open('/home/eric/.conky/Fitbit/week.txt', 'w')
    week_f.write(str(steps_this_week))
else:
    week_f = open('/home/eric/.conky/Fitbit/week.txt', 'w')
    week_f.write(str(steps_this_week))


#Information on how many floors this week
daily_floors = gather_data(authd_client, 'activities', 'floors', "1d")
floor_ff = open('/home/eric/.conky/Fitbit/floor_format.txt', 'w')
floor_ff.write(str(daily_floors))

It's pretty rough, I had to use multiple text file, one to give the actual number of steps that day/week and another to give me the number or 10,000/70,000 max (otherwise, the lua rings keep on going above 100%).

The lua is just any old conky ring lua and the conky is nothing special. They are pulling from the outputted files from the python script.

Offline

#1198 2015-09-20 15:02:18

gethiox
Member
Registered: 2015-09-20
Posts: 1

Re: conky configs and screenshots!

My conky config, based on a (very) old config founded in internet.



background no
use_xft yes
xftfont 123:size=8
xftalpha 0.5
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
#default_bar_size 0 6
 
maximum_width 296
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 40
#gap_y 230
gap_y 80
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
 
TEXT

${alignc -10}${font Open Sans:size=20}${color dodgerblue3}Arch${color}Linux$font$color
${voffset 4}$color${font}${font Open Sans:size=15}$alignr${voffset -15}${time %H:%M}$font
${voffset -4}${color dodgerblue3}${font Open Sans:Bold:size=10}DATE ${hr 5}$color$font
$color${font Open Sans:size=12}$alignc${time %A}, ${time %d %B %Y}$font$color

# SYS
${voffset -8}${font Open Sans:Bold:size=10}${color dodgerblue3}SYSTEM ${hr 5}$color${font}
$sysname $kernel $alignr $machine
Uptime: $alignr $uptime
#Last System Update:$alignr${execi 60 sh ~/bin/pacman-date.sh}
# GPU Temperature $alignr ${execi 30 sensors | grep 'temp1:' | cut -c16-17}°C

# MEMORY
${voffset -8}${font Open Sans:Bold:size=10}${color dodgerblue3}MEMORY ${membar 4} 
$color${font Open Sans:bold:size=8.5}Used:$font $mem of $memmax$alignr$memperc%
$color${font Open Sans:bold:size=8.5}Free:$font $memeasyfree
$color${font Open Sans:bold:size=8.5}Buffers / Cached:$font$alignr$buffers / $cached

${voffset -10}------------------------------------------------- ${font Open Sans:Bold:size=10}${color dodgerblue3}${voffset -2}RAM${color}${font}${voffset -1} ---- ${font Open Sans:Bold:size=10}${color dodgerblue3}${voffset -2}CPU${color}${font}${voffset -1} -
${top_mem name 1}${alignr}${top_mem cpu 1} %
${voffset -13}${alignr}${offset -60}${top_mem mem 1} %
${top_mem name 2}${alignr}${top_mem cpu 2} %
${voffset -13}${alignr}${offset -60}${top_mem mem 2} %
${top_mem name 3}${alignr}${top_mem cpu 3} %
${voffset -13}${alignr}${offset -60}${top_mem mem 3} %
#${top_mem name 4}${alignr}${top_mem cpu 4} %
#${voffset -13}${alignr}${offset -60}${top_mem mem 4} %

${voffset -8}${font Open Sans:Bold:size=10}${color dodgerblue3}SWAP ${swapbar 4}
$color${font Open Sans:bold:size=8.5}Used:$font $swap of $swapmax$alignr$swapperc%
$color${font Open Sans:bold:size=8.5}Free:$font $swapfree

# CPU
${voffset -8}${font Open Sans:Bold:size=10}${color dodgerblue3}CPU ${cpubar 4}
$color${font}Intel® Core™ i5-4670K @ ${freq_g cpu0}GHz $alignr $cpu% @ ${execi 2 sensors | grep 'Physical id 0' | cut -c18-19}°C
${font}Core 0 - ${execi 2 sensors | grep 'Core 0' | cut -c18-19}°C ${alignc 60}${color dodgerblue3}${cpubar cpu1}${color}
${font}Core 1 - ${execi 2 sensors | grep 'Core 1' | cut -c18-19}°C ${alignc 60}${color dodgerblue3}${cpubar cpu2}${color}
${font}Core 2 - ${execi 2 sensors | grep 'Core 2' | cut -c18-19}°C ${alignc 60}${color dodgerblue3}${cpubar cpu3}${color}
${font}Core 3 - ${execi 2 sensors | grep 'Core 3' | cut -c18-19}°C ${alignc 60}${color dodgerblue3}${cpubar cpu4}${color}

${voffset -10}------------------------------------------------- ${font Open Sans:Bold:size=10}${color dodgerblue3}${voffset -2}RAM${color}${font}${voffset -1} ---- ${font Open Sans:Bold:size=10}${color dodgerblue3}${voffset -2}CPU${color}${font}${voffset -1} -
#${hr 1}
${top name 1}${alignr}${top cpu 1} %
${voffset -13}${alignr}${offset -60}${top mem 1} %
${top name 2}${alignr}${top cpu 2} %
${voffset -13}${alignr}${offset -60}${top mem 2} %
${top name 3}${alignr}${top cpu 3} %
${voffset -13}${alignr}${offset -60}${top mem 3} %
#${top name 4}${alignr}${top cpu 4} %
#${voffset -13}${alignr}${offset -60}${top mem 4} %
# ${top name 5}${alignr}${top cpu 5} %
# ${voffset -13}${alignr}${offset -60}${top mem 5} %

# NETWORK
${voffset -8}${font Open Sans:Bold:size=10}${color dodgerblue3}NETWORK ${hr 5}
$color${font Open Sans:bold:size=8.5}External IP ${font}${alignr}${execi 60 curl http://ip.tupeux.com --connect-timeout 2 | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"}$font
${voffset -14}$alignc${execpi 4 echo "\${font}\${color}ping: \${font Open Sans:bold:size=8.5}\${color #66aaff}$(ping -W 1 -c 1 8.8.8.8 -q | grep rtt | egrep [0-9]+\.[0-9]+ -o | head -n 2 | tail -n 1)\${font}\${color} ms"}

${voffset -10}${font Open Sans:bold:size=8.5}Ethernet $font$alignr ${addr enp0s25}
↑ ${upspeedf enp0s25} kb/s $alignr ${totalup enp0s25}
${voffset -14}$alignc${upspeedgraph enp0s25 10,120  000000 aaddff}
↓ ${downspeedf enp0s25} kb/s $alignr ${totaldown enp0s25}
${voffset -14}$alignc${downspeedgraph enp0s25 10,120  000000 66aaff}

${voffset -10}${font Open Sans:bold:size=8.5}WiFi $font${wireless_bitrate wlan1} $alignr ${addr wlan1}
${voffset -14}$alignc${wireless_essid wlan1}
$alignc${wireless_link_bar 4,260 wlan1}   
↑ ${upspeedf wlan1} kb/s $alignr ${totalup wlan1}
${voffset -14}$alignc${upspeedgraph wlan1 10,120 000000 aaddff}
↓ ${downspeedf wlan1} kb/s $alignr ${totaldown wlan1}
${voffset -14}$alignc${downspeedgraph wlan1 10,120 000000 66aaff}

# HDD
${voffset -8}${font Open Sans:Bold:size=10}${color dodgerblue3}DISCS ${hr 5}
$color${font Open Sans:bold:size=8.5}${font Open Sans:bold:size=8.5}ROOT$font${alignc -20}${fs_used /} / ${fs_size /}$alignr ${fs_type /}
${color aaddff}write: ${diskio_write /dev/sda}${color 66aaff}${alignc -20} read:${diskio_read /dev/sda} $color$alignr ${fs_used_perc /} %
${fs_bar /}

#${voffset -10}${font Open Sans:bold:size=8.5}HOME $font$alignr ${fs_type /home}
#${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home} %
#${fs_bar /home}
${voffset -10}${font Open Sans:bold:size=8.5}GX-DATA ${font Open Sans:size=7}@ ${execi 60 sudo hddtemp /dev/disk/by-uuid/8995557f-b003-495e-82bf-5e16fd8c3f31 | egrep -o "[0-9]+.C$"}$font${alignc -20}${fs_used /media/gx-data} / ${fs_size /media/gx-data}$alignr ${fs_type /media/gx-data}
${color aaddff}write: ${diskio_write /dev/sdb}${color 66aaff}${alignc -20} read:${diskio_read /dev/sdb} $color$alignr ${fs_used_perc /media/gx-data} %
${fs_bar /media/gx-data}

${voffset -8}${font Open Sans:Bold:size=10}${color dodgerblue3}AUDIO ${hr 5}
${color}${font}$alignc${font Open Sans:bold:size=8.5}OUTPUTS:${font}
Master ${alignc 60}\
${execbar amixer -c 0 get Master | grep Mono: | cut -d " " -f6 | grep -o "[0-9]*"}
Headphone ${alignc 60}\
${execbar amixer -c 0 get Headphone | grep "Front Left" | cut -d " " -f7 | grep -o "[0-9]*"}
#PCM ${alignc 50}${execbar amixer -c 0 get PCM | grep "Front Left:" | cut -d " " -f7 | grep -o "[0-9]*"}
Front ${alignc 60}\
${execbar amixer -c 0 get Front | grep "Front Left:" | cut -d " " -f7 | grep -o "[0-9]*"}
#Surround ${alignc 50}${execbar amixer -c 0 get Surround | grep "Front Left:" | cut -d " " -f7 | grep -o "[0-9]*"}
#Center ${alignc 50}${execbar amixer -c 0 get Center | grep "Mono:" | cut -d " " -f6 | grep -o "[0-9]*"}
#LFE ${alignc 50}${execbar amixer -c 0 get LFE | grep "Mono:" | cut -d " " -f6 | grep -o "[0-9]*"}
#Beep ${alignc 50}${execbar amixer -c 0 get Beep | grep "Front Left:" | cut -d " " -f7 | grep -o "[0-9]*"}
$alignc${font Open Sans:bold:size=8.5}INPUTS:${font}
#FrontMic ${alignc 50}${execbar amixer -c 0 get "Front Mic" | grep "Front Left:" | cut -d " " -f7 | grep -o "[0-9]*"}
#Boost ${alignc 50}${execbar amixer -c 0 get "Front Mic Boost" | grep "Front Left:" | cut -d " " -f6 | grep -o "[0-9]*"}
#RearMic ${alignc 50}${execbar amixer -c 0 get "Rear Mic" | grep "Front Left:" | cut -d " " -f7 | grep -o "[0-9]*"}
#Boost ${alignc 50}${execbar amixer -c 0 get "Rear Mic Boost" | grep "Front Left:" | cut -d " " -f6 | grep -o "[0-9]*"}
Line ${alignc 60}\
${execbar amixer -c 0 get Line | grep "Front Left:" | cut -d " " -f7 | grep -o "[0-9]*"}
#Boost ${alignc 50}${execbar amixer -c 0 get "Line Boost" | grep "Front Left:" | cut -d " " -f6 | grep -o "[0-9]*"}
#Capture ${alignc 50}${execbar amixer -c 0 get Capture | grep "Front Left:" | cut -d " " -f7 | grep -o "[0-9]*"}
#Capture1 ${alignc 50}${execbar amixer -c 0 get Capture,1 | grep "Front Left:" | cut -d " " -f7 | grep -o "[0-9]*"}

${voffset -8}${font Open Sans:Bold:size=10}${color dodgerblue3}JACK ${hr 5}
${color}${font}${execi 10 jack_bufsize}


# MPD
${voffset -8}${color dodgerblue3}${font Open Sans:Bold:size=8}$mpd_elapsed / $mpd_length ${if_match "$mpd_status" == "Playing"}▶$endif${if_match "$mpd_status" == "Paused"}▮▮$endif${if_match "$mpd_status" == "Stopped"}■$endif${alignr}vol: $mpd_vol%
${voffset -2}${color dodgerblue3}${font Open Sans:Bold:size=10}MPD ${voffset -1}${font Open Sans:Bold:size=10}${mpd_bar 4}
${voffset -2}${font Open Sans:size=8}${color}${if_empty $mpd_track}$else\#$mpd_track$endif
${voffset -13}${if_empty $mpd_album}${font Open Sans:size=8}${color #666666}${alignc}[No Album]$else${font Open Sans:size=8}${color}${alignc}[$mpd_album]$endif
${voffset -13}${font Open Sans:size=8}${color}${alignr}$mpd_date
${voffset 2}${if_empty $mpd_artist}${font Open Sans:size=8}${color #666666}[No Artist]$else${font Open Sans:size=8}${color}$mpd_artist$endif
${voffset 2}${if_empty ${mpd_title 45}}${font Open Sans:Bold:Italic:size=8}${color #666666}${alignr}[No Title]$else${font Open Sans:Bold:Italic:size=8}${color}${alignr}${mpd_title 45}$endif

tCUaEsdt.png

warning: hdd temperature are getting by 'sudo hddtemp /dev/sda', make sure you can execute this command without providing password, or just delete this element.
And wallpaper that I rendered: http://gethiox.deviantart.com/art/Archl … -561423774

-- mod edit: read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754  [jwr] --

Last edited by gethiox (2015-09-20 17:40:05)

Offline

#1199 2015-09-22 02:37:03

damnbug
Member
Registered: 2012-09-18
Posts: 84

Re: conky configs and screenshots!

${color grey}$alignr${iconv_start ISO-8859-1}°C${iconv_stop}

How to fix the "°C"? http://i.imgur.com/ezVDdYp.png

Why isn't 'iconv_start' working?

Last edited by damnbug (2015-09-23 17:44:10)

Offline

#1200 2015-09-23 06:24:36

philad
Member
Registered: 2014-05-01
Posts: 4

Re: conky configs and screenshots!

exadrid wrote:

...
It's pretty rough, I had to use multiple text file, one to give the actual number of steps that day/week and another to give me the number or 10,000/70,000 max (otherwise, the lua rings keep on going above 100%).

The lua is just any old conky ring lua and the conky is nothing special. They are pulling from the outputted files from the python script.

Thank you very much for providing the information :-)

Offline

Board footer

Powered by FluxBB