Skip to content

Instantly share code, notes, and snippets.

@CheesecakeCG
Created May 20, 2020 20:22
Show Gist options
  • Save CheesecakeCG/a4d5e02d7036dd231da9286a5fbaecf1 to your computer and use it in GitHub Desktop.
Save CheesecakeCG/a4d5e02d7036dd231da9286a5fbaecf1 to your computer and use it in GitHub Desktop.
Conky pillar style widget for optimized for the 1080p Thinkpad T450S
luna = require 'lunajson'
color_path = "/home/chrisd/.cache/wal/colors.json"
fh = io.open( color_path, "rb" )
if fh then
raw = fh:read("*a")
fh:close()
print (raw)
wal = luna.decode(raw)
conky.config = {
use_xft= true,
xftalpha= 1,
update_interval= 1,
total_run_times= 0,
background= true,
own_window= true,
own_window_hints= 'below,sticky,skip_taskbar,skip_pager',
-- own_window_colour= "black",
own_window_colour= wal.colors.color0,
own_window_argb_visual= true,
own_window_argb_value= 170,
own_window_type = 'override',
double_buffer= true,
minimum_height= 1080,
minimum_width= 300,
maximum_width= 600,
draw_shades= false,
draw_outline= false,
draw_borders= false,
draw_graph_borders= false,
-- default_color= '80838D',
default_color= wal.special.foreground,
default_shade_color= '333333',
default_outline_color= 'black',
color1 = wal.special.foreground,
color3 = wal.special.foreground,
color2 = "F76688",
alignment= 'tl',
gap_x= 200,
gap_y= 0,
no_buffers= true,
text_buffer_size = 2048,
uppercase= false,
cpu_avg_samples= 4,
net_avg_samples = 2,
override_utf8_locale= true,
font= 'Oxanium:style=Regular:size=12'
}
else
print "big error"
end
conky.text = [[
${color2}
${voffset 70}
${alignr}${font Oxanium:style=Black:pixelsize=232}${time %I:%M}${font}
${alignr}${offset -12}${font Oxanium:style=Light:pixelsize=64}${time %S}${font}
${color1}
${voffset 8}
${execpi 3600 checkupdates | awk 'END { print (NR == 0 ? "System up to date" : NR " package" (NR > 1 ? "s" : "")); }'}${alignr}${font Oxanium:style=Regular:size=12}${time %A - %d %B %Y}${voffset 8}
${hr $color1}${voffset 8}
local_ip ${alignr}${addrs wlp3s0}
${battery_bar 32,298 BAT0} ${battery_bar 32,298 BAT1}
core: ${battery BAT0}${alignr} aux: ${battery BAT1}
${color3}${cpugraph cpu1 128,299 color3 color1 t} ${cpugraph cpu2 128,299 color3 color1 -t }
${color3}${cpugraph cpu3 128,299 color3 color1 t} ${cpugraph cpu4 128,299 color3 color1 -t }
load_avg ${alignr}${loadavg}
${memgraph 96,598 color3 color1}
random_access_memories ${alignr}${mem} used
]]
-- ${execi 20 cat ~/Sync/todo.txt}
-- $mpd_title
-- ${mpd_bar 8,350}${font}
-- $mpd_artist${alignr}$mpd_elapsed / $mpd_length${voffset 8}
--${color3}${downspeedgraph wlp2s0 25,349 color3 color1 -t}
--${color1}download ${alignr}${downspeedf wlp2s0}k/s (${totaldown wlp2s0})
--${hr $color1}
--upload ${alignr}${upspeedf wlp2s0}k/s (${totalup wlp2s0})
--${color3}${upspeedgraph wlp2s0 25,349 color3 color1 -t}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment