Add fcitx5 module

This commit is contained in:
Alexander Rosenberg 2023-09-29 11:25:28 -07:00
parent cef428daea
commit ee01830c33
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
static const Block blocks[] = { static const Block blocks[] = {
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
// {"", "dwmblocks-battery", SECONDS(10), 0}, // {"", "dwmblocks-battery", SECONDS(10), 0},
{"", "[ \"$(fcitx5-remote)\" -eq 2 ] && printf '和' || printf '英'", 0, 2},
{"", "dwmblocks-mu4e", SECONDS(15), 0}, {"", "dwmblocks-mu4e", SECONDS(15), 0},
{"", "dwmblocks-volume", 0, 1}, {"", "dwmblocks-volume", 0, 1},
{"", "date +'%a %b %d'", SECONDS(30), 0}, {"", "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. // sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim[] = " "; static char delim[] = " ";
static unsigned int delimLen = 5; static unsigned int delimLen = 2;

View File

@ -1,3 +1,3 @@
#!/usr/bin/env zsh #!/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}" (( "${message_count}" > 0 )) && printf ' %s' "${message_count}"