Mon Jun 3 05:37:31 PM CEST 2024

This commit is contained in:
Thomas Avé 2024-06-03 17:37:31 +02:00
parent 8be89a76cd
commit 08c59af817
9 changed files with 25 additions and 100 deletions

View File

@ -1 +0,0 @@
Inbox=tag:inbox and not tag:archived and not tag:deleted

View File

@ -1,58 +0,0 @@
*.default=true
*.normal=true
default.fg=#abb2bf
default.bg=#11121D
*.bg=#11121D
error.fg=#f38ba8
warning.fg=#fab387
success.fg=#a6e3a1
tab.fg=#6c7086
tab.bg=#181825
tab.selected.fg=#cdd6f4
tab.selected.bg=#023269
tab.selected.bold=true
part*.selected.bg=#023269
border.fg=#023269
border.bold=true
msglist_unread.bold=true
msglist_unread.fg=#f9e2af
msglist_flagged.fg=#e06c75
msglist_flagged.bold=true
msglist_result.fg=#89b4fa
msglist_result.bold=true
msglist_*.selected.bold=true
msglist_*.selected.bg=#023269
msglist_*.bg=#11121D
dirlist_*.selected.bold=true
dirlist_*.selected.bg=#023269
dirlist_*.bg=#181825
statusline_default.fg=#9399b2
statusline_default.bg=#2C3043
statusline_error.bold=true
statusline_success.bold=true
spinner.bg=#11121D
[viewer]
header.bg=#181825
url.fg=#89b4fa
url.underline=true
header.bold=true
signature.dim=true
diff_meta.bold=true
diff_chunk.fg=#89b4fa
diff_chunk_func.fg=#89b4fa
diff_chunk_func.bold=true
diff_add.fg=#a6e3a1
diff_del.fg=#f38ba8
quote_*.fg=#6c7086
quote_1.fg=#9399b2

Binary file not shown.

View File

@ -1,69 +1,30 @@
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.local/share/tmux/plugins'
# Use vi keybindings in copy mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
# Use C-a as prefix
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# More visual split commands
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
unbind '"'
unbind %
# Allow to use the mouse
set -g mouse on
# theme
set -g @themepack 'powerline/double/blue'
# Allow using ctrl + arrow keys
set-option -g xterm-keys on
# status bar
# set -g status-right '#{net_speed} | #{prefix_highlight} #{battery_icon}#{battery_percentage} | %a %h-%d %H:%M'
set-window-option -g status-left " #S "
set-window-option -g status-right " #{prefix_highlight} \"#(hostname)\" %H:%M %d-%b-%y "
set-window-option -g window-status-format " #I: #W "
set-window-option -g window-status-current-format " #I: #W "
# Set title suffix to "- TMUX"
# set-option -g set-titles on
# set-option -g set-titles-string '#S: #W - TMUX'
# # Smart pane switching with awareness of vim splits and system windows
# is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
# bind -n C-Left if-shell "$is_vim" "send-keys C-h" "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh left'"
# bind -n C-Down if-shell "$is_vim" "send-keys C-j" "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh down'"
# bind -n C-Up if-shell "$is_vim" "send-keys C-k" "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh up'"
# bind -n C-Right if-shell "$is_vim" "send-keys C-l" "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh right'"
# bind-key -T copy-mode-vi 'C-Left' "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh left'"
# bind-key -T copy-mode-vi 'C-Down' "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh down'"
# bind-key -T copy-mode-vi 'C-Up' "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh up'"
# bind-key -T copy-mode-vi 'C-Right' "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh right'"
# Extrakto
# set -g @extrakto_split_direction v
# set -g @extrakto_split_size 15
# Plugins (Keep this last)
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'christoomey/vim-tmux-navigator'
# set -g @plugin 'tmux-plugins/tmux-copycat'
# set -g @plugin 'tmux-plugins/tmux-open'
# set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
# set -g @plugin 'laktak/extrakto'
set -g @plugin 'jimeh/tmux-themepack'
run '~/.local/share/tmux/plugins/tpm/tpm'
#ZSH
set -g default-shell /bin/zsh
# colors
set -g default-shell /bin/zsh
set-option -sa terminal-overrides ',screen-256color:RGB'

View File

@ -1,7 +1,7 @@
{ inputs, config, pkgs, ... }:
{
imports = [ ./zsh ./git ./nvim ./email ./lf ];
imports = [ ./zsh ./git ./nvim ./email ./lf ./tmux ];
home.stateVersion = "24.11";
targets.genericLinux.enable = true;

23
home/tmux/default.nix Normal file
View File

@ -0,0 +1,23 @@
{ inputs, config, pkgs, ... }:
{
programs.tmux = {
shell = "${pkgs.zsh}/bin/zsh";
terminal = "tmux-256color";
enable = true;
clock24 = true;
shortcut = "a";
escapeTime = 0;
newSession = true;
plugins = [
pkgs.tmuxPlugins.vim-tmux-navigator
pkgs.tmuxPlugins.better-mouse-mode
pkgs.tmuxPlugins.yank
{
plugin = pkgs.tmuxPlugins.power-theme;
extraConfig = "set -g @tmux_power_theme 'forest'";
}
];
};
}