Merge branch 'main' of git.zander.im:Zander671/dwmblocks

This commit is contained in:
Alexander Rosenberg 2023-07-28 23:49:57 -07:00
commit 76c2d59fcc
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
3 changed files with 15 additions and 2 deletions

View File

@ -42,6 +42,7 @@ uninstall:
${DESTDIR}${PREFIX}/bin/dwmblocks-pulse-listener \ ${DESTDIR}${PREFIX}/bin/dwmblocks-pulse-listener \
${DESTDIR}${PREFIX}/bin/dwmblocks-battery \ ${DESTDIR}${PREFIX}/bin/dwmblocks-battery \
${DESTDIR}${PREFIX}/bin/dwmblocks-network \ ${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 .PHONY: all options clean install uninstall

12
scripts/dwmblocks-fcitx5 Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env zsh
local ime_sym=''
case "$(fcitx5-remote -n)" in
'keyboard-us')
ime_sym=''
;;
'mozc')
ime_sym="和"
;;
esac
printf '󰌌 %s' "${ime_sym}"

View File

@ -6,7 +6,7 @@ if [[ "$(pamixer --get-mute)" = "true" ]]; then
icon='󰸈' icon='󰸈'
elif ((${volume} > 50)); then elif ((${volume} > 50)); then
icon='󰕾' icon='󰕾'
elif ((${volume} > 0)); then elif ((${volume} >= 0)); then
icon='󰖀' icon='󰖀'
else else
icon='' icon=''