2020-07-21 17:28:13 +00:00
|
|
|
local dark = io.open(os.getenv("HOME").."/.dark")
|
|
|
|
|
2019-09-18 12:09:53 +00:00
|
|
|
-- vim: set tabstop=4 noexpandtab autoindent cindent syntax=lua nowrap :miv ---
|
|
|
|
|
|
|
|
conky.config = {
|
|
|
|
lua_load = '~/.config/conky/conky.lua',
|
2019-09-20 08:32:08 +00:00
|
|
|
update_interval = 1,
|
2019-09-18 12:09:53 +00:00
|
|
|
cpu_avg_samples = 2,
|
|
|
|
net_avg_samples = 2,
|
|
|
|
out_to_console = false,
|
|
|
|
override_utf8_locale = true,
|
|
|
|
double_buffer = true,
|
|
|
|
no_buffers = true,
|
|
|
|
text_buffer_size = 32768,
|
|
|
|
imlib_cache_size = 0,
|
|
|
|
own_window = true,
|
|
|
|
own_window_title = 'conky',
|
2020-07-21 17:08:54 +00:00
|
|
|
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
|
|
|
|
own_window_transparent = true,
|
2019-09-18 12:09:53 +00:00
|
|
|
own_window_argb_visual = true,
|
2020-07-21 17:08:54 +00:00
|
|
|
own_window_argb_value = 255,
|
|
|
|
own_window_type = 'conky',
|
2019-09-18 12:09:53 +00:00
|
|
|
border_inner_margin = 20,
|
|
|
|
border_outer_margin = 0,
|
|
|
|
xinerama_head = 2,
|
|
|
|
alignment = 'top_left',
|
2019-09-20 08:32:08 +00:00
|
|
|
gap_x = 40,
|
2020-07-21 17:08:54 +00:00
|
|
|
gap_y = 20,
|
2019-09-18 12:09:53 +00:00
|
|
|
draw_shades = false,
|
|
|
|
draw_outline = false,
|
|
|
|
draw_borders = false,
|
|
|
|
draw_graph_borders = false,
|
|
|
|
use_xft = true,
|
|
|
|
font = 'Hack:size=12',
|
|
|
|
xftalpha = 1,
|
|
|
|
uppercase = false,
|
|
|
|
own_window_colour = '#000000',
|
|
|
|
--own_window_colour = '#2F2F2F',
|
|
|
|
minimum_width = 640,
|
|
|
|
minimum_height = 0,
|
|
|
|
};
|
2020-07-21 17:08:54 +00:00
|
|
|
|
2020-07-21 17:28:13 +00:00
|
|
|
if dark then
|
2020-07-21 17:08:54 +00:00
|
|
|
conky.config.default_color = '#FFFFFF'
|
|
|
|
conky.config.color1 = 'white'
|
|
|
|
conky.config.color2 = '#FFFFFF'
|
|
|
|
conky.config.color3 = '#8844aa'
|
|
|
|
else
|
|
|
|
conky.config.default_color = '#525564'
|
|
|
|
conky.config.color1 = "#494c5b"
|
|
|
|
conky.config.color2 = "#333333"
|
|
|
|
conky.config.color3 = "#fb006b"
|
|
|
|
end
|
|
|
|
|
2019-09-18 12:09:53 +00:00
|
|
|
conky.text = table.concat({[[
|
2020-10-20 06:04:02 +00:00
|
|
|
${offset 10}${font Quicksand:size=40}${time %H:%M}${alignr}${font Quicksand:size=30}${execi 1800 curl 'wttr.in/falkenstein%20(vogtland)?format=2' | grep -o -P '[+-].*C' }${font}
|
2020-07-21 17:08:54 +00:00
|
|
|
$color3${hr}
|
2020-02-04 12:59:25 +00:00
|
|
|
${alignr}${font Quicksand:size=20}$color2${time %A} ${time %d.%m.%Y}$color
|
2019-09-18 12:09:53 +00:00
|
|
|
]]}, "\n")
|