Skip to content

Instantly share code, notes, and snippets.

@DoumanAsh
Created February 21, 2024 07:14
Show Gist options
  • Save DoumanAsh/374ff0915c7395e8be2d5d5c3916e6c6 to your computer and use it in GitHub Desktop.
Save DoumanAsh/374ff0915c7395e8be2d5d5c3916e6c6 to your computer and use it in GitHub Desktop.
Alacritty workaround for tmux tabs
# Mac OS settings with tmux
[shell]
program = "/opt/homebrew/bin/tmux"
args = [
"new-session",
"-A",
"-D",
"-s",
"main"
]
[selection]
save_to_clipboard = true
[terminal]
osc52 = "CopyPaste"
[window]
decorations = "Full"
startup_mode = "Maximized"
[font]
size = 14
[keyboard]
# MacOS like Cmd-<idx>
bindings = [
{ key = "Key1", mods = "Command", command = { program = "/opt/homebrew/bin/tmux", args = ["select-window", "-t", "1"] } },
{ key = "Key2", mods = "Command", command = { program = "/opt/homebrew/bin/tmux", args = ["select-window", "-t", "2"] } },
{ key = "Key3", mods = "Command", command = { program = "/opt/homebrew/bin/tmux", args = ["select-window", "-t", "3"] } },
{ key = "Key4", mods = "Command", command = { program = "/opt/homebrew/bin/tmux", args = ["select-window", "-t", "4"] } },
{ key = "Key5", mods = "Command", command = { program = "/opt/homebrew/bin/tmux", args = ["select-window", "-t", "5"] } },
{ key = "Key6", mods = "Command", command = { program = "/opt/homebrew/bin/tmux", args = ["select-window", "-t", "6"] } },
{ key = "Key7", mods = "Command", command = { program = "/opt/homebrew/bin/tmux", args = ["select-window", "-t", "7"] } },
{ key = "Key8", mods = "Command", command = { program = "/opt/homebrew/bin/tmux", args = ["select-window", "-t", "8"] } },
{ key = "Key9", mods = "Command", command = { program = "/opt/homebrew/bin/tmux", args = ["select-window", "-t", "9"] } },
]
##########
# One Dark
#########
# Default colors
[colors.primary]
background = '#282c34'
foreground = '#abb2bf'
# Normal colors
[colors.normal]
black = '#1e2127'
red = '#e06c75'
green = '#98c379'
yellow = '#d19a66'
blue = '#61afef'
magenta = '#c678dd'
cyan = '#56b6c2'
white = '#abb2bf'
# Bright colors
[colors.bright]
black = '#5c6370'
red = '#e06c75'
green = '#98c379'
yellow = '#d19a66'
blue = '#61afef'
magenta = '#c678dd'
cyan = '#56b6c2'
white = '#ffffff'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment