-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Noticable thing: update iterm/vim/tmux based on dark/light macos ui mode
- Loading branch information
Showing
10 changed files
with
124 additions
and
68 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
._* | ||
.gtd | ||
.gitconfig | ||
.npmrc | ||
.byobu/.ssh-agent | ||
lib | ||
# .tmuxinator/.*.yml |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
if [[ ! $(pgrep -f $DOTFILES/bin/iterm-theme) ]]; then | ||
nohup $DOTFILES/bin/iterm-theme > /dev/null 2>&1 & | ||
fi | ||
|
||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import asyncio | ||
import iterm2 | ||
|
||
async def main(connection): | ||
async with iterm2.VariableMonitor(connection, iterm2.VariableScopes.APP, "effectiveTheme", None) as mon: | ||
while True: | ||
# Block until theme changes | ||
theme = await mon.async_get() | ||
|
||
# Themes have space-delimited attributes, one of which will be light or dark. | ||
parts = theme.split(" ") | ||
if "dark" in parts: | ||
preset = await iterm2.ColorPreset.async_get(connection, "Nord (2)") | ||
else: | ||
preset = await iterm2.ColorPreset.async_get(connection, "OneHalfLight") | ||
|
||
# Update the list of all profiles and iterate over them. | ||
profiles=await iterm2.PartialProfile.async_query(connection) | ||
for partial in profiles: | ||
# Fetch the full profile and then set the color preset in it. | ||
profile = await partial.async_get_full_profile() | ||
await profile.async_set_color_preset(preset) | ||
|
||
iterm2.run_forever(main) |
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
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