minor changes to status
This commit is contained in:
parent
4fb280225e
commit
1d767b3377
|
@ -7,7 +7,6 @@ power_prefix="/sys/class/power_supply/"
|
||||||
[ "$(pgrep -c pulseaudio)" -eq 1 ] && ss="pulse" || ss="alsa"
|
[ "$(pgrep -c pulseaudio)" -eq 1 ] && ss="pulse" || ss="alsa"
|
||||||
|
|
||||||
mod_bspwm () {
|
mod_bspwm () {
|
||||||
set -x
|
|
||||||
used_desk=$(bspc query -D -d .occupied --names | tr '\n' ' ')
|
used_desk=$(bspc query -D -d .occupied --names | tr '\n' ' ')
|
||||||
current_desk=$(bspc query -D -d .focused --names)
|
current_desk=$(bspc query -D -d .focused --names)
|
||||||
final_string=""
|
final_string=""
|
||||||
|
@ -38,7 +37,7 @@ mod_sensors () {
|
||||||
mod_power () {
|
mod_power () {
|
||||||
[ -z "$bat" ] ||
|
[ -z "$bat" ] ||
|
||||||
tr -d '\n' < /sys/class/power_supply/$bat/capacity
|
tr -d '\n' < /sys/class/power_supply/$bat/capacity
|
||||||
sed 's/Charging/↑/g;s/Discharging/↓/g;s/Full/-/g' < /sys/class/power_supply/$bat/status
|
sed 's/Charging/↑/g;s/Not charging/-/g;s/Discharging/↓/g;s/Full/-/g' < /sys/class/power_supply/$bat/status
|
||||||
}
|
}
|
||||||
|
|
||||||
mod_vol () {
|
mod_vol () {
|
||||||
|
|
Loading…
Reference in New Issue