Skip to content

Instantly share code, notes, and snippets.

@freshyjmp
Created April 3, 2021 04:52
Show Gist options
  • Save freshyjmp/b23fd8375d4d5ae19d90e6a94378fd29 to your computer and use it in GitHub Desktop.
Save freshyjmp/b23fd8375d4d5ae19d90e6a94378fd29 to your computer and use it in GitHub Desktop.
xbar countdown timer for quitting your job
#!/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