Set vim navigation for Tmux/i3wm
This commit is contained in:
parent
cf06732333
commit
1d939e3f99
2 changed files with 17 additions and 11 deletions
|
@ -10,17 +10,17 @@ floating_modifier $mod
|
|||
# WINDOW FOCUS/SPLIT/MOVE
|
||||
#
|
||||
|
||||
# change focus
|
||||
bindsym $mod+j focus left
|
||||
bindsym $mod+k focus down
|
||||
bindsym $mod+l focus up
|
||||
bindsym $mod+semicolon focus right
|
||||
# change focus (VIM mod)
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
#bindsym $mod+Left focus left
|
||||
#bindsym $mod+Down focus down
|
||||
#bindsym $mod+Up focus up
|
||||
#bindsym $mod+Right focus right
|
||||
|
||||
bindsym Mod1+Tab focus left
|
||||
|
||||
|
@ -37,10 +37,10 @@ bindsym $mod+Shift+Up move up
|
|||
bindsym $mod+Shift+Right move right
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+h split h
|
||||
bindsym $mod+| split h
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
bindsym $mod+- split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+Mod1+f fullscreen toggle
|
||||
|
|
|
@ -14,6 +14,12 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
|
|||
# Theme
|
||||
set -g @plugin "arcticicestudio/nord-tmux"
|
||||
|
||||
# Vim mod
|
||||
bind-key h select-pane -L
|
||||
bind-key j select-pane -D
|
||||
bind-key k select-pane -U
|
||||
bind-key l select-pane -R
|
||||
|
||||
# Highlight the active window in the status bar.
|
||||
set-window-option -g window-status-current-bg cyan
|
||||
set-window-option -g window-status-current-fg black
|
||||
|
|
Loading…
Reference in a new issue