Add community scripts for i3blocks
This commit is contained in:
13
.local/bin/i3scripts/contrib/date
Executable file
13
.local/bin/i3scripts/contrib/date
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
################################
|
||||
# Shows current date
|
||||
#
|
||||
# @param {String} format: The format of the date
|
||||
# @return {Date}: Current date
|
||||
################################
|
||||
|
||||
format=${BLOCK_INSTANCE:-"%Y-%m-%d"}
|
||||
|
||||
date +"$format"
|
||||
date +"%m-%d"
|
||||
Reference in New Issue
Block a user