summaryrefslogtreecommitdiff
path: root/bin/.bin/statusbar
diff options
context:
space:
mode:
Diffstat (limited to 'bin/.bin/statusbar')
-rwxr-xr-xbin/.bin/statusbar45
1 files changed, 0 insertions, 45 deletions
diff --git a/bin/.bin/statusbar b/bin/.bin/statusbar
deleted file mode 100755
index c506244..0000000
--- a/bin/.bin/statusbar
+++ /dev/null
@@ -1,45 +0,0 @@
1#!/bin/bash
2
3# Color definitions.
4export BLK="\e[30m"
5export RED="\e[31m"
6export GRN="\e[32m"
7export YLW="\e[33m"
8export BLU="\e[34m"
9export PUR="\e[35m"
10export CYN="\e[36m"
11export RST="\e[0m"
12
13# Other formatting.
14export BLD="\e[1m"
15export DIM="\e[2m"
16export ITA="\e[3m"
17export UND="\e[4m"
18export FLS="\e[5m"
19export REV="\e[7m"
20export INV="\e[8m"
21export STR="\e[9m"
22
23vol(){
24 vol=$(pulsemixer --get-volume | awk '{print $1}')
25 echo -e "vol $vol%"
26}
27
28bat() {
29 power=$(cat /sys/class/power_supply/BAT0/capacity)
30 echo -e "bat $power%"
31}
32
33dte() {
34 dte=$(date +"%A, %B %d")
35 echo -e "date $dte"
36}
37
38tie() {
39 tme=$(date +"%I:%M %p")
40 echo -e "time $tme"
41}
42while :; do
43 echo "$(vol) $(bat) $(tie) $(dte)"
44 sleep 2
45done