Created
September 19, 2014 17:40
-
-
Save jferris/eca59c30b756d89eea63 to your computer and use it in GitHub Desktop.
Send time, battery, and Wifi status to libnotify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/zsh | |
| time_status=$(date +%l:%M%p | sed "s/^ *//") | |
| date_status=$(date +%A,\ %B\ %e) | |
| battery_status=$(acpi | head -n1 | sed "s/^[^,]*, //" | sed "s/,.*//") | |
| wifi_status=$(iwconfig wlp3s0 | grep ESSID | sed "s/^.*://" | tr -d '"') | |
| notify-send -t 3000 "$time_status" "$date_status\nBattery: $battery_status\nConnected to $wifi_status" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment