aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/status-bar20
-rw-r--r--exclude4
2 files changed, 15 insertions, 9 deletions
diff --git a/bin/status-bar b/bin/status-bar
index f0523ae..d6ac7a5 100755
--- a/bin/status-bar
+++ b/bin/status-bar
@@ -16,7 +16,7 @@ wireless_info() {
"$_if" \
"$(nmcli c | awk "/$_if/"'{print $1}')" \
"$(ip -4 addr show dev "$_if" | awk '/inet /{print $2}')" \
- "$(awk '/^wlp3s0/{print $4+0}' /proc/net/wireless)dbm"
+ "$(awk "/^$_if/"'{print $4+0}' /proc/net/wireless)dbm"
}
eth_info() {
@@ -64,14 +64,16 @@ echo \
"$(date '+%m.%d.%Y %H:%M:%S')"
}
-x230() {
-while true ; do
-
-xsetroot -name "$(status_line)"
+x230_status_line() {
+echo \
+"Fan: $(sensors | sed -n 's/^fan1:[\t ]*//p')|"\
+"Batt: $(sudo tlp-stat -b | awk '/^Charge/{print $3}') $(ac_status)|"\
+"$(network_info)|"\
+"$(date '+%m.%d.%Y %H:%M:%S')"
+}
+_type="$1"; shift
+while true ; do
+xsetroot -name "$("${_type}_status_line" "$@")"
sleep "$timeout"
done
-}
-
-
-$@
diff --git a/exclude b/exclude
index a9f1356..4c8ccb0 100644
--- a/exclude
+++ b/exclude
@@ -1,6 +1,10 @@
.cache/*
.ccache/*
.config/cache/*
+.config/google-chrome/*/Service Worker/CacheStorage/*
+.config/google-chrome/*/Application Cache/*
+.config/chromium/*/Service Worker/CacheStorage/*
+.config/chromium/*/Application Cache/*
Downloads/*
.dropbox/*
.thumbnails/*