feat: make tmux status line more minimal

This commit is contained in:
max_richter 2021-09-23 23:23:04 +02:00
parent c58e1ff52e
commit f8b31c0333
2 changed files with 64 additions and 11 deletions

View File

@ -1,3 +1,5 @@
set -g default-terminal "screen-256color"
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
@ -14,28 +16,31 @@ unbind %
bind -Tcopy-mode WheelUpPane send -N1 -X scroll-up
bind -Tcopy-mode WheelDownPane send -N1 -X scroll-down
#Use Neovim style navigation
setw -g mode-keys vi
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# Customize status line
set -g status-position top # statusbar position
set -g status-interval 1
set -g window-status-format '#[fg=#777777]#(pwd="#{pane_current_path}"; echo ${pwd####*/})'
set -g window-status-current-format '#[fg=white, bold]#(pwd="#{pane_current_path}"; echo ${pwd####*/})'
set -g status-right-length 120
set -g status-right '#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load -m 2 -a 0 -g 0 --interval 1) | #(date +"%H:%M") | #[bold, fg=white]#(whoami)@#(hostname -s) '
set -g status-bg default
set -g status-fg "#777777"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
set -g @plugin 'tmux-plugins/tpm'
# Add some plugins
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @yank_action 'copy-pipe-no-clear'
bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
set -g @plugin 'dracula/tmux'
set -g @dracula-show-powerline true
set -g @dracula-show-left-icon window
set -g @dracula-show-timezone false
set -g @dracula-plugins "cpu-usage ram-usage"
set -g @dracula-cpu-usage-colors "dark_purple white"
set -g @dracula-show-flags false
#set -g @plugin "arcticicestudio/nord-tmux"
run '~/.tmux/plugins/tpm/tpm'

View File

@ -20,10 +20,13 @@ paq:setup({verbose = true}) {
"kyazdani42/nvim-web-devicons",
"kyazdani42/nvim-tree.lua",
"karb94/neoscroll.nvim",
"alexghergh/nvim-tmux-navigation",
-- Code Navigation
"junegunn/fzf",
"nvim-lua/popup.nvim",
"nvim-telescope/telescope.nvim",
-- For better git support
"tpope/vim-fugitive",
-- Postman like featuresi
"NTBBloodbath/rest.nvim",
-- Obsidian / Roam features
@ -66,7 +69,41 @@ if u.has_plugin("cmp") then
--g.NERDTreeDirArrows = true
-- g.NERDTreeCustomOpenArgs = {file = {where = "t"}}
g.nvim_tree_gitignore = 1
g.nvim_tree_auto_open = 1
g.nvim_tree_group_empty = 1
g.nvim_tree_lsp_diagnostics = 1
g.nvim_tree_special_files = {}
g.nvim_tree_icons = {
default = "",
symlink = "",
git = {
unstaged = "*",
staged = "",
unmerged = "",
renamed = "",
untracked = "",
deleted = "",
ignored = ""
},
folder = {
arrow_open = "",
arrow_closed = "",
default = "",
open = "",
empty = "",
empty_open = "",
symlink = "",
symlink_open = ""
},
lsp = {
hint = "",
info = "",
warning = "",
error = ""
}
}
g.hidden = true
g.filetype = true
g.material_terminal_italics = 1
@ -84,6 +121,17 @@ if u.has_plugin("cmp") then
g.mapleader = " "
require "keymappings"
require "nvim-tmux-navigation".setup {
keybindings = {
left = "<C-h>",
down = "<C-j>",
up = "<C-k>",
right = "<C-l>",
last_active = "<C-\\>",
next = "<C-Space>"
}
}
-- Treesitter config
local parser_configs = require("nvim-treesitter.parsers").get_parser_configs()
parser_configs.http = {