|
3 | 3 | pkgs-stable, |
4 | 4 | lib, |
5 | 5 | enableGuiPackages, |
| 6 | + showBatteryStatus, |
6 | 7 | ... |
7 | 8 | }: { |
8 | 9 | imports = [ |
|
405 | 406 | mouse = true; |
406 | 407 | terminal = "xterm-256color"; |
407 | 408 | sensibleOnTop = true; |
408 | | - plugins = with pkgs; [ |
409 | | - { |
410 | | - plugin = tmuxPlugins.continuum; |
411 | | - extraConfig = '' |
412 | | - set -g @continuum-restore 'on' |
413 | | - set -g @continuum-save-interval '60' # minutes |
414 | | - ''; |
415 | | - } |
416 | | - { |
417 | | - plugin = tmuxPlugins.catppuccin; |
418 | | - extraConfig = '' |
419 | | - set -g @catppuccin_flavor "mocha" |
| 409 | + plugins = with pkgs; |
| 410 | + [ |
| 411 | + { |
| 412 | + plugin = tmuxPlugins.continuum; |
| 413 | + extraConfig = '' |
| 414 | + set -g @continuum-restore 'on' |
| 415 | + set -g @continuum-save-interval '60' # minutes |
| 416 | + ''; |
| 417 | + } |
| 418 | + { |
| 419 | + plugin = tmuxPlugins.catppuccin; |
| 420 | + extraConfig = '' |
| 421 | + set -g @catppuccin_flavor "mocha" |
420 | 422 |
|
421 | | - # See: catppuccin/tmux#409 |
422 | | - set -g @catppuccin_window_status_style "custom" |
423 | | - set -g @catppuccin_window_left_separator "#[bg=default,fg=#{@thm_surface_0}]#[bg=#{@thm_surface_0},fg=#{@thm_fg}]" |
424 | | - set -g @catppuccin_window_right_separator "#[bg=default,fg=#{@thm_surface_0}]" |
425 | | - set -g @catppuccin_window_current_left_separator "#[bg=default,fg=#{@thm_mauve}]#[bg=#{@thm_mauve},fg=#{@thm_bg}]" |
426 | | - set -g @catppuccin_window_current_middle_separator "#[fg=#{@thm_mauve}]█" |
427 | | - set -g @catppuccin_window_current_right_separator "#[bg=default,fg=#{@thm_surface_1}]" |
428 | | - set -g @catppuccin_status_background "none" |
429 | | - ''; |
430 | | - } |
431 | | - { |
432 | | - plugin = tmuxPlugins.cpu; |
433 | | - # N.B.: extraConfig here applies to catppuccin above; it has to be set _after_ loading catppuccin plugin |
434 | | - extraConfig = '' |
435 | | - set -g status-right-length 100 |
436 | | - set -g status-left-length 100 |
437 | | - set -g status-left "" |
438 | | - set -g status-right "#{E:@catppuccin_status_application}" |
439 | | - set -ag status-right "#{E:@catppuccin_status_session}" |
440 | | - set -agF status-right "#{E:@catppuccin_status_cpu}" |
441 | | - set -ag status-right "#{E:@catppuccin_status_uptime}" |
442 | | - ''; |
443 | | - } |
444 | | - tmuxPlugins.yank |
445 | | - ]; |
| 423 | + # See: catppuccin/tmux#409 |
| 424 | + set -g @catppuccin_window_status_style "custom" |
| 425 | + set -g @catppuccin_window_left_separator "#[bg=default,fg=#{@thm_surface_0}]#[bg=#{@thm_surface_0},fg=#{@thm_fg}]" |
| 426 | + set -g @catppuccin_window_right_separator "#[bg=default,fg=#{@thm_surface_0}]" |
| 427 | + set -g @catppuccin_window_current_left_separator "#[bg=default,fg=#{@thm_mauve}]#[bg=#{@thm_mauve},fg=#{@thm_bg}]" |
| 428 | + set -g @catppuccin_window_current_middle_separator "#[fg=#{@thm_mauve}]█" |
| 429 | + set -g @catppuccin_window_current_right_separator "#[bg=default,fg=#{@thm_surface_1}]" |
| 430 | + set -g @catppuccin_status_background "none" |
| 431 | + ''; |
| 432 | + } |
| 433 | + { |
| 434 | + plugin = tmuxPlugins.cpu; |
| 435 | + # N.B.: extraConfig here applies to catppuccin above; it has to be set _after_ loading catppuccin plugin |
| 436 | + extraConfig = '' |
| 437 | + set -g status-right-length 100 |
| 438 | + set -g status-left-length 100 |
| 439 | + set -g status-left "" |
| 440 | + set -g status-right "#{E:@catppuccin_status_application}" |
| 441 | + set -ag status-right "#{E:@catppuccin_status_session}" |
| 442 | + set -agF status-right "#{E:@catppuccin_status_cpu}" |
| 443 | + set -ag status-right "#{E:@catppuccin_status_uptime}" |
| 444 | + ''; |
| 445 | + } |
| 446 | + tmuxPlugins.yank |
| 447 | + ] |
| 448 | + ++ lib.optionals showBatteryStatus [ |
| 449 | + { |
| 450 | + plugin = tmuxPlugins.battery; |
| 451 | + extraConfig = '' |
| 452 | + set -agF status-right "#{E:@catppuccin_status_battery}" |
| 453 | + ''; |
| 454 | + } |
| 455 | + ]; |
446 | 456 | extraConfig = '' |
447 | 457 | # See: tmux/tmux#696 |
448 | 458 | set-option -ga terminal-overrides ",xterm-256color:Tc" |
|
0 commit comments