diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-04-22 14:08:11 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-04-22 14:08:11 +0000 |
commit | 46a02ee1d9885fc3c44889742cc512486a0a6a90 (patch) | |
tree | c63641bd77e0f6e705174268e53ef3806db67d7c /bin | |
parent | 1240ac35a4c62c487218501a905f4754adf65c65 (diff) |
massive changes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/.local/bin/statusbar | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/.local/bin/statusbar b/bin/.local/bin/statusbar index 020429e..31f9be0 100755 --- a/bin/.local/bin/statusbar +++ b/bin/.local/bin/statusbar | |||
@@ -14,12 +14,16 @@ bat() { | |||
14 | } | 14 | } |
15 | 15 | ||
16 | dte() { | 16 | dte() { |
17 | dte="$(date +"%A, %B %d")" | 17 | dte=$(date +"%A, %B %d") |
18 | time="$(date +"%l:%M %p")" | 18 | echo -e "+@fg=1;date+@fg=0; $dte " |
19 | echo -e "+@fg=1;date+@fg=0; $dte +@fg=1;time+@fg=0; $time" | 19 | } |
20 | |||
21 | tie() { | ||
22 | tme=$(date +"%I:%M %p") | ||
23 | echo -e "+@fg=1;time+@fg=0; $tme " | ||
20 | } | 24 | } |
21 | 25 | ||
22 | while :; do | 26 | while :; do |
23 | echo "$(vol) $(bat) $(dte)" | 27 | echo "$(vol) $(bat) $(tie) $(dte)" |
24 | sleep 2 | 28 | sleep 2 |
25 | done | 29 | done |