Skip to content

Instantly share code, notes, and snippets.

View doublethefish's full-sized avatar

Frank Harrison doublethefish

View GitHub Profile

auto_dark_mode.py

A script to update the color presets used by iTerm when the System Preferences -> General -> Apperance setting changes (either manually or via Automator).

Inspired by https://gist.github.com/jamesmacfie/2061023e5365e8b6bfbbc20792ac90f8

How to use

  1. In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
  2. Select Basic.
  3. Select Long-Running Daemon
import copy
fullmenu = {
"4 chick-n-minis": 3.35,
"egg white grill": 3.79,
"bacon/sausage egg cheese biscuit": 2.95,
"buttered biscuit": 0.99,
"sunflower multigrain bagel": 1.95,
"hash browns": 1.15,
"greek yogurt parfait": 3.35,