commit a5cb61618e6fc51d9084e7eb6acb75786fc55a79 parent 3bc136cb5284342bf4c0ba270e78410a00ab9991 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Tue, 21 May 2019 13:44:54 +0200 Refine status and call correct wallpaper script Diffstat:
M | .local/bin/colortheme | | | 2 | +- |
M | .local/bin/sysstatus | | | 6 | +++--- |
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.local/bin/colortheme b/.local/bin/colortheme @@ -116,7 +116,7 @@ function set_colors { s/^\*\.cursorColor: .*$/\*.cursorColor: $cursorColor/" ~/.Xresources xrdb -merge ~/.Xresources command -v i3-msg >/dev/null 2>&1 && (i3-msg restart || :) - command -v wallpaper.sh >/dev/null 2>&1 && (wallpaper.sh || :) + command -v wallpaper >/dev/null 2>&1 && (wallpaper || :) fi if [ -f $slroot/st/config.h ]; then diff --git a/.local/bin/sysstatus b/.local/bin/sysstatus @@ -14,11 +14,11 @@ batlvl=$(cat /sys/class/power_supply/${battery}/capacity) batremain=$(acpi -b | sed 's/.*\([0-9][0-9]*:[0-9][0-9]\):[0-9][0-9].*/\1/') wlanssid=$(iwgetid -r $wlandev) wlanquality=$(echo \ - "$(grep $wlandev /proc/net/wireless | awk '{print $3}')/70 * 100" | bc -l |\ - sed 's/\..*$//') + "0$(grep $wlandev /proc/net/wireless | awk '{print $3}')/70 * 100" |\ + bc -l | sed 's/\..*$//') date=$(date +'%F %T') -status="${mail}${music} ${keymap} | ♪ ${vol}% | CPU ${cputemp}°C ${cpuload} |\ +status="${mail}${music} ${keymap} | ♪ ${vol}% | ${cputemp}°C ${cpuload} |\ ${batstatus}${batlvl}% ${batremain} | ${wlanssid} ${wlanquality}% | $date" printf "%s" "$status"