no spaces between icons and content

This commit is contained in:
Luke Smith 2020-05-25 17:06:24 -04:00
parent 99a7d1dd98
commit c075127aae
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
10 changed files with 12 additions and 15 deletions

View file

@ -26,7 +26,4 @@ case $BLOCK_BUTTON in
6) "$TERMINAL" -e "$EDITOR" "$0" ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac esac
printf '%s %s%s\n' "$(date '+%Y %b %d (%a)')" "$icon" "$(date '+%I:%M%p')" date "+%Y %b %d (%a) $icon%I:%M%p"
#for europeans, use this
#printf '%s %s%s\n' "$(date '+%a %d/%m')" "$icon" "$(date '+%I:%M%p')"

View file

@ -9,4 +9,4 @@ case $BLOCK_BUTTON in
6) "$TERMINAL" -e "$EDITOR" "$0" ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac esac
sensors | awk '/Core 0/ {print "🌡", $3}' sensors | awk '/Core 0/ {print "🌡" $3}'

View file

@ -29,7 +29,7 @@ printprices() { # Print/format all prices
[ -f "$x" ] || break [ -f "$x" ] || break
info="$(cut -d';' -f-2 --output-delimiter=' ' "$x")" info="$(cut -d';' -f-2 --output-delimiter=' ' "$x")"
printf "%s$%0.2f " $info printf "%s$%0.2f " $info
done | sed "s/ $/\n/" done | sed 's/ $/\n/'
} }
[ ! -d "$dir" ] && mkdir -p "$dir" && { getprices; exit ;} [ ! -d "$dir" ] && mkdir -p "$dir" && { getprices; exit ;}

View file

@ -4,7 +4,7 @@
# Show 🌐 if connected to ethernet or ❎ if none. # Show 🌐 if connected to ethernet or ❎ if none.
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) setsid "$TERMINAL" -e nmtui & ;; 1) "$TERMINAL" -e nmtui; pkill -RTMIN+4 dwmblocks ;;
3) notify-send "🌐 Internet module" "\- Click to connect 3) notify-send "🌐 Internet module" "\- Click to connect
📡: no wifi connection 📡: no wifi connection
📶: wifi connection with quality 📶: wifi connection with quality

View file

@ -9,4 +9,4 @@ case $BLOCK_BUTTON in
6) "$TERMINAL" -e "$EDITOR" "$0" ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac esac
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠 %2.2fGiB/%2.2fGiB", ( $3 / 1024), ($2 / 1024))}' free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠%2.2fGiB/%2.2fGiB\n", ( $3 / 1024), ($2 / 1024))}'

View file

@ -14,7 +14,7 @@ transmission-remote -l | grep % |
s/L/🔼/g; s/L/🔼/g;
s/M/🔽/g; s/M/🔽/g;
s/N/✅/g; s/N/✅/g;
s/Z/🌱/g" | awk '{print $2, $1}' | paste -sd ' ' s/Z/🌱/g" | awk '{print $2 $1}' | paste -sd ' '
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) setsid "$TERMINAL" -e tremc & ;; 1) setsid "$TERMINAL" -e tremc & ;;

View file

@ -13,7 +13,7 @@ getforecast() { curl -sf "wttr.in/$LOCATION" > "${XDG_DATA_HOME:-$HOME/.local/sh
# display them with coresponding emojis. # display them with coresponding emojis.
showweather() { printf "%s" "$(sed '16q;d' "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" | showweather() { printf "%s" "$(sed '16q;d' "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" |
grep -wo "[0-9]*%" | sort -rn | sed "s/^/☔/g;1q" | tr -d '\n')" grep -wo "[0-9]*%" | sort -rn | sed "s/^/☔/g;1q" | tr -d '\n')"
sed '13q;d' "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " 🥶",$1 "°","🌞",$2 "°"}' ;} sed '13q;d' "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " 🥶" $1 "°","🌞" $2 "°"}' ;}
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) setsid "$TERMINAL" -e less -Srf "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" & ;; 1) setsid "$TERMINAL" -e less -Srf "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" & ;;