From 44bb9cbdc355369d7b07fec511c2dc53e2366b25 Mon Sep 17 00:00:00 2001 From: Howland Owl Date: Sat, 22 Jul 2017 18:51:49 +0300 Subject: [PATCH] st-aardbei / st fallback --- pickfontrand.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pickfontrand.sh b/pickfontrand.sh index 3bcab85..d89f06e 100755 --- a/pickfontrand.sh +++ b/pickfontrand.sh @@ -2,4 +2,9 @@ font=`fc-list | cut -d: -f2 | sort | uniq | shuf | dmenu -i -l 10` size=`echo what size|dmenu` -st -f "$font-$size" -t "st : $font-$size" $@ +if [[ -f ~/bin/st-aardbei ]]; then + st-aardbei -f "$font-$size" -t "st : $font-$size" $@ +else + st -f "$font-$size" -t "st : $font-$size" $@ +fi +