From 45b1213c98c23457890ae1e72482c7ff229c7e45 Mon Sep 17 00:00:00 2001 From: Von Random Date: Fri, 17 Oct 2014 03:34:25 +0400 Subject: [PATCH] caps -> ctrl, vim keys for tmux --- rc.lua | 2 +- tmux.conf | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/rc.lua b/rc.lua index 5bf29ab..dce9509 100644 --- a/rc.lua +++ b/rc.lua @@ -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') diff --git a/tmux.conf b/tmux.conf index db88666..8638cba 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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"