summaryrefslogtreecommitdiffstats
path: root/.xinitrc
diff options
context:
space:
mode:
Diffstat (limited to '.xinitrc')
-rw-r--r--.xinitrc13
1 files changed, 8 insertions, 5 deletions
diff --git a/.xinitrc b/.xinitrc
index 0aee19a..8633bfc 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -1,10 +1,13 @@
-picom --config /dev/null -bfD3 --xrender-sync-fence
-~/.fehbg
+statusbar() {
+ acpi -b | awk '{print $4}' | sed 's/,//;/100/d'
+ date '+%F %R'
+}
-while true
-do
- xsetroot -name "$(date "+%F %R")"
+while true; do
+ xsetroot -name "$(statusbar | sed -z 's/\n/ | /g;s/ *$//')"
sleep 1m
done &
+picom --config /dev/null -bfD3 --xrender-sync-fence
+~/.fehbg
exec dwm