]> git.armaanb.net Git - bin.git/blob - status
readability improvements
[bin.git] / status
1 #!/usr/bin/env bash
2  
3 function time_set() {
4   date +%A", "%b" "%e" | "%r
5 }
6
7 function power_set() {
8   upower -d | grep percentage | tail -c 5
9   echo " battery,"
10   upower --dump | grep "time to empty" | tail -c 15
11 }
12
13 notify-send -i "clock" "`echo $(time_set)`" "`echo $(power_set) remaining`"