Created
April 3, 2021 04:52
-
-
Save freshyjmp/b23fd8375d4d5ae19d90e6a94378fd29 to your computer and use it in GitHub Desktop.
xbar countdown timer for quitting your job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Drop this in your xbar plugins folder. | |
# Set to be executable. | |
# Keep your deadline in mind. | |
from datetime import datetime, timedelta | |
DEADLINE = datetime(2022, 12, 31) | |
def main(): | |
days_left = DEADLINE - datetime.now() | |
print(f"{days_left.days} days until quit") | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment