Currently I’m migrating to Wayland (well, already migrated but slowly turning it into how I like), so converting my Polybar config into Waybar doesn’t always work the way I interpret. I mostly managed to converted it but I have a problem with my custom scripts. This is about my simple Japanese day script.
This is the script and how I added it to Polybar:
#!/bin/bash
LANG=ja_JP.UTF-8
japanese_day=$(date +%a)
echo "%{T5}$japanese_day%{T-}"
and the Polybar part
[module/datejp]
type = custom/script
exec = /home/mb/.config/polybar/scripts/jpdate.sh
label = %output%
T5 basically calls IPAGothic font from the font list of Polybar config.
However when I try to add it to Waybar, it doesn’t work. Probably I made a mistake or doesn’t managed made it in correct syntax, not sure.
"custom/jpdate": {
"exec": "/home/mb/.config/polybar/scripts/jpdate.sh",
"interval": 60,
"format": "{}",
"tooltip": false,
"foreground": "#01f2d1",
"font": "IPAGothic 10"
}
So, what can I do to make it work?
You must log in or register to comment.