diff options
Diffstat (limited to 'bin/.local')
-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 |