From aa2feb3462913e93f848a29a7acdfacebfbc23f4 Mon Sep 17 00:00:00 2001 From: javalsai Date: Wed, 4 Feb 2026 22:33:17 +0100 Subject: [PATCH 1/2] fix(cfg): string.opts* not applying to user (#110) --- src/ui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui.c b/src/ui.c index 7b8d912..53c6dba 100644 --- a/src/ui.c +++ b/src/ui.c @@ -472,8 +472,9 @@ void print_user(struct user user, bool multiple) { toprint += get_render_pos_offset(&of_session, maxlen); size_t printlen = utf8seekn(toprint, maxlen) - toprint; - printf("\r\x1b[%dC< \x1b[%sm%.*s\x1b[%sm >", box_start.x + VALUES_COL - 1, - user_color, (int)printlen, toprint, g_config->colors.fg); + printf("\r\x1b[%dC%s\x1b[%sm%.*s\x1b[%sm%s", box_start.x + VALUES_COL - 1, + g_config->strings.opts_pre, user_color, (int)printlen, toprint, + g_config->colors.fg, g_config->strings.opts_post); } else { toprint += get_render_pos_offset(&of_user, VALUE_MAXLEN); size_t printlen = utf8seekn(toprint, VALUE_MAXLEN) - toprint; From a84d83ab2945c34fa4be17bbbb3d2f4ab1645e03 Mon Sep 17 00:00:00 2001 From: Toria Date: Wed, 4 Feb 2026 23:35:01 +0000 Subject: [PATCH 2/2] Add catppuccin to lidm themes! (#109) * Add catppuccin to lidm themes! Signed-off-by: Toria * Push basic theme info, and astylised header - just for fun! Signed-off-by: Toria * Swap green and blue for entry and username! Signed-off-by: Toria --------- Signed-off-by: Toria --- themes/catppuccin-frappe.ini | 24 ++++++++++++++++++++++ themes/catppuccin-latte.ini | 24 ++++++++++++++++++++++ themes/catppuccin-macchiato.ini | 24 ++++++++++++++++++++++ themes/catppuccin-mocha.ini | 24 ++++++++++++++++++++++ themes/catppuccin.tera | 35 +++++++++++++++++++++++++++++++++ 5 files changed, 131 insertions(+) create mode 100644 themes/catppuccin-frappe.ini create mode 100644 themes/catppuccin-latte.ini create mode 100644 themes/catppuccin-macchiato.ini create mode 100644 themes/catppuccin-mocha.ini create mode 100644 themes/catppuccin.tera diff --git a/themes/catppuccin-frappe.ini b/themes/catppuccin-frappe.ini new file mode 100644 index 0000000..36cacf1 --- /dev/null +++ b/themes/catppuccin-frappe.ini @@ -0,0 +1,24 @@ +############################################## +# # +# Catppuccin Theme # +# # +############################################## + +# Catppuccin Frappé +# This theme was created by: Catppuccin Org! <3 + +[colors] +bg = "23;24;25;48;2;48;52;70" +fg = "22;23;24;25;29;38;2;198;208;245" +err = "1;4;23;24;25;38;2;231;130;132" +s_wayland = "3;22;24;25;38;2;202;158;230" +s_xorg = "3;22;24;25;38;2;202;158;230" +s_shell = "3;22;24;25;38;2;244;184;228" +e_hostname = "1;3;24;25;29;38;2;242;213;207" +e_date = "3;22;24;25;29;38;2;165;173;206" +e_box = "1;23;24;25;29;38;2;115;121;148" +e_header = "1;3;24;25;29;38;2;239;159;118" +e_user = "3;22;24;25;29;38;2;140;170;238" +e_passwd = "1;23;24;25;29;38;2;166;209;137" +e_badpasswd = "1;9;23;24;25;38;2;231;130;132" +e_key = "22;23;24;25;38;2;129;200;190" diff --git a/themes/catppuccin-latte.ini b/themes/catppuccin-latte.ini new file mode 100644 index 0000000..79a1faf --- /dev/null +++ b/themes/catppuccin-latte.ini @@ -0,0 +1,24 @@ +############################################## +# # +# Catppuccin Theme # +# # +############################################## + +# Catppuccin Latte +# This theme was created by: Catppuccin Org! <3 + +[colors] +bg = "23;24;25;48;2;239;241;245" +fg = "22;23;24;25;29;38;2;76;79;105" +err = "1;4;23;24;25;38;2;210;15;57" +s_wayland = "3;22;24;25;38;2;136;57;239" +s_xorg = "3;22;24;25;38;2;136;57;239" +s_shell = "3;22;24;25;38;2;234;118;203" +e_hostname = "1;3;24;25;29;38;2;220;138;120" +e_date = "3;22;24;25;29;38;2;108;111;133" +e_box = "1;23;24;25;29;38;2;156;160;176" +e_header = "1;3;24;25;29;38;2;254;100;11" +e_user = "3;22;24;25;29;38;2;30;102;245" +e_passwd = "1;23;24;25;29;38;2;64;160;43" +e_badpasswd = "1;9;23;24;25;38;2;210;15;57" +e_key = "22;23;24;25;38;2;23;146;153" diff --git a/themes/catppuccin-macchiato.ini b/themes/catppuccin-macchiato.ini new file mode 100644 index 0000000..6e3b210 --- /dev/null +++ b/themes/catppuccin-macchiato.ini @@ -0,0 +1,24 @@ +############################################## +# # +# Catppuccin Theme # +# # +############################################## + +# Catppuccin Macchiato +# This theme was created by: Catppuccin Org! <3 + +[colors] +bg = "23;24;25;48;2;36;39;58" +fg = "22;23;24;25;29;38;2;202;211;245" +err = "1;4;23;24;25;38;2;237;135;150" +s_wayland = "3;22;24;25;38;2;198;160;246" +s_xorg = "3;22;24;25;38;2;198;160;246" +s_shell = "3;22;24;25;38;2;245;189;230" +e_hostname = "1;3;24;25;29;38;2;244;219;214" +e_date = "3;22;24;25;29;38;2;165;173;203" +e_box = "1;23;24;25;29;38;2;110;115;141" +e_header = "1;3;24;25;29;38;2;245;169;127" +e_user = "3;22;24;25;29;38;2;138;173;244" +e_passwd = "1;23;24;25;29;38;2;166;218;149" +e_badpasswd = "1;9;23;24;25;38;2;237;135;150" +e_key = "22;23;24;25;38;2;139;213;202" diff --git a/themes/catppuccin-mocha.ini b/themes/catppuccin-mocha.ini new file mode 100644 index 0000000..2805a6c --- /dev/null +++ b/themes/catppuccin-mocha.ini @@ -0,0 +1,24 @@ +############################################## +# # +# Catppuccin Theme # +# # +############################################## + +# Catppuccin Mocha +# This theme was created by: Catppuccin Org! <3 + +[colors] +bg = "23;24;25;48;2;30;30;46" +fg = "22;23;24;25;29;38;2;205;214;244" +err = "1;4;23;24;25;38;2;243;139;168" +s_wayland = "3;22;24;25;38;2;203;166;247" +s_xorg = "3;22;24;25;38;2;203;166;247" +s_shell = "3;22;24;25;38;2;245;194;231" +e_hostname = "1;3;24;25;29;38;2;245;224;220" +e_date = "3;22;24;25;29;38;2;166;173;200" +e_box = "1;23;24;25;29;38;2;108;112;134" +e_header = "1;3;24;25;29;38;2;250;179;135" +e_user = "3;22;24;25;29;38;2;137;180;250" +e_passwd = "1;23;24;25;29;38;2;166;227;161" +e_badpasswd = "1;9;23;24;25;38;2;243;139;168" +e_key = "22;23;24;25;38;2;148;226;213" diff --git a/themes/catppuccin.tera b/themes/catppuccin.tera new file mode 100644 index 0000000..c277d73 --- /dev/null +++ b/themes/catppuccin.tera @@ -0,0 +1,35 @@ +--- +whiskers: + version: ^2.5.1 + matrix: + - flavor + filename: catppuccin-{{ flavor.identifier }}.ini +--- +{%- macro rgb(col) -%} +2;{{ col.rgb.r }};{{ col.rgb.g }};{{ col.rgb.b }} +{%- endmacro rgb -%} + +############################################## +# # +# Catppuccin Theme # +# # +############################################## + +# Catppuccin {{flavor.name}} +# This theme was created by: Catppuccin Org! <3 + +[colors] +bg = "23;24;25;48;{{ self::rgb(col=base) }}" +fg = "22;23;24;25;29;38;{{ self::rgb(col=text) }}" +err = "1;4;23;24;25;38;{{ self::rgb(col=red) }}" +s_wayland = "3;22;24;25;38;{{ self::rgb(col=mauve) }}" +s_xorg = "3;22;24;25;38;{{ self::rgb(col=mauve) }}" +s_shell = "3;22;24;25;38;{{ self::rgb(col=pink) }}" +e_hostname = "1;3;24;25;29;38;{{ self::rgb(col=rosewater) }}" +e_date = "3;22;24;25;29;38;{{ self::rgb(col=subtext0) }}" +e_box = "1;23;24;25;29;38;{{ self::rgb(col=overlay0) }}" +e_header = "1;3;24;25;29;38;{{ self::rgb(col=peach) }}" +e_user = "3;22;24;25;29;38;{{ self::rgb(col=blue) }}" +e_passwd = "1;23;24;25;29;38;{{ self::rgb(col=green) }}" +e_badpasswd = "1;9;23;24;25;38;{{ self::rgb(col=red) }}" +e_key = "22;23;24;25;38;{{ self::rgb(col=teal) }}"