darkrc/conky/general.lua

42 lines
1.8 KiB
Lua
Raw Normal View History

2020-11-24 09:35:29 +00:00
return [[$color3${time %Y-%m-%d}
$color1${voffset -10}${font Quicksand:size=40}${time %H:%M}$font$color
${color2}Uptime:$color $alignr$uptime
2020-11-30 08:27:30 +00:00
${color2}At Queue:$color $alignr${execi 2 atq | wc -l } Jobs
2021-01-07 07:51:09 +00:00
${color2}Due today:$color $alignr${execi 5 task "due <= eod +PENDING" export | luajit -e 'print(#require"cjson".decode(io.read("a")))' } Tasks
${color2}Due this week:$color $alignr${execi 5 task "due <= eow +PENDING" export | luajit -e 'print(#require"cjson".decode(io.read("a")))' } Tasks
2020-11-24 09:35:29 +00:00
#
${color3}Stats $hr$color
${color2}ip:$color $alignr${texeci 3 wget http://darkwiiplayer.com/api/ip --no-check-certificate -qO - 2>/dev/null }
${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
2022-01-31 20:26:35 +00:00
${color2}Google: $color$alignr${execi 2 timeout 1 ping google.de -c 1 | grep -Po '(?<=time=).*'}
${color2}Server: $color$alignr${execi 2 timeout 1 ping darkwiiplayer.com -c 1 | grep -Po '(?<=time=).*'}
2020-11-24 09:35:29 +00:00
#
${color3}CPU $hr
$color$cpu%$color2 CPU Usage
2022-09-13 11:34:05 +00:00
$color${cpubar 4}$color
2020-11-24 09:35:29 +00:00
${color2}Frequency:$color $alignr$freq_g GHz
#
${color3}Memory $hr$color
$color$memperc%${color2} RAM Usage
2022-09-13 11:34:05 +00:00
$color${membar 4}$color
2020-11-24 09:35:29 +00:00
$mem / $memmax
${color2}Processes:$color $processes ${color2}Running:$color $running_processes
#
${color3}Storage $hr
${color2}root $alignr$color${fs_used /}/${fs_size /}
2022-09-13 11:34:05 +00:00
$color${fs_bar 4 /}
${color2}home $alignr$color${fs_used /home}/${fs_size /home}
$color${fs_bar 4 /home}
2020-11-24 09:35:29 +00:00
${color2}data $alignr$color${fs_used /data}/${fs_size /data}
2022-09-13 11:34:05 +00:00
$color${fs_bar 4 /data}
2020-11-24 09:35:29 +00:00
#
${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}
]]