From a28859d1f20e5905a7ceaa3ebfbae7df4f39e57a Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sun, 28 May 2023 10:50:45 -0700 Subject: [PATCH 1/3] Added dwmblocks-fcitx5 --- scripts/dwmblocks-fcitx5 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/dwmblocks-fcitx5 diff --git a/scripts/dwmblocks-fcitx5 b/scripts/dwmblocks-fcitx5 new file mode 100755 index 0000000..2f2f3e8 --- /dev/null +++ b/scripts/dwmblocks-fcitx5 @@ -0,0 +1,12 @@ +#!/usr/bin/env zsh + +local ime_sym='?' +case "$(fcitx5-remote -n)" in + 'keyboard-us') + ime_sym='E' + ;; + 'mozc') + ime_sym="和" + ;; +esac +printf '󰌌 %s' "${ime_sym}" From def7285b7345cc82f0200edead99f4160f569c11 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sun, 28 May 2023 10:56:08 -0700 Subject: [PATCH 2/3] Ensure dwmblocks-fcitx5 gets uninstalled in Makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb28005..4347d03 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,7 @@ uninstall: ${DESTDIR}${PREFIX}/bin/dwmblocks-pulse-listener \ ${DESTDIR}${PREFIX}/bin/dwmblocks-battery \ ${DESTDIR}${PREFIX}/bin/dwmblocks-network \ - ${DESTDIR}${PREFIX}/bin/dwmblocks-volume + ${DESTDIR}${PREFIX}/bin/dwmblocks-volume \ + ${DESTDIR}${PREFIX}/bin/dwmblocks-fcitx5 .PHONY: all options clean install uninstall From ca5b3e68ba0a42bbca664da0ffee3f059e845247 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 7 Jun 2023 15:30:14 -0700 Subject: [PATCH 3/3] Fix dwmblocks-volume --- scripts/dwmblocks-volume | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dwmblocks-volume b/scripts/dwmblocks-volume index c1f7fed..7f0cd10 100755 --- a/scripts/dwmblocks-volume +++ b/scripts/dwmblocks-volume @@ -6,7 +6,7 @@ if [[ "$(pamixer --get-mute)" = "true" ]]; then icon='󰸈' elif ((${volume} > 50)); then icon='󰕾' -elif ((${volume} > 0)); then +elif ((${volume} >= 0)); then icon='󰖀' else icon='?'