dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 9040a6c6ce1fe7be2ababba96b8ed26e00cd4a76
parent 31db6f573b36a2453f93136c04d1648de89e851b
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon,  9 Mar 2020 19:15:40 -0700

Enable kanji of the day in sway bar

Diffstat:
M.config/sway/custom_statusbar | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/.config/sway/custom_statusbar b/.config/sway/custom_statusbar @@ -1,12 +1,17 @@ #!/bin/sh -ibus=$(ibus engine 2> /dev/null) -time=$(date +"%a %Y-%m-%d %k:%M") +# Kanji of the day. +kotd="$(kotd) ⋯ " + +# Day of week in Japanese. +time=$(LC_TIME=ja_JP.UTF-8 date +"%Y-%m-%d %k:%M (%a)") +# Current ibus input method. +ibus=$(ibus engine 2> /dev/null) if [ "${ibus}" = "mozc-jp" ]; then ibus="JA" else ibus="EN" fi -echo "${time} ⋯ ${ibus}" +echo "${kotd}${time} ⋯ ${ibus}"