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 + ;; *) : ;;