From 82be1731dff19601dbc233ab2093309bc531b7ae Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Fri, 28 Aug 2015 15:54:38 +0000 Subject: [PATCH] move volume to the right, fix transmission path --- configuration.nix | 2 +- lemonbar.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index 8300a74..4553ce5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -117,7 +117,7 @@ transmission = { enable = true; settings = { - download-dir = "/mnt/Dati/Downloads/"; + download-dir = "/mnt/Dati/Download/"; }; }; diff --git a/lemonbar.sh b/lemonbar.sh index 4b03cc2..6c9149c 100755 --- a/lemonbar.sh +++ b/lemonbar.sh @@ -26,13 +26,12 @@ getVolume() { COLOR=$GREY fi VOLUME=$(spark $VOLUME 0 100 | tail -n 1 | cut -b1-3) - echo -n "$(separator) %{F$COLOR}$VOLUME $(separator)" + echo -n "%{F$COLOR}$VOLUME" } getMPD(){ - echo -n "%{F$BLUE}♫ " 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 } @@ -69,7 +68,7 @@ getMEM(){ buildBar () { while true 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 done }