From d5dd639145b5294aaae01124caa3feeabc4b6f64 Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Fri, 7 Mar 2025 20:37:07 -0500 Subject: [PATCH] 3/7 --- mode.conf | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ start_conky.sh | 4 +++ 2 files changed, 74 insertions(+) create mode 100644 mode.conf diff --git a/mode.conf b/mode.conf new file mode 100644 index 0000000..525c7ea --- /dev/null +++ b/mode.conf @@ -0,0 +1,70 @@ +-- 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 = 300, + gap_y = 80, + 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 = [[ +${font SourceCodePro-Regular:size=20}${color #cc241d}0 ${color #ebdbb2}--- +${color #cc241d}1 ${color #ebdbb2}--x +${color #cc241d}2 ${color #ebdbb2}-w- +${color #cc241d}3 ${color #ebdbb2}-wx +${color #cc241d}4 ${color #ebdbb2}r-- +${color #cc241d}5 ${color #ebdbb2}r-x +${color #cc241d}6 ${color #ebdbb2}rw- +${color #cc241d}7 ${color #ebdbb2}rwx +]] diff --git a/start_conky.sh b/start_conky.sh index e813b19..f5adf0e 100755 --- a/start_conky.sh +++ b/start_conky.sh @@ -9,6 +9,7 @@ elif [${FIRST_TIME_RUN} == 0 ]; then kill ${CONKY_MEDIA_PROC} kill ${CONKY_PORT_PROC} kill ${CONKY_BATT_PROC} + kill ${CONKY_PERM_PROC} else exit 1 fi @@ -27,4 +28,7 @@ CONKY_PORT_PROC=$! conky -c ${CONFIG_DIR}/battery.conf CONKY_BATT_PROC=$! +conky -c ${CONFIG_DIR}/mode.conf +CONKY_PERM_PROC=$! + FIRST_TIME_RUN=0