You are not logged in.

#741 2017-10-16 11:04:42

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: Show us your conky

Just a simple bar conky i thought i would share.

Screenshot---161017---220045.md.png

# .conkyrc - Edited from various examples across the 'net
# Used by VastOne on VSIDO
times_in_seconds yes
# Create own window instead of using desktop (required in nautilus)
#own_window yes
#own_window_type normal
#own_window_transparent no
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
 
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
 
# fiddle with window
#user_spacer right

# Use Xft?
use_xft yes
xftfont cousine:size=10
xftalpha 0.9
# xftalpha 0.5
text_buffer_size 2048, file-manager

# 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

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 1024 0
maximum_width 1366

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
own_window_argb_visual yes
own_window_argb_value 100
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window yes
own_window_transparent no
own_window_class conky-semi

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 1

# border width
border_width 1

# Default colors and also border colors
default_color BDBDBD
#color2=blue
#color3=grey
#default_shade_color black
#default_outline_color grey
own_window_colour 000000

# Text alignment, other possible values are commented
#alignment top_middle
# 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 0
gap_y 2
minimum_size 1366 0
maximum_width 1366
# 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 yes

short_units yes

# lua_load ~/Conky/LUA/draw-bg.lua
# lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.3
# ${color 7D8C93}Wyatt ${color 55688A} ${execi 600 inxi -W63882 | cut -c31-34}°
# ${color 32CD32}${time %I:%M%P}

# lua_load ~/conky/scripts/conky_lua_scripts.lua

# ${voffset 0}${color 73AEB4}K ${color 7D8C93}$kernel${color 73AEB4}${goto 140}C ${color 7D8C93}${cpu cpu0}%${color 73AEB4}${goto 198}M ${color 7D8C93}${memperc}%  ${mem} / ${memmax}${color 73AEB4}${goto 350}H${color 7D8C93} /h ${fs_used_perc /home}%${color 73AEB4}${goto 430}N${color 7D8C93}  ${if_up eth0}eth0  d ${downspeedgraph eth0 12,65 000000 ff0000} u ${upspeedgraph 12,65 000000 00ff00}${else}${if_up wlan0}wlan0 d ${downspeedgraph wlan0 12,65 000000 ff0000} u ${upspeedgraph wlan0 12,65 000000 00ff00}${endif}${endif}${goto 625}${if_existing /sys/class/power_supply/BAT0/}${color 73AEB4}  B ${color 7D8C93}${execi 1 ~/bin/conky/battery.sh}${endif}
# ${voffset 0}${color 73AEB4}K ${color 7D8C93}$kernel${color 73AEB4}${goto 140}C ${color 7D8C93}${cpu cpu0}%${color 73AEB4}${goto 198}M ${color 7D8C93}${memperc}%  ${mem} / ${memmax}${color 73AEB4}${goto 350}H${color 7D8C93} /h ${fs_used_perc /home}%${color 73AEB4}${goto 430}N${color 7D8C93}  ${if_up eth0}eth0  d ${downspeedgraph eth0 12,65 000000 ff0000} u ${upspeedgraph 12,65 000000 00ff00}${else}${if_up wlan0}wlan0 d ${downspeedgraph wlan0 12,65 000000 ff0000} u ${upspeedgraph wlan0 12,65 000000 00ff00}${endif}${endif}${goto 655}${if_existing /sys/class/power_supply/BAT0/}${color 73AEB4}  B ${color 7D8C93}${execi 1 ~/bin/conky/battery.sh}${endif}
TEXT
${goto 10}${color 73AEB4}Cpu:${color}${cpu cpu0}%${color 0A338A} | \
${goto 80}${color}${color 73AEB4}Mem:${color}${mem}/${memmax}${color 0A338A} | \
${goto 220}${color}${color 73AEB4}Root:${color}${fs_used /}/${fs_free /}${color 0A338A} | \
${goto 370}${color}${color 73AEB4}Home:${color}${fs_used /home}/${fs_free /home}${color 0A338A}| \
${goto 510}${color}${color 73AEB4}T/Up:${color}${totalup usb0} ${color 73AEB4}U/S=${color}${upspeed usb0}${upspeedgraph usb0 12,65 000000 00ff00}${color 0A338A} | \
${goto 755}${color}${color 73AEB4}T/Down:${color}${totaldown usb0} ${color 73AEB4}D/S=${color} ${downspeed usb0}${downspeedgraph usb0 12,65 000000 ff0000}${color 0A338A} | \
${goto 1025}${color}${color 73AEB4}Uptime:${color 32CD32}${format_time $uptime_short "\hh\mm"}${color 0A338A} | \
${goto 1260}${color 718CC0} ${time %a %d/%m/%y}

Offline

#742 2017-10-22 07:48:32

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: Show us your conky

Open window list for panel-less desktop. OB client list to the right for comparison.
wlist.th.png
Conky:

conky.config = {
    alignment = 'top_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
	default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'DejaVu Sans Mono:size=12',
    gap_x = 5,
    gap_y = 60,
    minimum_height = 5,
	minimum_width = 400,
	maximum_width = 400,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = true,
    stippled_borders = 0,
    update_interval = 5.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
${exec "/home/nore/bin/list_open_windows.sh"}
]]

list_open_windows.sh: (edited)

wmctrl -l -x | awk '{print $3}' | awk -F'.' '{print $2}' | sed '/Xfdesktop/d; /Xfce4-panel/d; /Conky/d'
  • wmctrl -l lists all windows opened by window manager

  • option -x shows WM_CLASS

  • awk prints third column, window class

  • awk -F cuts class string and prints only second part

  • sed excludes desktop, panel and conky (combined, upper case for class names)

Before shutting computer down I want to know if I have unfinished tasks like unsaved documents open. I tried to use tint2 in background with panel_layer=bottom, but icons and text appeared on top of windows when I switched desktops.

I still have to find out, how to cut out first part before "." in window class. I'd like to see just "Firefox" instead of "navigator.Firefox". Suggestions are welcome. (Solved)

Wmctrl lists window in order in which they were opened. It would be cool to have them in order by desktop, but this is acceptable so far. It saves me for unnecessarily pressing Super-tab for client list.

Last edited by nore (2017-10-23 06:02:10)

Offline

#743 2017-10-22 08:20:39

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: Show us your conky

nore wrote:

I still have to find out, how to cut out first part before "." in window class. I'd like to see just "Firefox" instead of "navigator.Firefox". Suggestions are welcome.

Solved, added awk -F.

wmctrl -l -x | awk '{print $3}' | awk -F'.' '{print $2}' | sed '/xfdesktop/d' | sed '/xfce4-panel/d' | sed '/conky/d'

New scrot.

Last edited by nore (2017-10-22 08:25:01)

Offline

#744 2017-10-22 19:31:56

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Show us your conky

nore wrote:
wmctrl -l -x | awk '{print $3}' | awk -F'.' '{print $2}' | sed '/xfdesktop/d' | sed '/xfce4-panel/d' | sed '/conky/d'

i believe the 3 sed's can be shortened to 1:

sed '/xfdesktop/d; /xfce4-panel/d; /conky/d'

also, don't you want to remove conky? shouldn't that be 'Conky/d' instead of 'conky/d'?

Offline

#745 2017-10-23 05:58:51

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: Show us your conky

^Correct, lower case names were left from earlier version that printed out window names instead of classes. I tried putting all /d string in separate quotes with no avail, so easy and idiotic workaround was piping them all. 8o I'll update original post.

Last edited by nore (2017-10-23 06:09:34)

Offline

#746 2017-10-23 17:42:50

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: Show us your conky

^Clever! I have to test that too, thanks.

Offline

#747 2017-10-24 06:26:38

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: Show us your conky

^ No need for grep if you're already using awk smile

So this:

wm_class=$(xprop -id $win_id | grep "^WM_CLASS(STRING)" | awk -F '"' '{print $4}')

Can be replaced with:

wm_class=$(xprop -id $win_id | awk -F'"' '/^WM_CLASS\(STRING\)/{print $4}')

This also seems to work:

wm_class=$(xprop -id $win_id | awk -F'"' '/WM_CLASS/{print $4}')

Offline

#748 2017-10-24 08:57:49

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: Show us your conky

Snowball keeps rolling.  smile Excellent job, misko.

What I (read we) need to do next is document the whole thing. I can't understand half of what the script is doing 8o atm, but it surely is looking good.

(Going to read xprop manual.)

Last edited by nore (2017-10-24 09:18:37)

Offline

#749 2017-10-29 10:41:30

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

@Teo, if you have time, please check why the script doesn't update the data anymore.
Thank you very much!  smile

Offline

#750 2017-10-30 16:48:02

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Show us your conky

Because the page has unfortunately stopped updating since last May unklar.
Bad luck.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#751 2017-10-30 17:28:57

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

Too bad it was such a nice idea too.  OH well, time to edit it, removing the Chinese connection and use the times and dates with cloud cover and sunlight and night time shadow.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#752 2017-10-31 08:15:30

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

TeoBigusGeekus wrote:

Because the page has unfortunately stopped updating since last May unklar.
Bad luck.

^^Oh, man, I could've figured that out myself. On this page I never scrolled to the bottom of the page.

Thanks, Teo, for your help.  smile

Offline

#753 2017-10-31 14:11:46

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Show us your conky

Anytime unklar wink


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#754 2017-10-31 15:27:22

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: Show us your conky

misko_2083 wrote:

@nore here it is
This one prints out workspace/display number too

Great job, misko, thank you! Script squirreled.

Offline

#755 2017-11-27 17:34:52

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Show us your conky

sshot-123212_2017-11-27.th.png


You must unlearn what you have learned.
    -- yoda

Online

#756 2017-12-05 16:29:13

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

Today very bad weather....
So it's obvious to deal with Conky. wink

Here I found a very interesting, individual configuration .

Conky Version 1.10

conky -v
conky 1.10.6_pre compiled Tue Nov 21 19:25:25 UTC 2017 for Linux 4.13.8-1-ARCH x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky


 General:
  * math
  * hddtemp
  * portmon
  * IPv6
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * builtin default configuration
  * old configuration syntax
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support
  * PulseAudio
 X11:
  * Xdamage extension
  * Xinerama extension (virtual display)
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual
  * Own window

 Music detection:
  * MPD
  * MOC

 Default values:
  * Netdevice: eth0
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/share/locale
  * Maximum netdevices: 64
  * Maximum text size: 16384
  * Size text buffer: 256

After a few adjustments, the first start with the "known errors"appears, if lua-scripte application find here, which call cairo.

conky1.10 in archlinux

conky -c /DATEN/francescoPC/Conky/derivantArt/urgo/conky/.conkyrc &
[1] 25862
[unklar@archhost ~]$ conky: llua_load: ...N/francescoPC/Conky/derivantArt/urgo/conky/.lua/urgo.lua:11: module 'cairo' not found:
	no field package.preload['cairo']
	no file '/usr/share/lua/5.3/cairo.lua'
	no file '/usr/share/lua/5.3/cairo/init.lua'
	no file '/usr/lib/lua/5.3/cairo.lua'
	no file '/usr/lib/lua/5.3/cairo/init.lua'
	no file './cairo.lua'
	no file './cairo/init.lua'
	no file '/usr/lib/conky/libcairo.so'
	no file '/usr/lib/lua/5.3/cairo.so'
	no file '/usr/lib/lua/5.3/loadall.so'
	no file './cairo.so'
conky: desktop window (2000012) is subwindow of root window (4a5)
conky: window type - normal
conky: drawing to created window (0x3c00002)
conky: drawing to double buffer
conky: Unknown setting 'pozycja_y'
conky: Unknown setting 'pozycja_x'
conky: forked to background, pid is 25863

conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
conky: llua_do_call: function conky_main execution failed: attempt to call a nil value

I'd really like to know what package is missing. I haven't found out yet.
If I rewrite the configuration to version 1.9, it works fine. big_smile
ugro1.th.jpg ugro2.th.jpg

.conkyrc9

# conky-version1.9
    background yes
    use_xft yes
    font monofur:size=10
    xftalpha 1 
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_type normal
    own_window_hints undecorated,below,skip_taskbar,skip_pager  #sticky,
    double_buffer yes
    minimum_size 800 900
#minimum_height = 900,
#maximum_width = 900,
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    default_color 48192D
    default_shade_color 000000
    default_outline_color 828282
    alignment top_left
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 1
    temperature_unit celsius
    override_utf8_locale yes
    imlib_cache_size 0
    default_color FFFFFF
    color0 FFFFFF
    color1 48192D
    color2 333333
    color3 414569
    color4 1994D1
    color5 000000
    color6 C22E14
    template9 de_DE.UTF-8
#own_window_argb_value = 0,
    own_window_argb_visual yes
#own_window_colour = '000000',
    gap_x 50
    gap_y 20
    if_up_strictness address
#pozycja_x=400,
#pozycja_y=400,
    lua_load /media/DATEN/francescoPC/Conky/derivantArt/urgo/conky/.lua/urgo.lua
    lua_draw_hook_post main


TEXT
${font monofur:weight=Bold:size=90}${color4}\
${alignc}${time %H:%M}\
${font}${color}
${font Liberation Sans Narrow:weight=Bold:size=28}${color4}\
${voffset 10}\
${alignc}${execi 10 LANG=${template9} LC_TIME=${template9} date +"%A, %d. %B"}\
${font}${color}


#${color4}SYSTEM ${hr 2}
#${offset 15}$sysname $kernel
#${offset 15}$nodename
#${offset 15}Uptime: $uptime
#${offset 120}${cpugraph 40,183 666666 666666}${voffset -25}



#Battery: ${battery_percent BAT1}% ${battery_bar BAT1}
#${offset 90}ETHERNET
#${offset 15}Up: ${upspeed enp2s0} / ${totalup}
#${offset 15}${upspeedgraph enp2s0 40,285 4B1B0C FF5C2B 100 -l}
#${offset 15}Down: ${downspeed enp2s0} / ${totaldown}
#${offset 15}${downspeedgraph enp2s0 40,285 324D23 77B753 100 -l}
#${offset 15}Up: ${upspeed wlp3s0} / ${totalup}
#${offset 15}Down: ${downspeed wlp3s0} / ${totaldown}
#${color4}${hr 2}
 

Last edited by unklar (2017-12-06 14:29:18)

Offline

#757 2017-12-07 10:08:01

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

hello

@ unklar i permice me to change  your conky (1.09) a little  beat .

A little french  & hard drive temp & card temp .It look like this

1512641213.png


1512641489.png



@+

Last edited by loutch (2017-12-07 10:12:01)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#758 2017-12-07 14:31:52

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

loutch wrote:

hello

@ unklar i permice me to change  your conky (1.09) a little  beat .

Hello, my friend, it's an honor to  smile

and this on Mandriva, the distribution that brought me to Linux in 2009

Offline

#759 2017-12-07 14:40:45

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

unklar wrote:
loutch wrote:

hello

@ unklar i permice me to change  your conky (1.09) a little  beat .

Hello, my friend, it's an honor to  smile

and this on Mandriva, the distribution that brought me to Linux in 2009

Not mandriva (it's also this distribution that makes me come to linux) just any mageia who look like , a little revamped (a little moment of nostalgia) .

@+

Last edited by loutch (2017-12-07 14:42:47)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#760 2017-12-07 14:47:46

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

I knew it   lol  lol

Offline

Board footer

Powered by FluxBB