darkrc/conky.conf

92 lines
2.7 KiB
Text
Raw Normal View History

local dark = io.open(os.getenv("HOME").."/.dark")
2018-11-19 20:04:18 +00:00
-- vim: set filetype=lua :miv --
conky.config = {
2020-07-21 17:08:54 +00:00
monitor = 1,
double_buffer = true,
update_interval = 1,
alignment = 'bottom_right',
gap_x = 00-1920 --[[100 + 320]],
gap_y = 00 --[[100 + 200]],
own_window = true,
own_window_title = 'conky',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_transparent = true,
own_window_argb_value = 255,
border_inner_margin = 8,
-- background = true,
border_width = 1,
cpu_avg_samples = 2,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'Quicksand:size=14',
minimum_height = 5,
minimum_width = 250,
net_avg_samples = 2,
no_buffers = false,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
stippled_borders = 0,
uppercase = false,
use_spacer = 'none',
show_graph_scale = false,
show_graph_range = false,
2018-11-19 20:04:18 +00:00
}
2020-07-21 17:08:54 +00:00
if dark then
2020-07-21 17:08:54 +00:00
print("starting in dark mode")
conky.config.default_color = '#ffffff'
conky.config.color1 = "#ffffff"
conky.config.color2 = "#aaaaaa"
conky.config.color3 = "#df74b1"
else
print("starting in light mode")
conky.config.default_color = '#525564'
conky.config.color1 = "#494c5b"
conky.config.color2 = "#333333"
conky.config.color3 = "#fb006b"
end
2018-11-19 20:04:18 +00:00
conky.text = [[$color3${time %Y-%m-%d}
$color1${voffset -10}${font Quicksand:size=40}${time %H:%M}$font$color
${color2}Uptime:$color $alignr$uptime
2020-08-21 09:24:07 +00:00
${color2}At:$color $alignr${execi 2 atq | wc -l } Jobs
2018-11-19 20:04:18 +00:00
#
${color3}Stats $hr$color
2020-07-21 17:08:54 +00:00
${color2}ip:$color $alignr${texeci 3 wget http://darkwiiplayer.com/api/ip --no-check-certificate -qO - 2>/dev/null }
2018-11-19 20:04:18 +00:00
${color2}vpn:$color $alignr${execi 2 expressvpn status | grep -Po 'Not connected|(?<=Connected to).*$'}
#
#${color3}Location $hr$color
#${color2}ip:$color $alignr${execi 2 ~/.bin/location}
#
${color3}Ping $hr
${color2}Google: $color$alignr${execi 2 ping google.de -c 1 | grep -Po '(?<=time=).*'}
${color2}Server: $color$alignr${execi 2 ping darkwiiplayer.com -c 1 | grep -Po '(?<=time=).*'}
#
${color3}CPU $hr
$color$cpu%$color2 CPU Usage
$color${cpubar 8}$color
${color2}Frequency:$color $alignr$freq_g GHz
#
${color3}Memory $hr$color
$color$memperc%${color2} RAM Usage
$color${membar 8}$color
$mem / $memmax
${color2}Processes:$color $processes ${color2}Running:$color $running_processes
#
${color3}Storage $hr
${color2}root $alignr$color${fs_used /}/${fs_size /}
$color${fs_bar 8 /}
${color2}data $alignr$color${fs_used /data}/${fs_size /data}
$color${fs_bar 8 /data}
#
${color3}Networking $hr
${color2}Up:$color ${upspeed enp3s0} ${color2} - Down:$color ${downspeed enp3s0}
${font Hack:size=10}$color2$alignc${execi 1000 whoami}@${execi 1000 hostname}
]]