From 8633ae21d18c4b4e334ecb145f92550aa9590176 Mon Sep 17 00:00:00 2001 From: EvilMuffinHa Date: Tue, 16 Aug 2022 17:25:49 -0400 Subject: [PATCH] tmux --- install.conf.yaml | 1 + themectl/config.toml | 6 +++--- tmux/tmux.conf | 25 +++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 tmux/tmux.conf diff --git a/install.conf.yaml b/install.conf.yaml index 565d1ab..3f6b8fc 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -48,3 +48,4 @@ ~/.config/bat/config: bat/config ~/.config/themectl: themectl ~/.config/sounds: sounds + ~/.config/tmux: tmux diff --git a/themectl/config.toml b/themectl/config.toml index b659244..be6bce5 100644 --- a/themectl/config.toml +++ b/themectl/config.toml @@ -1,5 +1,3 @@ -# TODO: update ttys get all themes from wal/colorschemes/dark - [apps] vim-custom = "~/.config/nvim/colors/theme.vim" @@ -21,4 +19,6 @@ firefox = { file = "~/.cache/wal/colors.json", post = "pywalfox update &" } binary-ninja-custom = { file = "~/.config/binja/.binaryninja/themes/theme.bntheme" } -tmtheme = { file = "~/theme.tmTheme" } +tmtheme = { file = "~/.cache/theme/theme.tmTheme" } + +tmux = { file = "~/.cache/theme/tmux.conf" } diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..451e281 --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,25 @@ +set-option -ga terminal-overrides ",xterm-256color:Tc" +set -g default-terminal "screen-256color" +set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' + +setw -g mode-keys vi +unbind C-b +set-option -g prefix C-a + +bind-key -T copy-mode-vi 'v' send -X begin-selection +bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel \; run -b "tmux save-buffer - | xclip -sel clip -i > /dev/null" +bind y run -b "tmux save-buffer - | xclip -sel clip -i > /dev/null" \; + + +unbind Left +unbind Down +unbind Right +unbind Up + +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + + +source-file ~/.cache/theme/tmux.conf