mirror of
https://github.com/callumio/nixfiles.git
synced 2025-12-17 03:29:20 +00:00
tmux patch for bar
This commit is contained in:
parent
188d9cb439
commit
cb51c7e09b
2 changed files with 28 additions and 8 deletions
24
home/c/programs/tmux/bar.patch
Normal file
24
home/c/programs/tmux/bar.patch
Normal file
|
|
@ -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]"
|
||||||
|
|
@ -20,15 +20,15 @@ in {
|
||||||
sensible
|
sensible
|
||||||
yank
|
yank
|
||||||
{
|
{
|
||||||
plugin = onedark-theme;
|
plugin = onedark-theme.overrideAttrs (_: {
|
||||||
|
patches = [./bar.patch];
|
||||||
|
});
|
||||||
extraConfig = "\n";
|
extraConfig = "\n";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = resurrect;
|
plugin = resurrect;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set -g @resurrect-strategy-vim 'session'
|
set -g @resurrect-capture-pane-contents 'off'
|
||||||
set -g @resurrect-strategy-nvim 'session'
|
|
||||||
set -g @resurrect-capture-pane-contents 'on'
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
@ -62,8 +62,4 @@ in {
|
||||||
bind -r l select-pane -R
|
bind -r l select-pane -R
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# home.packages = [
|
|
||||||
# pkgs.tmux-sessionizer-cl
|
|
||||||
# ];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue