10321a0d21
remove .local/bin/dwmbar add .local/bin/statusbar scripts directory update .profile ($PATH) update .xprofile (dwmblocks at startup)
26 lines
618 B
Bash
Executable File
26 lines
618 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
######################################################################
|
|
# @author : swytch (swytch@$HOSTNAME)
|
|
# @file : sb-volume
|
|
# @license : MIT
|
|
# @created : Saturday Feb 13, 2021 17:51:16 CET
|
|
#
|
|
# @description : volume block for dwmblocks
|
|
######################################################################
|
|
|
|
[ "1" = $(pulsemixer --get-mute) ] && echo "婢 ---" && exit
|
|
|
|
vol="$(pulsemixer --get-volume | awk -F " " '{ printf "%d", $1 }')"
|
|
|
|
if [ "$vol" -gt "70" ]; then
|
|
icon="墳"
|
|
elif [ "$vol" -lt "30" ]; then
|
|
icon="奄"
|
|
else
|
|
icon="奔"
|
|
fi
|
|
|
|
printf "%s %3d%%" $icon $vol
|
|
|