Add fcitx5 module
This commit is contained in:
		| @ -4,6 +4,7 @@ | ||||
| static const Block blocks[] = { | ||||
|     /*Icon*/    /*Command*/     /*Update Interval*/ /*Update Signal*/ | ||||
|     // {"", "dwmblocks-battery", SECONDS(10), 0}, | ||||
|     {"", "[ \"$(fcitx5-remote)\" -eq 2 ] && printf '和' || printf '英'", 0, 2}, | ||||
|     {"", "dwmblocks-mu4e", SECONDS(15), 0}, | ||||
|     {"", "dwmblocks-volume", 0, 1}, | ||||
|     {" ", "date +'%a %b %d'", SECONDS(30), 0}, | ||||
| @ -20,4 +21,4 @@ static const ThreadCallback thread_callbacks[] = { | ||||
|  | ||||
| // sets delimeter between status commands. NULL character ('\0') means no delimeter. | ||||
| static char delim[] = "  "; | ||||
| static unsigned int delimLen = 5; | ||||
| static unsigned int delimLen = 2; | ||||
|  | ||||
| @ -1,3 +1,3 @@ | ||||
| #!/usr/bin/env zsh | ||||
| let message_count="$(mu find flag:unread AND maildir:/protonmail/Inbox | wc -l)" | ||||
| let message_count="$(mu find flag:unread AND maildir:/protonmail/Inbox 2>/dev/null | wc -l)" | ||||
| (( "${message_count}" > 0 )) && printf '  %s' "${message_count}" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user