Open anthonyclarka2 opened 4 years ago
Displaying anything that changes every second isn’t really recommended as it effects performance and battery life. However, this extension is about choice.
{ %s }
will get you most of the way. Adding the thousand separator can be a bit tricky and the exact details would depend on your locale – using spaces in most regions, and commas only in former British territories. I’ll look into it.
Thank you so much! On the mac, I update every 100 seconds with BitBar.
Hello!
Thank you for writing this extension, it's great!
On my Mac I use the BitBar app to display the comma separated epoch beside my date/time display. I'd like to do something similar in Gnome and was wondering if I could use this extension to accomplish that. Essentially I want to display this:
{ 1,564,058,167 }
Which I would do in a script:
EPOCH=$(/bin/date +%s | sed ':a;s/\B[0-9]\{3\}\>/,&/;ta')
echo "{" "${EPOCH}" "}"
Do you know of a way to include the output of a script in the text set by your extension? Or, is there a way to comma separate the
%s
value in your extension?Don't worry if this can't be done, I know this is a long shot. Please close this once answered, thank you.