This commit is contained in:
Liam Waldron 2024-11-25 16:17:32 -05:00
commit 7fcab3fe2e
9 changed files with 531 additions and 0 deletions

63
battery.conf Normal file
View File

@ -0,0 +1,63 @@
-- 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 = {
alignment = 'bottom_left',
background = true,
border_inner_margin = 10,
border_width = 3,
cpu_avg_samples = 2,
default_color = '#689d6a',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = true,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'SourceCodePro-Regular:size=80',
gap_x = 50,
gap_y = 50,
minimum_height = 50,
minimum_width = 50,
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 = false,
own_window_colour = '282828',
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 #458588}${battery_percent BAT1}%
]]

63
clock.conf Normal file
View File

@ -0,0 +1,63 @@
-- 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 = {
alignment = 'bottom_right',
background = true,
border_inner_margin = 10,
border_width = 3,
cpu_avg_samples = 2,
default_color = '#689d6a',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = true,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'SourceCodePro-Medium:size=75',
gap_x = 50,
gap_y = 50,
minimum_height = 1,
minimum_width = 1,
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 = false,
own_window_colour = '282828',
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 #d79921}${time %R}
]]

1
conky.conf Symbolic link
View File

@ -0,0 +1 @@
conky.conf.gruvbox

90
conky.conf.gruvbox Normal file
View File

@ -0,0 +1,90 @@
-- 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 = {
alignment = 'top_right',
background = true,
border_inner_margin = 10,
border_width = 3,
cpu_avg_samples = 2,
default_color = '#689d6a',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = true,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'SourceCodePro-Regular:size=12',
gap_x = 60,
gap_y = 100,
minimum_height = 400,
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 = false,
own_window_colour = '282828',
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 #458588}$nodename
${color #458588}Uptime:${color #ebdbb2} $uptime
${color #504945}$hr
${color #d79921}CPU
${color #d79921}AMD Ryzen 7 5800U
${color #d79921}Usage: $cpu% ${cpubar 10}
${color #504945}$hr
${color #458588}RAM
${color #458588}Usage: $mem/$memmax - $memperc% ${membar 10}
${color #504945}$hr
${color #cc241d}File systems:
/ ${fs_used /}/${fs_size /} ${fs_bar 10 /}
${color #504945}$hr
${color #98971a}Networking:
Up:${color #ebdbb2} ${upspeed} ${color grey} - ${color #98971a} Down:${color #ebdbb2} ${downspeed}
${color #504945}$hr
${if_match "${execi 1 playerctl metadata title}" != ""}
${color #cc241d}Now Playing
${color #cc241d}${execi 1 playerctl metadata title | awk -v len=56 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }'}
${color #cc241d}by ${color #ebdbb2} ${execi 1 playerctl metadata artist | awk -v len=56 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }'}
${color #cc241d}from ${color #ebdbb2} ${execi 1 playerctl metadata album}
${else}
${color #928374}Not Playing
${endif}
${color #504945}$hr
${color #ebdbb2}${execi 1 cat /tmp/fortune | cowsay -f moose}
]]

87
conky.conf.nord Normal file
View File

@ -0,0 +1,87 @@
-- 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 = {
alignment = 'top_right',
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
${color #EBCB8B}AMD Ryzen 7 5800U
${color #EBCB8B}Usage: $cpu% ${cpubar 10}
${color #4C566A}$hr
${color #88C0D0}RAM
${color #88C0D0}Usage: $mem/$memmax - $memperc% ${membar 10}
${color #4C566A}$hr
${color #BF616A}File systems:
/ ${fs_used /}/${fs_size /} ${fs_bar 10 /}
${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}
]]

71
mediaplayer.conf Normal file
View File

@ -0,0 +1,71 @@
-- 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 = {
alignment = 'top_right',
background = true,
border_inner_margin = 10,
border_width = 3,
cpu_avg_samples = 2,
default_color = '#689d6a',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = true,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'SourceCodePro-Regular:size=12',
gap_x = 50,
gap_y = 80,
minimum_height = 10,
minimum_width = 200,
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 = false,
own_window_colour = '282828',
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 = [[
${if_match "${execi 1 playerctl metadata title}" != ""}
${color #cc241d}Now Playing
${color #cc241d}${font SourceCodePro-Regular:size=35}${execi 1 playerctl metadata title | awk -v len=56 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }'}
${color #cc241d}${font SourceCodePro-Regular:size=18}by ${color #ebdbb2} ${execi 1 playerctl metadata artist | awk -v len=56 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }'}
${color #cc241d}from ${color #ebdbb2} ${execi 1 playerctl metadata album}
${else}
${color #928374}Not Playing
${endif}
]]

78
ports.conf Normal file
View File

@ -0,0 +1,78 @@
-- 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 = {
alignment = 'top_left',
background = true,
border_inner_margin = 10,
border_width = 3,
cpu_avg_samples = 2,
default_color = '#689d6a',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = true,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'SourceCodePro-Regular:size=12',
gap_x = 50,
gap_y = 80,
minimum_height = 350,
minimum_width = 200,
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 = false,
own_window_colour = '282828',
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 #458588}Common Network Ports
${color #504945}$hr
${color #cc241d}20 ${color #ebdbb2}FTP data transfer
${color #cc241d}21 ${color #ebdbb2}FTP control
${color #cc241d}22 ${color #ebdbb2}SSH
${color #cc241d}23 ${color #ebdbb2}Telnet
${color #cc241d}25 ${color #ebdbb2}SMTP
${color #cc241d}53 ${color #ebdbb2}DNS service
${color #cc241d}80 ${color #ebdbb2}HTTP
${color #cc241d}110 ${color #ebdbb2}POP3
${color #cc241d}119 ${color #ebdbb2}NNTP
${color #cc241d}123 ${color #ebdbb2}NTP
${color #cc241d}143 ${color #ebdbb2}IMAP
${color #cc241d}161 ${color #ebdbb2}SNMP
${color #cc241d}194 ${color #ebdbb2}IRC
${color #cc241d}443 ${color #ebdbb2}HTTPS
]]

48
scripts/conky-draw_bg.lua Executable file
View File

@ -0,0 +1,48 @@
--[[ Background by londonali1010 (2009)
This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre draw_bg
Changelog:
+ v1.0 -- Original release (07.10.2009)
]]
-- Change these settings to affect your background.
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
corner_r=11
-- Set the colour and transparency (alpha) of your background.
bg_colour=0x131416
bg_alpha=0.80
require 'cairo'
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h-corner_r)
cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
cairo_line_to(cr,corner_r,h)
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
end

30
start_conky.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/bash
FIRST_TIME_RUN=1
if [ ${FIRST_TIME_RUN} == 1 ]; then
killall -9 conky
elif [${FIRST_TIME_RUN} == 0 ]; then
kill ${CONKY_CLOCK_PROC}
kill ${CONKY_MEDIA_PROC}
kill ${CONKY_PORT_PROC}
kill ${CONKY_BATT_PROC}
else
exit 1
fi
CONFIG_DIR="${HOME}/.config/conky"
conky -c ${CONFIG_DIR}/clock.conf
CONKY_CLOCK_PROC=$!
conky -c ${CONFIG_DIR}/mediaplayer.conf
CONKY_MEDIA_PROC=$!
conky -c ${CONFIG_DIR}/ports.conf
CONKY_PORT_PROC=$!
conky -c ${CONFIG_DIR}/battery.conf
CONKY_BATT_PROC=$!
FIRST_TIME_RUN=0