aboutsummaryrefslogtreecommitdiff
path: root/.xinitrc
blob: abd1e9e573807ac55a81067a595a013383edb935 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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