Files
dotfile/waybar/modules/date.sh
T

7 lines
166 B
Bash
Executable File

#!/bin/sh
text=$(date +' %H:%M:%S | %d %a %Y ')
tooltip=$(cal)
tooltip=$(echo ${tooltip//$'\n'/\\\\n})
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}}"