#!/usr/bin/env bash # Sends a notification with the time, battery level, and volume time_set() { date "+%A %Y-%m-%d, %r" } power_set() { echo $(acpi | tail -c +12) } volume_set() { echo "$(amixer sget Master | tail -n 1 | cut -d " " -f 7-)" } notify-send "$(time_set)" "$(power_set)\n$(volume_set)"