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