aboutsummaryrefslogtreecommitdiff
path: root/i3/blocks/countdown
diff options
context:
space:
mode:
authorNeodarZ <neodarz@neodarz.ovh>2016-11-03 23:32:29 +0100
committerNeodarZ <neodarz@neodarz.ovh>2016-11-03 23:32:29 +0100
commit85869af083741e8230cf66d1acc4a3b2da21dbd5 (patch)
treef84efd1622d327039e0c0876a39b948469c42388 /i3/blocks/countdown
parent146b416466cda8fdb6151bf73f99fa65a483fc09 (diff)
downloaddotfiles-85869af083741e8230cf66d1acc4a3b2da21dbd5.tar.xz
dotfiles-85869af083741e8230cf66d1acc4a3b2da21dbd5.zip
Add the new i3 configuration
Diffstat (limited to 'i3/blocks/countdown')
-rwxr-xr-xi3/blocks/countdown36
1 files changed, 0 insertions, 36 deletions
diff --git a/i3/blocks/countdown b/i3/blocks/countdown
deleted file mode 100755
index 311a3b7..0000000
--- a/i3/blocks/countdown
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-
-END_DATE="${BLOCK_INSTANCE}"
-
-URGENT_VALUE=86400
-
-if [[ "${END_DATE}" = "" ]]; then
- END_DATE=$(date --date "next Friday" "+%m/%d/%Y %H:%M:%S")
-fi
-
-END_DATE=$(date --date="${END_DATE}" '+%s')
-CUR_DATE=$(date "+%s")
-DIFF_DATE=$((END_DATE - CUR_DATE))
-DIFF=""
-
-if [[ "${DIFF_DATE}" -le 0 ]]; then
- echo "${END_DATE}"
- echo "${END_DATE}"
- echo ""
- exit 33
-fi
-
-if [[ "${DIFF_DATE}" -ge 86400 ]]; then
- DIFF="[$((DIFF_DATE / 86400))] "
- #DIFF_DATE=$((DIFF_DATE % 86400))
-fi
-
-DIFF+=$(date -u -d "@${DIFF_DATE}" +"%H:%M:%S")
-
-echo "${DIFF}"
-echo "${DIFF}"
-echo ""
-
-if [[ "${DIFF_DATE}" -le "${URGENT_VALUE}" ]]; then
- exit 33
-fi \ No newline at end of file