Tmux : Customize status bar.
This commit is contained in:
parent
dd2c194b6e
commit
6d1c617fc4
|
@ -14,5 +14,8 @@
|
|||
|
||||
# Nix.
|
||||
NIX_CURRENT_SYSTEM = "${pkgs.stdenv.system}";
|
||||
|
||||
# Shell.
|
||||
TERM = "screen-256color";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -41,13 +41,13 @@ in {
|
|||
lua dofile("${nvimSrc}/plugin/Filetree.lua")
|
||||
lua dofile("${nvimSrc}/plugin/lsp/Rust.lua")
|
||||
lua dofile("${nvimSrc}/plugin/lsp/Tex.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Gruvbox.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Bufferline.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Lualine.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Autoclose.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Gitsigns.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Trouble.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Tokyonight.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Gruvbox.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Closebuffers.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Telescope.lua")
|
||||
lua dofile("${nvimSrc}/plugin/Todo.lua")
|
||||
|
|
|
@ -126,3 +126,8 @@ function _is_tmux() {
|
|||
function _is_root() {
|
||||
[[ "${UID}" = 0 ]]
|
||||
}
|
||||
|
||||
# Ring a bell.
|
||||
function _bell() {
|
||||
echo -e '\a'
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ function toggle_light()
|
|||
elseif vim.o.background == "dark" then
|
||||
vim.o.background = "light"
|
||||
end
|
||||
-- require("lualine").setup()
|
||||
end
|
||||
|
||||
rekey_normal("<Leader>[", "<cmd>lua toggle_contrast()<cr>")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require("lualine").setup {
|
||||
options = {
|
||||
-- theme = "ayu_mirage",
|
||||
theme = "gruvbox",
|
||||
icons_enabled = true,
|
||||
component_separators = { left = "", right = ""},
|
||||
section_separators = { left = "", right = ""},
|
||||
|
|
|
@ -65,18 +65,21 @@ set -g status-position bottom
|
|||
set -g status-justify left
|
||||
set -g status-style 'bg=color236 fg=color230'
|
||||
|
||||
set -g status-left ' #[bold]#H-#S #(count=$(tmux list-clients -t #S | wc -l); [ ${count} -gt 1 ] && echo "(${count}) ")'
|
||||
set -g status-left '#[bold,bg=color143,fg=color236] #H-#S #(count=$(tmux list-clients -t #S | wc -l); [ ${count} -gt 1 ] && echo "(${count}) ")#[bg=color236,fg=color143]'
|
||||
set -g status-left-length 50
|
||||
set -g status-right ' #(head -c -1 /sys/class/power_supply/BAT*/capacity 2> /dev/null && echo -n "% ")#[fg=color144,bg=color236] %Y-%m-%d #[bg=color144,fg=color236,bold] %H:%M '
|
||||
set -g status-right ' #(head -c -1 /sys/class/power_supply/BAT*/capacity 2> /dev/null && echo -n "% ")#[fg=color187,bg=color236] %Y-%m-%d #[fg=color143]#[bg=color143,fg=color236,bold] %H:%M '
|
||||
set -g status-right-length 50
|
||||
|
||||
setw -g window-status-current-style 'fg=color236 bg=color184 bold'
|
||||
setw -g window-status-current-format ' #[fg=color236]#W#[fg=color236]#F '
|
||||
set-window-option -g window-status-separator ''
|
||||
|
||||
setw -g window-status-style 'fg=color236 bg=color144'
|
||||
setw -g window-status-format ' #[fg=color236]#W#[fg=color236] '
|
||||
setw -g window-status-current-style 'fg=color187 bg=color236 bold italics'
|
||||
setw -g window-status-current-format ' #W '
|
||||
|
||||
setw -g window-status-bell-style 'fg=color236 bg=color144 bold'
|
||||
setw -g window-status-style 'fg=color187 bg=color236'
|
||||
setw -g window-status-format ' #W '
|
||||
|
||||
set-window-option -g visual-bell off
|
||||
setw -g window-status-bell-style 'bold blink'
|
||||
|
||||
# Create new window.
|
||||
bind -n M-Escape new-window -c "#{pane_current_path}"
|
||||
|
@ -93,3 +96,8 @@ bind -n M-q previous-window
|
|||
# Move window.
|
||||
bind -n M-E swap-window -t +1\; select-window -t +1
|
||||
bind -n M-Q swap-window -t -1\; select-window -t -1
|
||||
|
||||
# Env.
|
||||
set-option -g default-terminal "tmux-256color"
|
||||
set-option -g focus-events on
|
||||
set-option -sa terminal-features 'RGB'
|
||||
|
|
Loading…
Reference in a new issue