It's time to

Shows emoji means that it's time to do something.

Image preview of It's time to plugin.

itstimeto.15m.py

Edit
Open on GitHub
#!/usr/bin/env python3

# <xbar.title>It's time to</xbar.title>
# <xbar.version>v1.1</xbar.version>
# <xbar.author>Kouji Anzai</xbar.author>
# <xbar.author.github>kanzmrsw</xbar.author.github>
# <xbar.desc>Shows emoji means that it's time to do something.</xbar.desc>
# <xbar.image>http://i.imgur.com/qRgqIVq.png</xbar.image>
# <xbar.dependencies>python</xbar.dependencies>

import datetime

d = datetime.datetime.now().time()
morning = datetime.time(9,0,0)
daytime = datetime.time(17,30,0)
night = datetime.time(22,0,0)

if d < morning:
	print('🌅')
elif morning <= d < daytime:
	print('👷')
elif daytime <= d < night:
	print('🍺')
else:
	print('💤')