mb-setfont update

master
Daniel Napora 2022-05-19 15:11:29 +02:00
parent 935acf4911
commit 651e13bafd
1 changed files with 25 additions and 0 deletions

View File

@ -60,6 +60,23 @@ font_menu_sep () {
exit 0 exit 0
fi 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 case "$1" in
obtitle) obtitle)
@ -74,6 +91,14 @@ case "$1" in
getfont getfont
font_menu_sep font_menu_sep
;; ;;
conky_single)
getfont
font_conky_single "${2}"
;;
conky_all)
getfont
font_conky_all
;;
*) *)
: :
;; ;;