mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 22:19:45 +00:00
Merge pull request #6 from thytom/spacingfixed
Spacing fixed in many modules.
This commit is contained in:
commit
ffc3c2ea0a
3 changed files with 10 additions and 10 deletions
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
CHARGING_ICON=' '
|
CHARGING_ICON=' '
|
||||||
WARNING_ICON=' '
|
WARNING_ICON=' '
|
||||||
BATTERY_FULL_ICON=' '
|
BATTERY_FULL_ICON=''
|
||||||
BATTERY_2_ICON=' '
|
BATTERY_2_ICON=''
|
||||||
BATTERY_3_ICON=' '
|
BATTERY_3_ICON=''
|
||||||
BATTERY_4_ICON=' '
|
BATTERY_4_ICON=''
|
||||||
|
|
||||||
FULL_AT=98
|
FULL_AT=98
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ get_battery()
|
||||||
BAT_ICON=$BATTERY_2_ICON
|
BAT_ICON=$BATTERY_2_ICON
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "$ICON $BAT_ICON $capacity%"
|
echo "$ICON$BAT_ICON $capacity%"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_battery
|
get_battery
|
||||||
|
|
|
@ -26,7 +26,7 @@ get_load()
|
||||||
cpu_last=("${cpu_now[@]}")
|
cpu_last=("${cpu_now[@]}")
|
||||||
cpu_last_sum=$cpu_sum
|
cpu_last_sum=$cpu_sum
|
||||||
|
|
||||||
echo "$PREFIX$cpu_usage%"
|
echo "$PREFIX $cpu_usage%"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_load
|
get_load
|
||||||
|
|
|
@ -5,20 +5,20 @@ PREFIX_PAUSE=' '
|
||||||
|
|
||||||
get_mpd()
|
get_mpd()
|
||||||
{
|
{
|
||||||
current_song=$(mpc current)
|
current_song="$(mpc current)"
|
||||||
|
|
||||||
if [[ "$current_song" = "" ]]; then
|
if [[ "$current_song" = "" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
playpause=$(mpc | awk '/\[.*]/{split($0, a, " "); print a[1]}')
|
playpause=$(mpc | awk '/\[.*]/{split($0, a, " "); print a[1]}')
|
||||||
if [[ "$playpause" = "[playing]" ]]; then
|
if [[ "$playpause" = "[playing]" ]]; then
|
||||||
current_song=$PREFIX_PLAY$current_song
|
current_song="$PREFIX_PLAY $current_song"
|
||||||
elif [[ "$playpause" = "[paused]" ]]; then
|
elif [[ "$playpause" = "[paused]" ]]; then
|
||||||
current_song=$PREFIX_PAUSE$current_song
|
current_song="$PREFIX_PAUSE $current_song"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $current_song
|
echo "$current_song"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_mpd
|
get_mpd
|
||||||
|
|
Loading…
Reference in a new issue