diff --git a/home/c/programs/tmux/bar.patch b/home/c/programs/tmux/bar.patch new file mode 100644 index 0000000..02f604b --- /dev/null +++ b/home/c/programs/tmux/bar.patch @@ -0,0 +1,24 @@ +diff --git a/tmux-onedark-theme.tmux b/tmux-onedark-theme.tmux +index e440cc7..33ba373 100755 +--- a/tmux-onedark-theme.tmux ++++ b/tmux-onedark-theme.tmux +@@ -75,14 +75,14 @@ set "status-fg" "$onedark_white" + set "@prefix_highlight_fg" "$onedark_black" + set "@prefix_highlight_bg" "$onedark_green" + set "@prefix_highlight_copy_mode_attr" "fg=$onedark_black,bg=$onedark_green" +-set "@prefix_highlight_output_prefix" "  " ++set "@prefix_highlight_output_prefix" " " + + status_widgets=$(get "@onedark_widgets") + time_format=$(get "@onedark_time_format" "%R") + date_format=$(get "@onedark_date_format" "%d/%m/%Y") + +-set "status-right" "#[fg=$onedark_white,bg=$onedark_black,nounderscore,noitalics]${time_format}  ${date_format} #[fg=$onedark_visual_grey,bg=$onedark_black]#[fg=$onedark_visual_grey,bg=$onedark_visual_grey]#[fg=$onedark_white, bg=$onedark_visual_grey]${status_widgets} #[fg=$onedark_green,bg=$onedark_visual_grey,nobold,nounderscore,noitalics]#[fg=$onedark_black,bg=$onedark_green,bold] #h #[fg=$onedark_yellow, bg=$onedark_green]#[fg=$onedark_red,bg=$onedark_yellow]" +-set "status-left" "#[fg=$onedark_black,bg=$onedark_green,bold] #S #{prefix_highlight}#[fg=$onedark_green,bg=$onedark_black,nobold,nounderscore,noitalics]" ++set "status-right" "#[fg=$onedark_white,bg=$onedark_black,nounderscore,noitalics]${time_format} ${date_format} #[fg=$onedark_visual_grey,bg=$onedark_black]#[fg=$onedark_visual_grey,bg=$onedark_visual_grey]#[fg=$onedark_white, bg=$onedark_visual_grey]${status_widgets} #[fg=$onedark_green,bg=$onedark_visual_grey,nobold,nounderscore,noitalics]#[fg=$onedark_black,bg=$onedark_green,bold] #h #[fg=$onedark_yellow, bg=$onedark_green]#[fg=$onedark_red,bg=$onedark_yellow]" ++set "status-left" "#[fg=$onedark_black,bg=$onedark_green,bold] #S #{prefix_highlight}#[fg=$onedark_green,bg=$onedark_black,nobold,nounderscore,noitalics]" + +-set "window-status-format" "#[fg=$onedark_black,bg=$onedark_black,nobold,nounderscore,noitalics]#[fg=$onedark_white,bg=$onedark_black] #I  #W #[fg=$onedark_black,bg=$onedark_black,nobold,nounderscore,noitalics]" +-set "window-status-current-format" "#[fg=$onedark_black,bg=$onedark_visual_grey,nobold,nounderscore,noitalics]#[fg=$onedark_white,bg=$onedark_visual_grey,nobold] #I  #W #[fg=$onedark_visual_grey,bg=$onedark_black,nobold,nounderscore,noitalics]" ++set "window-status-format" "#[fg=$onedark_black,bg=$onedark_black,nobold,nounderscore,noitalics]#[fg=$onedark_white,bg=$onedark_black] #I #W #[fg=$onedark_black,bg=$onedark_black,nobold,nounderscore,noitalics]" ++set "window-status-current-format" "#[fg=$onedark_black,bg=$onedark_visual_grey,nobold,nounderscore,noitalics]#[fg=$onedark_white,bg=$onedark_visual_grey,nobold] #I #W #[fg=$onedark_visual_grey,bg=$onedark_black,nobold,nounderscore,noitalics]" diff --git a/home/c/programs/tmux/default.nix b/home/c/programs/tmux/default.nix index 0f4cfeb..e71d8f5 100644 --- a/home/c/programs/tmux/default.nix +++ b/home/c/programs/tmux/default.nix @@ -20,15 +20,15 @@ in { sensible yank { - plugin = onedark-theme; + plugin = onedark-theme.overrideAttrs (_: { + patches = [./bar.patch]; + }); extraConfig = "\n"; } { plugin = resurrect; extraConfig = '' - set -g @resurrect-strategy-vim 'session' - set -g @resurrect-strategy-nvim 'session' - set -g @resurrect-capture-pane-contents 'on' + set -g @resurrect-capture-pane-contents 'off' ''; } { @@ -62,8 +62,4 @@ in { bind -r l select-pane -R ''; }; - - # home.packages = [ - # pkgs.tmux-sessionizer-cl - # ]; }