home/tmux | switch theme to catppuccin

This commit is contained in:
Don Harper 2025-08-28 22:37:46 -05:00
parent 639272514d
commit b42950199b

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{pkgs, ...}: {
programs.tmux = {
enable = true;
aggressiveResize = true;
@ -15,35 +15,25 @@
pkgs.tmuxPlugins.cpu
pkgs.tmuxPlugins.vim-tmux-navigator
{
plugin = pkgs.tmuxPlugins.online-status;
plugin = pkgs.tmuxPlugins.catppuccin;
extraConfig = ''
set -g @online_icon "ok"
set -g @offline_icon "offline!"
'';
}
{
plugin = pkgs.tmuxPlugins.dracula;
extraConfig = ''
set -g @dracula-plugins "cpu-usage battery playerctl time"
set -g @dracula-playerctl-format "{{ artist }} - {{ title }}"
set -g @dracula-border-contrast true
set -g @dracula-refresh-rate 10
set -g @dracula-show-left-icon session
set -g @dracula-border-contrast true
set -g @dracula-show-powerline true
set -g @dracula-synchronize-panes-label "Sync"
set -g @dracula-show-flags true
set -g @dracula-show-timezone false
set -g @dracula-fixed-location "Katy, Texas"
set -g @dracula-show-location false
set -g @catppuccin_flavor "mocha"
set -g @catppuccin_date_time_text "%_m/%e %l:%M %p"
set -g @catppuccin_window_status_style "rounded"
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_text " #[italics]#{window_name}"
set -g @catppuccin_window_status "no"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_number_position "left"
set -g status-style "bg=terminal"
set -g status-left "#{E:@catppuccin_status_session}"
set -gF status-right "#{E:@catppuccin_status_cpu}"
set -ag status-right "#{E:@catppuccin_status_mem}"
set -ag status-right "#{E:@catppuccin_status_date_time}"
'';
}
];
extraConfig = ''
# left_sep=''
# right_sep=''
# right_alt_sep=''
# set -g status-right " online: #{online_status}  BAT: #{battery_graph} #{battery_remain}  CPU: #{cpu_icon} #{cpu_percentage}  %Y-%m-%d %l:%M "
bind '~' split-window "exec btop"
bind - split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
@ -51,21 +41,7 @@
bind -n C-2 select-window -t 12
bind -n C-3 select-window -t 13
bind -n C-4 select-window -t 14
bind -n C-left swap-window -t -1
bind -n C-right swap-window -t +1
bind -n S-down new-window
bind -n S-left prev
bind -n S-right next
bind 0 select-window -t 10
bind 1 select-window -t 1
bind 2 select-window -t 2
bind 3 select-window -t 3
bind 4 select-window -t 4
bind 5 select-window -t 5
bind 6 select-window -t 6
bind 7 select-window -t 7
bind 8 select-window -t 8
bind 9 select-window -t 9
bind C-0 select-window -t 20
bind C-5 select-window -t 15
bind C-6 select-window -t 16
@ -81,19 +57,7 @@
bind C-n neww -n net "exec $TEXTWEB"
bind C-t neww -n vit "exec vit"
bind C-v run "tmux set-buffer -- \"$(wl-paste)\"; tmux paste-buffer"
bind F1 select-window -t 11
bind F10 select-window -t 20
bind F2 select-window -t 12
bind F3 select-window -t 13
bind F4 select-window -t 14
bind F5 select-window -t 15
bind F6 select-window -t 16
bind F7 select-window -t 17
bind F8 select-window -t 18
bind F9 select-window -t 19
# bind I neww -n khal "exec ikhal"
bind I display-popup -w 90% -h 90% -E "ikhal"
bind K split-window -h "exec ikhal"
bind S split-window -v -l 5
bind T display-popup -d "#{pane_current_path}" -w 90% -h 90% -E "bash"
bind Tab choose-window
@ -101,21 +65,14 @@
bind e setw synchronize-panes
bind g select-layout tiled
bind o select-pane -t :.-
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlscan" '$SHELL -c "urlscan -c -d < /tmp/tmux-buffer"'
bind u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlscan" '$SHELL -c "urlscan -c -d < /tmp/tmux-buffer"'
set -g bell-action any
set -g buffer-limit 9
set -g display-panes-active-colour red
set -g display-panes-colour blue
set -g display-panes-time 1000
set -g display-time 750
set -g focus-events on
set -g lock-after-time 120
set -g lock-command 'tty | grep -q "^/dev/tty" && vlock'
set -g renumber-windows off
set -g set-titles on
set -g set-titles-string "#S:#I:#W - "#T""
set -g status on
set -g status-interval 0
set -g status-interval 15
set -g status-justify left
set -g status-position top