From 79d7dacd4fb9f06976fc5e5f4f4593e7051e2f1d Mon Sep 17 00:00:00 2001 From: Baitinq <30861839+Baitinq@users.noreply.github.com> Date: Tue, 21 Dec 2021 23:29:20 +0000 Subject: Update the daypercentage module to fix bug and use python --- modules/daypercentage | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 modules/daypercentage (limited to 'modules/daypercentage') diff --git a/modules/daypercentage b/modules/daypercentage deleted file mode 100755 index 5a2316f..0000000 --- a/modules/daypercentage +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# Prints the percentage of the day that has been completed - -PREFIX=' ' - -get_daypercentage() -{ - MINUTES="$[$(date +%R | cut -d ':' -f1 | sed 's/^0*//') * 60 + $(date +%R | cut -d ':' -f2) ]" - echo "$PREFIX$(echo $[ $MINUTES * 100 / 1440 ] | sed 's/\..*//g')%" -} - -get_daypercentage -- cgit v1.2.3