From 651e13bafdef77db4c81630e73a2dffe4db0b13c Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Thu, 19 May 2022 15:11:29 +0200 Subject: [PATCH] mb-setfont update --- bin/mb-setfont | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/bin/mb-setfont b/bin/mb-setfont index 0724979..df6c92b 100755 --- a/bin/mb-setfont +++ b/bin/mb-setfont @@ -60,6 +60,23 @@ font_menu_sep () { exit 0 fi } +font_conky_single () { + # if -f "$1" + if [[ "$FONT" ]]; then + sd "font .*=.*,$" "font = '${FONTNAME}:size=${FONTSIZE}'," ${1} + else + exit 0 + fi + #fi +} +font_conky_all () { + if [[ "$FONT" ]]; then + CONKYDIR="$HOME/.config/conky" + sd "font .*=.*,$" "font = '${FONTNAME}:size=${FONTSIZE}'," ${CONKYDIR}/*mbcolor.conkyrc + else + exit 0 + fi +} case "$1" in obtitle) @@ -74,6 +91,14 @@ case "$1" in getfont font_menu_sep ;; + conky_single) + getfont + font_conky_single "${2}" + ;; + conky_all) + getfont + font_conky_all + ;; *) : ;;