merging some changes
This commit is contained in:
parent
3e16e02840
commit
a0ca5540e7
14 changed files with 359 additions and 27 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, config, ... }:
|
||||
{ pkgs, config, user, ... }:
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
|
|
@ -6,12 +6,12 @@
|
|||
plugins = with pkgs.tmuxPlugins; [
|
||||
sensible
|
||||
yank
|
||||
{
|
||||
plugin = power-theme;
|
||||
extraConfig = ''
|
||||
set -g @tmux_power_theme 'sky'
|
||||
'';
|
||||
}
|
||||
# {
|
||||
# plugin = power-theme;
|
||||
# extraConfig = ''
|
||||
# set -g @tmux_power_theme 'sky'
|
||||
# '';
|
||||
# }
|
||||
resurrect
|
||||
continuum
|
||||
];
|
||||
|
|
@ -107,8 +107,118 @@
|
|||
fzf --reverse --header jump-to-session --preview 'tmux capture-pane -pt {}' |\
|
||||
xargs tmux switch-client -t"
|
||||
|
||||
# THEME
|
||||
|
||||
right_arrow_icon=''
|
||||
left_arrow_icon=''
|
||||
upload_speed_icon=''
|
||||
download_speed_icon=''
|
||||
session_icon=''
|
||||
user_icon=''
|
||||
time_icon=''
|
||||
date_icon=''
|
||||
time_format='%T'
|
||||
date_format='%F'
|
||||
|
||||
# short for Theme-Colour
|
||||
TC="#${config.colorScheme.colors.base09}"
|
||||
|
||||
G01=#080808 #232
|
||||
G02=#121212 #233
|
||||
G03=#1c1c1c #234
|
||||
#G04=#262626 #235
|
||||
G04=#${config.colorScheme.colors.base00} #235
|
||||
G05=#303030 #236
|
||||
#G06=#3a3a3a #237
|
||||
G06=#${config.colorScheme.colors.base02} #237
|
||||
G07=#444444 #238
|
||||
G08=#4e4e4e #239
|
||||
G09=#585858 #240
|
||||
G10=#626262 #241
|
||||
G11=#6c6c6c #242
|
||||
G12=#767676 #243
|
||||
|
||||
FG="#${config.colorScheme.colors.base03}"
|
||||
BG="#${config.colorScheme.colors.base00}"
|
||||
|
||||
# Status options
|
||||
set-option -gq status-interval 1
|
||||
set-option -gq status on
|
||||
|
||||
# Basic status bar colors
|
||||
set-option -gq status-fg "$FG"
|
||||
set-option -gq status-bg "$BG"
|
||||
set-option -gq status-attr none
|
||||
|
||||
# tmux-prefix-highlight
|
||||
set-option -gq @prefix_highlight_fg "$BG"
|
||||
set-option -gq @prefix_highlight_bg "$FG"
|
||||
set-option -gq @prefix_highlight_show_copy_mode 'on'
|
||||
set-option -gq @prefix_highlight_copy_mode_attr "fg=$TC,bg=$BG,bold"
|
||||
set-option -gq @prefix_highlight_output_prefix "#[fg=$TC]#[bg=$BG]$left_arrow_icon#[bg=$TC]#[fg=$BG]"
|
||||
set-option -gq @prefix_highlight_output_suffix "#[fg=$TC]#[bg=$BG]$right_arrow_icon"
|
||||
|
||||
#
|
||||
# Left side of status bar
|
||||
set-option -gq status-left-bg "$G04"
|
||||
set-option -gq status-left-fg "G12"
|
||||
set-option -gq status-left-length 150
|
||||
user=${user}
|
||||
LS="#[fg=$G04,bg=$TC,bold] $user_icon $user@#h #[fg=$TC,bg=$G06,nobold]$right_arrow_icon#[fg=$TC,bg=$G06] $session_icon #S "
|
||||
LS="$LS#[fg=$G06,bg=$BG]$right_arrow_icon"
|
||||
LS="$LS#{prefix_highlight}"
|
||||
|
||||
set-option -gq status-left "$LS"
|
||||
|
||||
# Right side of status bar
|
||||
set-option -gq status-right-bg "$BG"
|
||||
set-option -gq status-right-fg "G12"
|
||||
set-option -gq status-right-length 150
|
||||
RS="#[fg=$G06]$left_arrow_icon#[fg=$TC,bg=$G06] $time_icon $time_format #[fg=$TC,bg=$G06]$left_arrow_icon#[fg=$G04,bg=$TC] $date_icon $date_format "
|
||||
|
||||
set-option -gq status-right "$RS"
|
||||
|
||||
# Window status
|
||||
set-option -gq window-status-format " #I:#W#F "
|
||||
set-option -gq window-status-current-format "#[fg=$BG,bg=$G06]$right_arrow_icon#[fg=$TC,bold] #I:#W#F #[fg=$G06,bg=$BG,nobold]$right_arrow_icon"
|
||||
|
||||
# Window separator
|
||||
set-option -gq window-status-separator ""
|
||||
|
||||
# Window status alignment
|
||||
set-option -gq status-justify centre
|
||||
|
||||
# Current window status
|
||||
set-option -gq window-status-current-statys "fg=$TC,bg=$BG"
|
||||
|
||||
# Pane border
|
||||
set-option -gq pane-border-style "fg=$G07,bg=default"
|
||||
|
||||
# Active pane border
|
||||
set-option -gq pane-active-border-style "fg=$TC,bg=$BG"
|
||||
|
||||
# Pane number indicator
|
||||
set-option -gq display-panes-colour "$G07"
|
||||
set-option -gq display-panes-active-colour "$TC"
|
||||
|
||||
# Clock mode
|
||||
set-option -gq clock-mode-colour "$TC"
|
||||
set-option -gq clock-mode-style 24
|
||||
|
||||
# Message
|
||||
set-option -gq message-style "fg=$TC,bg=$BG"
|
||||
|
||||
# Command message
|
||||
set-option -gq message-command-style "fg=$TC,bg=$BG"
|
||||
|
||||
# Copy mode highlight
|
||||
set-option -gq mode-style "bg=$TC,fg=$FG"
|
||||
|
||||
# vim: set ft=tmux tw=0 nowrap:
|
||||
|
||||
'';
|
||||
};
|
||||
|
||||
programs.tmate = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue