asqwerth wrote:Where did you get the .lua file from?
I'm not sure, but I think this is from Lua-Guru @mrpeachy or @londonali
asqwerth wrote:Where did you get the .lua file from?
Code: Select all
conky.config = {
own_window = true,
own_window_class = 'Conky',
own_window_colour = 'black',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 140,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_type = 'dock',
double_buffer = true,
use_spacer = 'none',
use_xft = true,
-- font snap 7,
font = 'monofur:size=10',
-- xftfont DejaVu Sans Light:size=8',
xftalpha = 1,
text_buffer_size = 2048,
-- alignment is disabled when own_window_type is dock
-- alignment tm
gap_x = 220,
gap_y = 1410,-- Use this to move your bar up and down the screen
default_bar_width = 20, default_bar_height = 8,
short_units = true,
-- --- Colours, Sizes, Fonts & Margins --- #
update_interval = 1.0,
stippled_borders = 0,
minimum_width = 2560, minimum_height = 6,-- Your screen width here
maximum_width = 2560,-- and here
border_width = 10,
default_color = '#CCCCCC',
-- --- Text --- #
draw_outline = false,
draw_borders = false,
--font -*-profont-*-*-*-11-*-*-*-*-*-*-*
uppercase = true,
draw_shades = false,
default_shade_color = 'grey',
default_outline_color = 'black',
default_color = '#DCDCDC',--220 220 220 Gainsboro
color0 = '#8FBC8F',--143 188 143 DarkSeaGreen
color1 = '#778899',--119 136 153 LightSlateGray
color2 = '#FF8C00',--255 140 0 DarkOrange
color3 = '#7FFF00',--127 255 0 Chartreuse
color4 = '#FFA07A',--255 160 122 LightSalmon
color5 = '#FFDEAD',--255 222 173 NavajoWhite
color6 = '#00BFFF',-- 0 191 255 DeepSkyBlue
color7 = '#00FFFF',-- 0 255 255 Cyan
color8 = '#FFFFFF',-- Withe
color9 = '#FFFF00',--255 255 0 Yellow
--color10 B22222 #178 34 34 FireBrick
};
conky.text = [[
${goto 100}${color9}GPU:${color8} ${hwmon 2 temp 1}°\
${color7}${kernel}${color8} CPU: ${color7}${if_match ${cpu cpu0} < 10}00${cpu cpu0}${color8}\
${else}${color7}${if_match ${cpu cpu0} < 100}0${cpu cpu0}${color8}\
${else}${color9}${cpu cpu0}${color8}\
${endif}${endif}\
Mem: ${color7}${if_match ${memperc} < 10}00${memperc}${color8}\
${else}${color7}${if_match ${memperc} < 100}0${memperc}${color8}\
${else}${color9}${memperc}${color8}\
${endif}${endif}\
root: ${color7}${if_match ${fs_used_perc /} < 10}00${fs_used_perc /}${color8}\
${else}${color7}${if_match ${fs_used_perc /} < 100}0${fs_used_perc /}${color8}\
${else}${color9}${fs_used_perc /}${color8}\
${endif}${endif}\
Core0: ${color7}${hwmon 2 temp 1}°${color8}\
Core1: ${color7}${hwmon 2 temp 2}°${color8}\
Core2: ${color7}${hwmon 2 temp 3}°${color8}\
Core3: ${color7}${hwmon 2 temp 4}°${color8}\
sdb: ${color7}${execpi 600 hddtemp -n /dev/sdb}°${color8}\
DL: ${downspeedgraph eth0 10,50 FFFF00 FF0000}\
UP: ${upspeedgraph eth0 10,50 FF0000 FFFF00}${color8}\
FAN: ${color7}${hwmon 3 fan 1}\
${color8}|${color7}${hwmon 3 fan 2}\
${color8}|${color7}${hwmon 3 fan 3}${color8}\
UID: ${color7}${exec id | cut -c5-8}${color8} MPD : ${color8}${if_mpd_playing}${color4}${mpd_smart 50} ${color2}${mpd_elapsed} / ${mpd_length}${else}${mpd_status}${endif}
#keeps#########
]];
Code: Select all
conky.config = {
own_window = true,
own_window_class = 'Conky',
own_window_colour = 'black',
own_window_transparent = false,
own_window_argb_visual = true,
own_window_argb_value = 140,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_type = 'panel',
double_buffer = true,
use_spacer = 'left',
use_xft = true,
--font snap-7
font = 'Noto Sans:size=8',
-- xftfont DejaVu Sans Light:size=8
xftalpha = 1,
text_buffer_size = 2048,
-- alignment is disabled when own_window_type is dock
--alignment top_left
gap_x = 10,
gap_y = 1420,-- Use this to move your bar up and down the screen
default_bar_width = 2560, default_bar_height = 6,
short_units = true,
-- --- Colours, Sizes, Fonts & Margins --- #
update_interval = 1.0,
stippled_borders = 0,
minimum_width = 2560, minimum_height = 6,-- Your screen width here
maximum_width = 2560,-- and here
border_width = 6,
default_color = '#CCCCCC',
-- --- Text --- #
draw_outline = false,
draw_borders = false,
--font -*-profont-*-*-*-11-*-*-*-*-*-*-*
uppercase = true,
draw_shades = false,
color0 = '#a6e22e',-- Light green
color1 = '#beed5f',-- Lime
color2 = '#fd971f',-- Light Orange
color3 = '#000000',-- Black
color4 = '#9e6ffe',-- Purple
color5 = '#00CBEE',-- Blue
color6 = '#6EC6D4',-- Light grey
color7 = '#FFFF00',-- Yellow
color8 = '#FF0000',-- Red
color9 = '#3333FF',-- Blue2
};
conky.text = [[
${color1}$nodename $kernel ${color2}Uptime: ${color} ${uptime_short} ${color} ${goto 320}* \
${color4}Cpu: ${color8}${cpu}% ${exec sensors|grep 'Core 0'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${goto 440}* \
${color5}Ram: ${color6}${mem}${color 00CBEE}/${color}${memmax} ${goto 560}* \
${color6}Root: ${color6}${fs_used}/${color}${fs_size} ${color9}: ${color8}SDA: ${exec hddtemp /dev/sda -n --unit=C}° SDB: ${exec hddtemp /dev/sdb -n --unit=C}° SDC: ${exec hddtemp /dev/sdc -n --unit=C}° ${color} ${goto 860}* \
${color}Net : ▲${upspeedf eth0} ${color3}${upspeedgraph eth0 10,50 ffff00 00ff00}${color}${totalup eth0} ${goto 1050}* \
▼${downspeedf eth0} ${color3}${downspeedgraph eth0 10,50 ffff00 00ff00}${color}${totaldown eth0} ${goto 1200}* \
${color8}GTX970: ${color2}${exec nvidia-settings -q [gpu:0]/GPUCurrentClockFreqs -t} MHz ${exec nvidia-settings -q [thermalsensor:0]/ThermalSensorReading -t} °C ${color} ${goto 1390}* \
${color6}Fans: ${color7}${hwmon 3 fan 1} RPM ${color6}: ${color7}${hwmon 3 fan 2} RPM ${color6}: ${color7}${hwmon 3 fan 3} RPM ${color} ${goto 1630}* \
${color}${time %A}, ${time %d %B %Y %l:%M %P} * ${color7}MPD : ${color8}${if_mpd_playing}${color4}${mpd_smart 50} ${color2}${mpd_elapsed} / ${mpd_length}${else}${mpd_status}${endif}
]];
Code: Select all
conky.config = {
own_window = true,
--own_window_class = 'Conky',
--own_window_colour = 'black',
own_window_transparent = true,
--own_window_argb_visual = true,
--own_window_argb_value = 140,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_type = 'normal',
...
Code: Select all
conky -v
conky 1.10.8 compiled Tue May 15 07:41:15 UTC 2018 for Linux 4.9.0-6-amd64 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
* nvidia
* eve-online
* builtin default configuration
* old configuration syntax
* Imlib2
* apcupsd
* iostats
* ncurses
* Internationalization support
* PulseAudio
Lua bindings:
* Cairo
* Imlib2
* RSVG
X11:
* Xdamage extension
* Xinerama extension (virtual display)
* Xshape extension (click through)
* XDBE (double buffer extension)
* Xft
* ARGB visual
* Own window
Music detection:
* Audacious
* MPD
* MOC
* XMMS2
Default values:
* Netdevice: eth0
* Local configfile: $HOME/.conkyrc
* Localedir: /usr/share/locale
* Maximum netdevices: 64
* Maximum text size: 16384
* Size text buffer: 256
Yeah, I know almost all about himKoO wrote: Have you seen Sector11 conky test script looks interesting.
Yes, you can't RUN both conky 1.9 and 1.10 at the same time, but generally conky 1.10 can read old syntax (ver 1.9) conky scripts.