plugfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 726c3b0aedae823c807f509df53f20e7e453067e
parent ced8d48d1072bf30b655bcf90c9b3124f39b3fea
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Thu, 26 Mar 2020 23:28:04 +1100

Corona virus tracker in status bar, emoji dmenu selection

Diffstat:
M.config/polybar/config | 4++--
Mbin/corona | 8+++++---
Rbin/dmenuunicode -> bin/emoji | 0
Minstall.sh | 3++-
4 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/.config/polybar/config b/.config/polybar/config @@ -73,8 +73,8 @@ tray-detached = true [module/corona] type = custom/script -exec = curl -s https://corona-stats.online/Australia > ~/.cache/corona && echo `corona` -interval = 60 +exec = echo `corona` +interval = 600 format-prefix-font = 5 [module/nordstat] diff --git a/bin/corona b/bin/corona @@ -1,8 +1,10 @@ #!/bin/sh #https://www.youtube.com/watch?v=cQ03v4d3QEo -#grep "State\|Victoria" ~/.cache/corona | -grep "Victoria" ~/.cache/corona | +curl -s https://corona-stats.online/Australia > ~/.cache/corona + +#grep "Country\|Australia" ~/.cache/corona | +grep "Australia" ~/.cache/corona | sed "s/\s*//g ; s/║//g ; s/│/;/g" | sed 's/\x1b\[[0-9;]*m//g' | - awk -F';' '{print "😷:" $3 " (" $9 ") ☠:" $5}' + awk -F';' '{print "😷:" $3 " (" $4 ") ☠:" $6}' diff --git a/bin/dmenuunicode b/bin/emoji diff --git a/install.sh b/install.sh @@ -21,11 +21,12 @@ do cp -R "$CFGFOLDER" "$OLDDIR" done -cp -r ./bin/* $BINLOC/ +cp -r $PLUGLOC/bin/* $BINLOC/ [ -f "$CFGLOC/.aliasrc" ] && rm "$CFGLOC/.aliasrc" cp "$PLUGLOC/.config/.aliasrc" "$CFGLOC/.aliasrc" cp "$PLUGLOC/.config/.compton.conf" "$CFGLOC/.compton.conf" +cp "$PLUGLOC/.config/emoji" "$CFGLOC/emoji" cp "$PLUGLOC/starshell.sh" "$CFGLOC/starshell.sh" cp -r "$PLUGLOC/.config/starshell" "$CFGLOC/starshell"