sb

simple bar for dwm
git clone git://git.ckyln.com/sb.git
Log | Files | Refs | README | LICENSE

commit 0af54804a99fa02275d5fa6ae396e6ca7c196c0c
parent a957ca1404434f91962fe44c6c11b973bbdd4b2d
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 12 Feb 2020 13:34:09 +0300

fix huge typo

Diffstat:
Mfunc/sb_battery | 2+-
Mfunc/sb_brightness | 2+-
Mfunc/sb_datetime | 2+-
Mfunc/sb_gethostname | 4++--
Mfunc/sb_ipv4 | 2+-
Mfunc/sb_mail | 2+-
Mfunc/sb_nightmode | 2+-
Mfunc/sb_pulseaudio | 2+-
Mfunc/sb_ram | 2+-
Mfunc/sb_sfeed_new | 2+-
Mfunc/sb_showmpd | 2+-
Mfunc/sb_ssid | 2+-
Mfunc/sb_storage | 2+-
13 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/func/sb_battery b/func/sb_battery @@ -12,5 +12,5 @@ capacity() { tr -d '\n' < "/sys/class/power_supply/$BATTERY/capacity"; } battery() { [ -z "$BATTERY" ] && BATTERY="BAT0" - printf "BAT: $(state) $(capacity) $DELIMETER " + printf "BAT: $(state) $(capacity) $DELIMITER " } diff --git a/func/sb_brightness b/func/sb_brightness @@ -3,5 +3,5 @@ brightness() { printf "BRI: " xbacklight -get 2>/dev/null | cut -d . -f 1 | tr '\n' '%% ' || return 1 - printf " $DELIMETER " + printf " $DELIMITER " } diff --git a/func/sb_datetime b/func/sb_datetime @@ -3,5 +3,5 @@ datetime() { [ -z "$DATE" ] && DATE="%a %d %b %Y %H:%M" command date +"$DATE" | tr '\n' ' ' || return 1 - printf "$DELIMETER " + printf "$DELIMITER " } diff --git a/func/sb_gethostname b/func/sb_gethostname @@ -1,6 +1,6 @@ # displays hostname gethostname() { - [ -n "$HOST" ] && printf "$HOST $DELIMETER " && return 0 - printf "$(hostname) $DELIMETER " || return 1 + [ -n "$HOST" ] && printf "$HOST $DELIMITER " && return 0 + printf "$(hostname) $DELIMITER " || return 1 } diff --git a/func/sb_ipv4 b/func/sb_ipv4 @@ -6,5 +6,5 @@ ipv4() { [ -z "$1" ] && return 1 IPV4="$(ip a show "$1" 2>/dev/null | grep 'inet ' | cut -d : -f 2 | awk '{print $2}' | cut -d / -f 1)" [ -z "$IPV4" ] && return 1 - printf "$1: $IPV4 $DELIMETER " + printf "$1: $IPV4 $DELIMITER " } diff --git a/func/sb_mail b/func/sb_mail @@ -3,5 +3,5 @@ mail() { [ -z "$NEWMAILDIR" ] && printf "Maildir is not set\\n" >&2 && return 1 [ "$(find "$NEWMAILDIR" | wc -l)" -gt 1 ] && \ - printf "Mail: $(expr "$(find "$NEWMAILDIR" | wc -l)" - 1) $DELIMETER " + printf "Mail: $(expr "$(find "$NEWMAILDIR" | wc -l)" - 1) $DELIMITER " } diff --git a/func/sb_nightmode b/func/sb_nightmode @@ -3,5 +3,5 @@ nightmode() { printf "NM: " nightmodecheck | tr '\n' ' ' || return 1 - printf "$DELIMETER " + printf "$DELIMITER " } diff --git a/func/sb_pulseaudio b/func/sb_pulseaudio @@ -3,5 +3,5 @@ pulseaudio() { VOL="$(pamixer --get-volume-human | sed "s/%//g" | tr -d '\n' || return 1)" ! [ "$VOL" = "muted" ] && VOL="$VOL%%" - printf "VOL: $VOL $DELIMETER " + printf "VOL: $VOL $DELIMITER " } diff --git a/func/sb_ram b/func/sb_ram @@ -5,5 +5,5 @@ ram() { TOTAL="$(command free -m | grep Mem: | awk '{print $2}')" printf "RAM: " expr 100 \* "$USED" / "$TOTAL" | tr -d '\n' - printf "%% $DELIMETER " + printf "%% $DELIMITER " } diff --git a/func/sb_sfeed_new b/func/sb_sfeed_new @@ -9,5 +9,5 @@ sfeed_new() { NAME="$2" && [ -z "$NAME" ] && NAME="Feed" printf "$NAME: " sfeed_plain "$LOCATION"/* | grep '^N' | wc -l | tr '\n' ' ' || return 1 - printf "$DELIMETER " + printf "$DELIMITER " } diff --git a/func/sb_showmpd b/func/sb_showmpd @@ -7,5 +7,5 @@ getmpd() { showmpd() { [ -z "$(getmpd)" ] && return 1 - printf "Playing: $(getmpd) $DELIMETER " + printf "Playing: $(getmpd) $DELIMITER " } diff --git a/func/sb_ssid b/func/sb_ssid @@ -4,5 +4,5 @@ ssid() { [ -z "$1" ] && return 1 SSID="$(iw dev "$1" info | grep ssid | cut -d ' ' -f2- )" [ -z "$SSID" ] && return 1 - printf "$SSID $DELIMETER " + printf "$SSID $DELIMITER " } diff --git a/func/sb_storage b/func/sb_storage @@ -8,5 +8,5 @@ storage() { command df -h | grep "$DISK\$" | awk '{print $3}' | sed s/G// | tr -d '\n' printf "/" command df -h | grep "$DISK\$" | awk '{print $2}' | sed s/G/\ GB/ | tr -d '\n' - printf " $DELIMETER " + printf " $DELIMITER " }