feat(home/tmux): Port rose-pine/tmux status bar
This commit is contained in:
parent
9f721e29bf
commit
2ad8b6b877
2 changed files with 52 additions and 12 deletions
|
@ -9,6 +9,8 @@ in {
|
|||
options.marleyos.programs.tmux.enable = lib.mkEnableOption "tmux";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
stylix.targets.tmux.enable = false;
|
||||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
|
||||
|
@ -31,16 +33,6 @@ in {
|
|||
shortcut = "a";
|
||||
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
{
|
||||
# TODO: copy over bar config to allow stylix theming
|
||||
plugin = rose-pine;
|
||||
extraConfig =
|
||||
# tmux
|
||||
''
|
||||
set -g @rose_pine_host 'on'
|
||||
set -g @rose_pine_directory 'on'
|
||||
'';
|
||||
}
|
||||
{
|
||||
plugin = resurrect;
|
||||
}
|
||||
|
@ -102,9 +94,11 @@ in {
|
|||
}
|
||||
];
|
||||
|
||||
extraConfig =
|
||||
# tmux
|
||||
extraConfig = with config.lib.stylix.colors.withHashtag;
|
||||
# tmux
|
||||
''
|
||||
set -g @rose_pine_directory 'on'
|
||||
|
||||
# Set repeat timeout so keys can be repeated without the prefix.
|
||||
set -g repeat-time 1000
|
||||
|
||||
|
@ -113,7 +107,38 @@ in {
|
|||
|
||||
set -ag terminal-overrides ",*:RGB"
|
||||
|
||||
### Theme ###
|
||||
# From https://github.com/rose-pine/tmux.
|
||||
|
||||
set -g status 'on'
|
||||
set -g status-position 'top'
|
||||
set -g status-style "fg=${base0B},bg=${base00}"
|
||||
|
||||
set -g status-left-length "200"
|
||||
set -g status-right-length "200"
|
||||
|
||||
set -g message-style "fg=${base03},bg=${base00}"
|
||||
set -g message-command-style "fg=${base00},bg=${base09}"
|
||||
|
||||
set -g pane-border-style "fg=${base07}"
|
||||
set -g pane-active-border-style "fg=${base09}"
|
||||
set -g display-panes-active-colour "${base05}"
|
||||
set -g display-panes-colour "${base09}"
|
||||
|
||||
setw -g window-status-style "fg=${base0D},bg=${base00}"
|
||||
setw -g window-status-activity-style "fg=${base00},bg=${base0A}"
|
||||
setw -g window-status-current-style "fg=${base09},bg=${base00}"
|
||||
|
||||
set -g @sep ' '
|
||||
set -g @lsep ' '
|
||||
set -g @rsep ' '
|
||||
|
||||
set -g status-left " #[fg=#{?client_prefix,${base08},${base05}}] #[fg=${base05}]#S #[fg=${base04}] #[fg=${base0A}]#W#{@sep}"
|
||||
set -g status-right "#{@sep}#[fg=${base05}]#H#[fg=${base04}]#{@rsep}#[fg=${base04}] #[fg=${base0C}]%b %d %y#[fg=${base04}]#{@rsep}#[fg=${base04}] #{@sep}#[fg=${base04}] #[fg=${base0A}]#{b:pane_current_path} "
|
||||
|
||||
setw -g window-status-separator " "
|
||||
setw -g clock-mode-colour "${base08}"
|
||||
setw -g mode-style "fg=${base09}"
|
||||
|
||||
### Keybindings ###
|
||||
|
||||
|
|
15
rp-base16.txt
Normal file
15
rp-base16.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
base - base00
|
||||
surface - base01
|
||||
overlay - base02
|
||||
muted - base03
|
||||
subtle - base04
|
||||
text - base05, base06
|
||||
love - base08
|
||||
gold - base09, base0E
|
||||
rose - base0A
|
||||
pine - base0B
|
||||
foam - base0C
|
||||
iris - base0D
|
||||
hl low - overlay
|
||||
hl med - muted
|
||||
hl high - base07, base0F
|
Loading…
Reference in a new issue