This great blue color for notifications in dwmblocks.

This commit is contained in:
Bartek Stalewski 2021-08-23 12:14:51 +02:00
parent d7bf2ea26d
commit a40c419740
5 changed files with 6 additions and 10 deletions

View File

@ -27,7 +27,7 @@ twoscreen() {
}
home() {
xrandr --output "DisplayPort-${1}" --mode 2560x1440 $(echo "$allposs" | grep -v "\bDisplayPort-${1}" | awk '{print "--output", $1, "--off"}' | paste -sd ' ' -)
xrandr --output "DisplayPort-${1}" --mode 2560x1440 --scale 1.0x1.0 $(echo "$allposs" | grep -v "\bDisplayPort-${1}" | awk '{print "--output", $1, "--off"}' | paste -sd ' ' -)
}
onescreen() {

View File

@ -13,5 +13,5 @@ for battery in /sys/class/power_supply/BAT?*; do
esac
capacity=$(cat "$battery/capacity")
# Will make a warn variable if discharging and low
[ "$capacity" -le 20 ] && printf "^c#161616^^b#fd4285^${status} ${capacity}%%^d^" || printf "${status} ${capacity}%%"
[ "$capacity" -le 20 ] && printf "^c#eeeeee^^b#005577^${status} ${capacity}%%^d^" || printf "${status} ${capacity}%%"
done && exit 0

View File

@ -13,4 +13,4 @@ for i in $(cat ~/.local/share/passwords); do
[ $count -ne 0 ] && export unread=$((unread + count))
fi
done
[ "$unread" -eq 0 ] && printf "\ue0e1 no new mail" || printf "^c#161616^^b#fd4285^\ue0e1 new mail: ${unread}^d^"
[ "$unread" -eq 0 ] && printf "\ue0e1 no new mail" || printf "^c#eeeeee^^b#005577^\ue0e1 new mail: ${unread}^d^"

View File

@ -1,10 +1,6 @@
#!/bin/bash
# Show wifi 📶 and percent strength or 📡 if none.
# Show 🌐 if connected to ethernet or ❎ if none.
# Show 🔒 if a vpn connection is active
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) printf "^c#161616^^b#fd4285^\ue63e no wifi^d^" ;;
down) printf "^c#eeeeee^^b#005577^\ue63e no wifi^d^" ;;
up) printf "\ue63e $(iw dev wlp3s0 info | awk '/ssid/ {print $2}')" ;;
esac

View File

@ -36,7 +36,7 @@ esac
vol="$(pamixer --sink $sink --get-volume)"
[ $(echo $vol | wc -c) -lt 4 ] && svol=" ${vol}%%" || svol="${vol}%%"
[ $(pamixer --sink $sink --get-mute) = true ] && volinfo="^c#161616^^b#fd4285^\ue04f mute^d^" || volinfo="\ue050 ${svol}"
[ $(pamixer --sink $sink --get-mute) = true ] && volinfo="^c#eeeeee^^b#005577^\ue04f mute^d^" || volinfo="\ue050 ${svol}"
device=$(pamixer --list-sources | awk '/Raven/ {print $1}')
[ $(pamixer --source $device --get-mute) = true ] && micinfo="^c#161616^^b#fd4285^\ue02b^d^" || micinfo="\ue02a^d^"
[ $(pamixer --source $device --get-mute) = true ] && micinfo="^c#eeeeee^^b#005577^\ue02b^d^" || micinfo="\ue02a^d^"
printf "${micinfo} ${volinfo}"