move more to font-awesome

This commit is contained in:
Alexander Bocken 2023-10-13 12:05:40 +02:00
parent aad4a1c87e
commit d24065a7a5
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
4 changed files with 9 additions and 25 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
num=$(find ~/.local/share/mail/*/INBOX/new -type f | wc -l)
[ $num != 0 ] && printf "📬%s" "$num"
[ $num != 0 ] && printf "%s" "$num"
printf '\n'

View File

@ -1,16 +0,0 @@
#!/bin/sh
# i3blocks mail module.
# Displays number of unread mail and an loading icon if updating.
# When clicked, brings up `neomutt`.
case $BLOCK_BUTTON in
1) "$TERMINAL" -e neomutt ;;
2) setsid mailsync >/dev/null & ;;
3) pgrep -x dunst >/dev/null && notify-send "📬 Mail module" "\- Shows unread mail
- Shows 🔃 if syncing mail
- Left click opens neomutt
- Middle click syncs mail" ;;
esac
echo "$(du -a ~/.local/share/mail/*/INBOX/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon_$USER 2>/dev/null)"

View File

@ -1,6 +1,6 @@
#!/bin/sh
num="$(newsboat -x print-unread | cut -f1 -d ' ' )"
if ! pgrep newsboat > /dev/null ; then
[ "$num" -gt 0 ] 2>/dev/null && printf "📰%s" "$num"
[ "$num" -gt 0 ] 2>/dev/null && printf "%s" "$num"
printf '\n'
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Prints the current volume or 🔇 if muted.
# Prints the current volume or if muted.
case $BLOCK_BUTTON in
1) setsid -w -f "$TERMINAL" -e pulsemixer; pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}" ;;
@ -15,8 +15,8 @@ esac
vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
# If muted, print 🔇 and exit.
[ "$vol" != "${vol%\[MUTED\]}" ] && echo 🔇 && exit
# If muted, print and exit.
[ "$vol" != "${vol%\[MUTED\]}" ] && echo && exit
vol="${vol#Volume: }"
@ -30,10 +30,10 @@ split() {
vol="$(printf "%.0f" "$(split "$vol" ".")")"
case 1 in
$((vol >= 70)) ) icon="🔊" ;;
$((vol >= 30)) ) icon="🔉" ;;
$((vol >= 1)) ) icon="🔈" ;;
* ) echo 🔇 && exit ;;
$((vol >= 70)) ) icon="" ;;
$((vol >= 30)) ) icon="" ;;
$((vol >= 1)) ) icon="" ;;
* ) echo && exit ;;
esac
echo "$icon$vol%"