diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-02-02 16:40:53 +0000 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-02-02 16:40:53 +0000 |
| commit | 854714671f40d4350fbba84b0561b3042e6e0919 (patch) | |
| tree | 78f4797fbbaac35f23a06b9baa656fa915721c9c /.xinitrc | |
Add patched suckless build (dwm, st, dmenu)
Diffstat (limited to '.xinitrc')
| -rw-r--r-- | .xinitrc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..abd1e9e --- /dev/null +++ b/.xinitrc @@ -0,0 +1,16 @@ +#!/bin/bash + +while true +do + # Get the current date, uptime, and battery percentage + battery_level=$(upower -i $(upower -e | grep BAT) | grep -i "percentage" | awk '{print $2}') + status_name="`date` `uptime | sed 's/.*,//'` Battery: $battery_level" + + # Set the status + xsetroot -name "$status_name" + + sleep 1 +done & + +exec dwm + |
