dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: bff54bbef993c4c4ebd467aa02af8cc0ffa2a388
Parent: 7f6f6ce7a9869e7c72830e06ef5ee393026d1517
Author: Randy Palamar
Date:   Mon, 24 May 2021 13:48:44 -0600

replace tmux with scroll

all I use tmux for is a scroll buffer so its just bloat

Diffstat:
A.config/sys/etc/portage/savedconfig/app-misc/scroll-9999 | 15+++++++++++++++
M.config/sys/var/lib/portage/world | 2+-
D.config/tmux/tmux.conf | 57---------------------------------------------------------
3 files changed, 16 insertions(+), 58 deletions(-)

diff --git a/.config/sys/etc/portage/savedconfig/app-misc/scroll-9999 b/.config/sys/etc/portage/savedconfig/app-misc/scroll-9999 @@ -0,0 +1,15 @@ +/* + * Define ESC sequences to use for scroll events. + * Use "cat -v" to figure out favorite key combination. + * + * lines is the number of lines scrolled up or down. + * If lines is negative, it's the fraction of the terminal size. + */ + +struct rule rules[] = { + /* sequence event lines */ + {"\033[5;2~", SCROLL_UP, -1}, /* [Shift] + [PageUP] */ + {"\033[6;2~", SCROLL_DOWN, -1}, /* [Shift] + [PageDown] */ + {"\033[1;3A", SCROLL_UP, 10}, /* alt + up */ + {"\033[1;3B", SCROLL_DOWN, 10}, /* alt + down */ +}; diff --git a/.config/sys/var/lib/portage/world b/.config/sys/var/lib/portage/world @@ -10,7 +10,7 @@ app-i18n/uchardet app-misc/abduco app-misc/anki app-misc/cmatrix -app-misc/tmux +app-misc/scroll app-office/calcurse app-portage/gentoolkit app-portage/smart-live-rebuild diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf @@ -1,57 +0,0 @@ -unbind C-b - -set -g prefix C-a -setw -g aggressive-resize on -set -g display-panes-time 10000 -setw -g mode-keys vi - -set -g default-terminal "screen-256color" -set -g terminal-overrides 'xterm*:smcup@:rmcup@' -set -ga terminal-overrides ',st-256-color:Tc' - -bind a send-prefix -bind R source-file ~/.config/tmux/tmux.conf \; display-message "config loaded" - -bind m command-prompt -p "man:" "split-window -h 'man %%'" - -bind Escape copy-mode -bind C-h previous-window -bind C-l next-window - -bind h select-pane -L -bind k select-pane -U -bind j select-pane -D -bind l select-pane -R - -bind J resize-pane -D 3 -bind K resize-pane -U 3 -bind H resize-pane -L 3 -bind L resize-pane -R 3 - -bind v split-window -h -bind s split-window -v - -bind ^k confirm kill-pane - -set -g base-index 1 -set -g renumber-windows on - -setw -g status-position top -setw -g window-status-format ' [#I: #W #F] ' -setw -g window-status-current-format ' [#W #F] ' -setw -g window-status-current-style "fg=blue" - -setw -g message-style "fg=#ffffff bold" - -set -g pane-border-style "fg=#999999" -set -g pane-active-border-style "fg=blue" -set -g display-panes-colour "white" -set -g display-panes-active-colour "black" - -set -g status-justify left -set -g status-bg black -set -g status-fg "#666666" -set -g status-right '' -set -g status-left '' - -set -s escape-time 0