You are not logged in.
Just a simple bar conky i thought i would share.
# .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
Open window list for panel-less desktop. OB client list to the right for comparison.
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
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'
Last edited by nore (2017-10-22 08:25:01)
Offline
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
^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
^Clever! I have to test that too, thanks.
Offline
^ No need for grep if you're already using awk
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
Snowball keeps rolling. 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
@Teo, if you have time, please check why the script doesn't update the data anymore.
Thank you very much!
Offline
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
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
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.
Offline
Anytime unklar
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
@nore here it is
This one prints out workspace/display number too
Great job, misko, thank you! Script squirreled.
Offline
Today very bad weather....
So it's obvious to deal with Conky.
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.
.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
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
@+
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
hello
@ unklar i permice me to change your conky (1.09) a little beat .
Hello, my friend, it's an honor to
and this on Mandriva, the distribution that brought me to Linux in 2009
Offline
loutch wrote:hello
@ unklar i permice me to change your conky (1.09) a little beat .
Hello, my friend, it's an honor to
![]()
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
I knew it
Offline