Updated INSTALL file and .xinitrc
[dwm.git] / .xinitrc
1 #!/bin/bash
2 # Do what you want to do with this file
3
4 while true
5 do
6 TIME=$(date "+%-d/%-m/%y %H:%M")
7 if acpi -a | grep off-line > /dev/null
8 then
9 BAT="$(acpi -b | cut -d " " -f 4-5 | tr -d ',')"
10 xsetroot -name "$BAT | $TIME"
11 else
12 xsetroot -name "$TIME"
13 fi
14 sleep 20
15 done &
16
17 feh --bg-fill ~/Pictures/granada/DSCN0459.JPG #change the path according to your needs.
18 emacs &
19
20 exec dwm;