File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
home-manager/modules/devtools Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 119119 prefix = "§" ;
120120 terminal = "tmux-256color" ;
121121 plugins = with pkgs . tmuxPlugins ; [
122- battery
123- catppuccin
124- cpu
122+ {
123+ plugin = catppuccin ;
124+ extraConfig = /* tmux */ ''
125+ # Configure the catppuccin plugin
126+ set -g @catppuccin_flavor "mocha"
127+ set -g @catppuccin_window_status_style "rounded"
128+ '' ;
129+ }
125130 fingers
126131 fuzzback
127132 pain-control
128133 sensible
129134 yank
130135 ] ;
131- extraConfig = ''
132- # Configure the catppuccin plugin
133- set -g @catppuccin_flavor "mocha"
134- set -g @catppuccin_window_status_style "rounded"
135-
136- # Make the status line pretty and add some modules
136+ extraConfig = /* tmux */ ''
137137 set -g status-right-length 200
138138 set -g status-left-length 100
139139 set -g status-left ""
140+
141+ # These need to be set before battery and cpu
142+ # but after catppuccin. So we set them here in extraConfig
143+ # and manually add battery and cpu to be loaded instead since it
144+ # doesn't fit the regular plugins usecase.
140145 set -g status-right "#{E:@catppuccin_status_application}"
141146 set -agF status-right "#{E:@catppuccin_status_cpu}"
142147 set -ag status-right "#{E:@catppuccin_status_session}"
143148 set -ag status-right "#{E:@catppuccin_status_uptime}"
144149 set -agF status-right "#{E:@catppuccin_status_battery}"
150+ run-shell ${ pkgs . tmuxPlugins . battery . rtp }
151+ run-shell ${ pkgs . tmuxPlugins . cpu . rtp }
145152 '' ;
146153 } ;
147154 zoxide = {
You can’t perform that action at this time.
0 commit comments