aboutsummaryrefslogtreecommitdiff
path: root/modules/date
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-10-21 19:20:28 +0100
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-10-21 19:20:28 +0100
commit7b56a67e1cf04fef081f702ad3990894f5020f3a (patch)
tree042dde978adf81a4a3c0e5efaffbd272e077d4a1 /modules/date
parent858149f3aba1b99c3d554b1885fb4c3a85b21860 (diff)
parente0efb08f314132af22eb03740d5375e367eb5f67 (diff)
Merge branch 'master' of github.com:thytom/dwmbar
Diffstat (limited to 'modules/date')
-rw-r--r--modules/date10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/date b/modules/date
index 87326f7..c6ddc38 100644
--- a/modules/date
+++ b/modules/date
@@ -1,8 +1,12 @@
-#!/bin/sh
+#!/bin/bash
# Prints out the date
-PREFIX_ICON=''
+PREFIX=''
-echo "$PREFIX_ICON $(date '+%d-%m-%y (%a)')"
+date()
+{
+ echo "$PREFIX $(date '+%d-%m-%y (%a)')"
+}
+date