move volume to the right, fix transmission path

This commit is contained in:
Enrico Fasoli 2015-08-28 15:54:38 +00:00
parent a7401c2423
commit 82be1731df
2 changed files with 4 additions and 5 deletions

View File

@ -117,7 +117,7 @@
transmission = { transmission = {
enable = true; enable = true;
settings = { settings = {
download-dir = "/mnt/Dati/Downloads/"; download-dir = "/mnt/Dati/Download/";
}; };
}; };

View File

@ -26,13 +26,12 @@ getVolume() {
COLOR=$GREY COLOR=$GREY
fi fi
VOLUME=$(spark $VOLUME 0 100 | tail -n 1 | cut -b1-3) VOLUME=$(spark $VOLUME 0 100 | tail -n 1 | cut -b1-3)
echo -n "$(separator) %{F$COLOR}$VOLUME $(separator)" echo -n "%{F$COLOR}$VOLUME"
} }
getMPD(){ getMPD(){
echo -n "%{F$BLUE}♫ "
if [ "$(mpc | wc -l)" -gt 1 ]; then if [ "$(mpc | wc -l)" -gt 1 ]; then
echo -n "%{F$BROWN}$(mpc | cut -d$'\n' -f1) %{F$BLUE}♫ %{F$GREY}$(mpc | cut -d$'\n' -f2 | cut -d ' ' -f1,2,4)" echo -n "%{F$BLUE}♫ %{F$BROWN}$(mpc | cut -d$'\n' -f1) %{F$BLUE}♫ %{F$GREY}$(mpc | cut -d$'\n' -f2 | cut -d ' ' -f1,2,4)"
fi fi
} }
@ -69,7 +68,7 @@ getMEM(){
buildBar () { buildBar () {
while true while true
do do
echo " $(getVolume) $(getMPD) %{c}$(buildClock) %{r} $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) " echo " $(getMPD) %{c}$(buildClock) %{r} $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) "
sleep 1 sleep 1
done done
} }