]> git.armaanb.net Git - bin.git/blob - status
Audio-set: switch to cut for parsing volume
[bin.git] / status
1 #!/usr/bin/env bash
2 # Sends a notification with the time, battery level, and volume
3
4 time_set() {
5   date "+%A %Y-%m-%d, %r"
6 }
7
8 power_set() {
9   echo $(acpi | tail -c +12)
10 }
11
12 volume_set() {
13   echo "$(amixer sget Master | tail -n 1 | cut -d " " -f 7-)"
14 }
15
16 notify-send "$(time_set)" "$(power_set)\n$(volume_set)"