dots-of-war/files/scripts/lemonbar/like_polybar.sh

21 lines
520 B
Bash
Raw Normal View History

2020-10-30 22:02:38 +02:00
#! /bin/sh
2020-06-21 12:41:26 +02:00
2020-10-30 22:02:38 +02:00
pkill -9 lemonbar
2020-06-21 12:41:26 +02:00
datetime() {
2020-10-30 22:02:38 +02:00
datetime="$(date "+%H:%M | %a, %d.%m.%y")"
2020-06-21 12:41:26 +02:00
#echo -e -n "\uf073 ${datetime}"
#echo -e -n " ${datetime}"
echo -e -n "${datetime}"
}
output() {
while true; do
echo -e -n "%{l}%{l}%{r}\ue0b0 $(datetime)%{r}"
2020-10-30 22:02:38 +02:00
sleep "0.1s"
done
2020-06-21 12:41:26 +02:00
}
output | lemonbar -f "Roboto:size=10" -f "Font Awesome:size=10" -f "Iosevka Nerd Font" -B "#282828" -g "2532x30+14+7" &
#xmonad-log | lemonbar -f "Roboto:size=10" -f "Font Awesome:size=10" -B "#282828" -g "500x30+14+7"