Skip to content

Instantly share code, notes, and snippets.

View elpnt's full-sized avatar

Matsuoka elpnt

View GitHub Profile
@elpnt
elpnt / change_color.py
Created March 31, 2020 14:31
Change iTerm2 color preset by time of day
#!/usr/bin/env python3.7
import asyncio
import datetime
import iterm2
# Clock time to change colors.
LIGHT_TIME = (7, 0)
DARK_TIME = (17, 0)
{
"nodes": [
{"id": "Myriel", "group": 1},
{"id": "Napoleon", "group": 1},
{"id": "Mlle.Baptistine", "group": 1},
{"id": "Mme.Magloire", "group": 1},
{"id": "CountessdeLo", "group": 1},
{"id": "Geborand", "group": 1},
{"id": "Champtercier", "group": 1},
{"id": "Cravatte", "group": 1},