conky-config/conky.conf

89 lines
2.7 KiB
Plaintext
Raw Permalink Normal View History

2024-07-21 14:03:37 -04:00
-- Conky, a system monitor https://github.com/brndnmtthws/conky
--
-- This configuration file is Lua code. You can write code in here, and it will
-- execute when Conky loads. You can use it to generate your own advanced
-- configurations.
--
-- Try this (remove the `--`):
--
-- print("Loading Conky config")
--
-- For more on Lua, see:
-- https://www.lua.org/pil/contents.html
--
-- Conky Lua API: https://conky.cc/lua
-- Configuration settings: https://conky.cc/config_settings
conky.config = {
2024-07-21 22:31:46 -04:00
alignment = 'top_right',
2024-07-21 14:03:37 -04:00
background = true,
border_width = 2,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'SourceCodePro-Regular:size=12',
gap_x = 60,
gap_y = 60,
minimum_height = 600,
minimum_width = 500,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_wayland = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'override',
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
own_window_transparent = true,
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
xinerama_head = 2,
}
-- Variables: https://conky.cc/variables
conky.text = [[
${color #88C0D0}$nodename
${color #88C0D0}Uptime:$color $uptime
${color #4C566A}$hr
${color #EBCB8B}CPU
2024-07-21 22:31:46 -04:00
${color #EBCB8B}AMD Ryzen 5 3600
${color #EBCB8B}Usage: $cpu% ${cpubar 10}
2024-07-21 14:03:37 -04:00
${color #4C566A}$hr
2024-07-21 22:31:46 -04:00
${color #88C0D0}RAM
${color #88C0D0}Usage: $mem/$memmax - $memperc% ${membar 10}
2024-07-21 14:03:37 -04:00
${color #4C566A}$hr
${color #BF616A}File systems:
2024-07-21 22:31:46 -04:00
/ ${fs_used /}/${fs_size /} ${fs_bar 10 /}
${color #BF616A}/home ${fs_used /home}/${fs_size /home} ${fs_bar 10 /home}
2024-07-21 14:03:37 -04:00
${color #4C566A}$hr
${color #A3BE8C}Networking:
Up:$color ${upspeed} ${color grey} - ${color #A3BE8C} Down:$color ${downspeed}
${color #4C566A}$hr
${if_match "${execi 1 playerctl metadata title}" != ""}
${color #BF616A}
${color #BF616A}${execi 1 playerctl metadata title | awk -v len=56 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }'}
${color #4C566A}by ${color #ECEFF4} ${execi 1 playerctl metadata artist | awk -v len=56 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }'}
${color #4C566A}from ${color #ECEFF4} ${execi 1 playerctl metadata album}
${else}
${color #4C566A}Not Playing
${endif}
]]