diff options
author | Shubham Saini <pryr@pryr.xyz> | 2021-05-22 12:56:08 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2021-05-22 12:56:08 +0000 |
commit | bde9d8e1c9a6e2213fc7d40298d43a14f2e99359 (patch) | |
tree | 548d45ecb1ada0be5a099ea8b0879c82e08560d7 /bin/.bin/statusbar | |
parent | 4d6de10a92b0264a1cebfbe813d2e7961ef29c2b (diff) |
cleaned the repo
Diffstat (limited to 'bin/.bin/statusbar')
-rwxr-xr-x | bin/.bin/statusbar | 45 |
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. | ||
4 | export BLK="\e[30m" | ||
5 | export RED="\e[31m" | ||
6 | export GRN="\e[32m" | ||
7 | export YLW="\e[33m" | ||
8 | export BLU="\e[34m" | ||
9 | export PUR="\e[35m" | ||
10 | export CYN="\e[36m" | ||
11 | export RST="\e[0m" | ||
12 | |||
13 | # Other formatting. | ||
14 | export BLD="\e[1m" | ||
15 | export DIM="\e[2m" | ||
16 | export ITA="\e[3m" | ||
17 | export UND="\e[4m" | ||
18 | export FLS="\e[5m" | ||
19 | export REV="\e[7m" | ||
20 | export INV="\e[8m" | ||
21 | export STR="\e[9m" | ||
22 | |||
23 | vol(){ | ||
24 | vol=$(pulsemixer --get-volume | awk '{print $1}') | ||
25 | echo -e "vol $vol%" | ||
26 | } | ||
27 | |||
28 | bat() { | ||
29 | power=$(cat /sys/class/power_supply/BAT0/capacity) | ||
30 | echo -e "bat $power%" | ||
31 | } | ||
32 | |||
33 | dte() { | ||
34 | dte=$(date +"%A, %B %d") | ||
35 | echo -e "date $dte" | ||
36 | } | ||
37 | |||
38 | tie() { | ||
39 | tme=$(date +"%I:%M %p") | ||
40 | echo -e "time $tme" | ||
41 | } | ||
42 | while :; do | ||
43 | echo "$(vol) $(bat) $(tie) $(dte)" | ||
44 | sleep 2 | ||
45 | done | ||