1
0
Fork 0

caps -> ctrl, vim keys for tmux

This commit is contained in:
Von Random 2014-10-17 03:34:25 +04:00
parent b205ceb2d7
commit 45b1213c98
2 changed files with 12 additions and 8 deletions

2
rc.lua
View file

@ -658,7 +658,7 @@ client.connect_signal('unfocus', function(c) c.border_color = beautiful.border_n
-- {{{ Autostart
-- don't forget you sync this file
-- this shit runs every time you restart your wm, dumbass.
awful.util.spawn_with_shell('setxkbmap -layout us,ru -variant altgr-intl,typewriter -option grp:caps_toggle,grp:win_space_toggle,compose:menu,grp_led:scroll')
awful.util.spawn_with_shell('setxkbmap -layout us,ru -variant altgr-intl,typewriter -option ctrl:nocaps,grp:win_space_toggle,compose:menu,grp_led:scroll')
awful.util.spawn_with_shell('xrdb /home/von/.Xresources')
if exists('/home/von/.autostart') then
awful.util.spawn_with_shell('/home/von/.autostart')

View file

@ -1,20 +1,24 @@
# tmux.conf
bind r source-file /home/von/.tmux.conf\; display-message "Config reloaded."
bind s split-window -v
bind v split-window -h
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1
bind < resize-pane -L 5
bind > resize-pane -R 5
bind - resize-pane -D 5
bind + resize-pane -U 5
bind m set-option -g mode-mouse on\; set-option -g mouse-select-pane on\; set-option -g mouse-select-window on\; set-option -g mouse-resize-pane on\; display-message "mouse mode ON"
bind M set-option -g mode-mouse off\; set-option -g mouse-select-pane off\; set-option -g mouse-select-window off\; set-option -g mouse-resize-pane off\; display-message "mouse mode OFF"
bind -n C-a display-message "Powered by tmux!"
bind -n M-w select-window -n
bind -n M-q select-window -p
bind -n M-w choose-tree -w
bind -n M-q choose-tree -s
bind -n M-` last-window
bind -n S-Pageup copy-mode -u
set -g base-index 1
setw -g mode-keys vi
set -g base-index 0
set -g history-limit 10000
set -g set-titles off
set -g set-titles-string "#T"