1
0
Fork 0
dotfiles/.config/eww/scripts/currtime
2022-03-20 03:19:38 -04:00

12 lines
218 B
Bash
Executable file

#!/usr/bin/env bash
var="timedate_reveal"
val=`eww get ${var}`
if [ "$val" == true ]; then
time=`date +"%F %T"`
echo "(label :text \"$time\")"
else
time=`date +"%R"`
echo "(label :text \"$time\")"
fi