Skip to content

Instantly share code, notes, and snippets.

@RusAlex
Last active October 5, 2020 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RusAlex/4eb286652617090a57d777474578e22f to your computer and use it in GitHub Desktop.
Save RusAlex/4eb286652617090a57d777474578e22f to your computer and use it in GitHub Desktop.
# setxkbmap -layout us,ru -variant 'colemak,,' -option "grp:lwin_toggle" -option "ctrl:nocaps"
# setxkbmap -option "ctrl:swapcaps"
# sms https://gist.github.com/RusAlex/0d24f9717e889c9599123635b25ac01d
# https://gist.github.com/RusAlex/303989e114aabeb0c5871aae69f63dec
# emacs https://gist.github.com/RusAlex/55732501306cfbfaabd86aa18f1a20b1
#set-window-option -g mode-keys vi
set-window-option -g automatic-rename off
bind j select-pane -L
bind k select-pane -D
bind h select-pane -U
bind l select-pane -R
# bind -t vi-copy j cursor-left
# bind -t vi-copy l cursor-right
# bind -t vi-copy h cursor-up
# bind -t vi-copy k cursor-down
bind t last-window
unbind-key C-b
unbind C-b
set-option -g prefix C-t
bind-key C-t send-prefix
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded"
unbind y
#bind-key y copy-mode\; send-keys '?Message-ID\ $'
#bind-key g command-prompt "run 'exec amixer -M set Master %% > /dev/null'"
bind C-a run "~/.config/openbox/autostart"
# move tmux copy buffer into x clipboard
# bind C-y run "tmux show-buffer | xclip -i -selection 'clipboard'"
# bind -r C-- run "tmux show-buffer | xclip -i -selection 'clipboard'"
# set copy mode vim style
bind C-v copy-mode
bind [ previous-window
bind ] next-window
bind v paste-buffer
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
set -g status-justify left
set -g status-left ""
set -g status-right '%k:%MW%V #(echo "scale=1;"$(cat /sys/class/thermal/thermal_zone2/temp)/1000 | bc -l)C #(uptime | grep "load average: .*" -o | grep "[0-9].*" -o)'
bind -T copy-mode y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b"
#bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
set -g mouse off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment