Hotkey to switch color presets

218 views
Skip to first unread message

David Abdurachmanov

unread,
Nov 5, 2012, 3:54:22 AM11/5/12
to iterm2-...@googlegroups.com
Hi,

Is there a way to add a hotkey to switch color presets? I have my Default profile, on which I tend manually to switch between Solarized Dark and Solarized Light color presets. Would it be possible to create a hotkey, which could switch forth and back between Solarized Dark and Light presets? That would be much more conformable, similar to Use Transparency option.

Thanks,
david

George Nachman

unread,
Nov 6, 2012, 7:05:52 PM11/6/12
to iterm2-...@googlegroups.com
That's not currently possible. Your best bet to change colors quickly would be to use cmd-I to change profiles.

ro...@pandastrike.com

unread,
Mar 25, 2015, 1:23:12 PM3/25/15
to iterm2-...@googlegroups.com
I had the same problem, with Solarized it happens. If you use tmux, you can hotkey assign two different profiles which are the same except for their hotkeys and color preset.

The important arguments to tmux new-session are -A -D and the consistent -s <session name>. I use this pattern for most of my profiles. The -D causes the previous session to detach and the -A causes new-session to attach to the existing session if it exists, instead of creating a new one. Effectively, it creates a toggle behaviour between the two profiles. 

I tag each profile with 'light' and 'dark' respectively too... and I include the hotkey to which the profile is bound.


George Nachman

unread,
Mar 25, 2015, 1:28:10 PM3/25/15
to iterm2-...@googlegroups.com
The nightly build (and maybe 2.0? I can't recall) has a key action "Change Profile" which lets you change the profile and thus the color scheme of the current session with a keystroke.

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages