Skip to content

Commit

Permalink
Add: hjkl tmux for alacritty
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuki0924 committed Nov 22, 2021
1 parent beb836a commit ca94983
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions .Brewfiles/brew/.Brewfile_essentials
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ brew 'jq'
brew 'libmagic'
brew 'lua'
brew 'luarocks'
brew 'm-cli'
brew 'make'
brew 'mas'
brew 'media-info'
Expand Down
20 changes: 11 additions & 9 deletions .config/alacritty/alacritty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ mouse:
# The `double_click` and `triple_click` settings control the time
# alacritty should wait for accepting multiple clicks as one double
# or triple click.
double_click: { threshold: 300 }
triple_click: { threshold: 300 }
# double_click: { threshold: 300 }
# triple_click: { threshold: 300 }

# If this is `true`, the cursor is temporarily hidden when typing.
hide_when_typing: true
Expand Down Expand Up @@ -464,9 +464,9 @@ hints:
mouse:
enabled: true
mods: None
binding:
key: U
mods: Control|Shift
# binding:
# key: U
# mods: Control|Shift

# Mouse bindings
#
Expand Down Expand Up @@ -496,9 +496,11 @@ hints:
# And optionally:
#
# - `mods` (see key bindings)
#mouse_bindings:
# - { mouse: Right, action: ExpandSelection }
# - { mouse: Middle, mode: ~Vi, action: PasteSelection }
#
mouse_bindings:
- { mouse: Right, action: ExpandSelection }
- { mouse: Middle, mode: ~Vi, action: PasteSelection }

# Key bindings
#
# Key bindings are specified as a list of objects. For example, this is the
Expand Down Expand Up @@ -907,7 +909,7 @@ key_bindings:
}
- {
key: H,
mods: Command,
mods: Alt,
command:
{
program: '/usr/local/bin/tmux',
Expand Down
2 changes: 1 addition & 1 deletion .hammerspoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ local layoutMetrics = {
-- hs.hotkey.bind(mash_screen, object.key, function() ext.app.applyLayout(object) end)
-- end)

-- disable cmd + H
-- cmd + H becomes alt + H
hs.hotkey.bind('cmd', 'H', nil, function()
hs.eventtap.keyStroke({'alt'}, 'H')
end)

0 comments on commit ca94983

Please sign in to comment.