]> git.armaanb.net Git - bin.git/blob - status
updated README
[bin.git] / status
1 #!/usr/bin/env bash
2  
3 function time_set() {
4   date +%A" "%B" "%e" | "%1l:%M:%S
5 }
6
7 function power_set() {
8   upower -d | grep percentage | tail -c 4 | head -c 3
9   echo " battery,"
10   upower --dump | grep "time to empty" | tail -c 15
11 }
12
13 export TIME=$(time_set)
14 export POWER=$(power_set)
15
16 notify-send -i "clock" "`echo $TIME`" "`echo $POWER`"