updated tmux config and plugins, added tmuxp to dotfiles

This commit is contained in:
liph
2026-02-23 17:37:56 +01:00
parent 8925d9677e
commit f901141e5f
11 changed files with 139 additions and 7 deletions

View File

@@ -96,9 +96,9 @@ index-format=notmuch://~/.local/share/mail
#
# Default: flags:4,name<20%,subject,date>=
#index-columns=flags:4,name<20%,subject,date>=
border-char-vertical=""
border-char-vertical=" "
border-char-horizontal="─"
styleset-name=rose-pine
styleset-name="gruvbox-dark"
#
# Each name in index-columns must have a corresponding column-$name setting.

View File

@@ -0,0 +1,53 @@
*.default=true
*.normal=true
*.selected.bold=true
*.selected.bg=#ebdbb2
*.selected.fg=#282828
default.fg=#89b482
error.fg=#cc241d
warning.fg=#d65d0e
success.fg=#D8A657
tab.fg=#7c6f64
tab.bg=#282823
tab.selected.fg=#d5c4a1
tab.selected.bg=#282828
tab.selected.bold=true
border.fg=#d5c4a1
border.bold=true
msglist_unread.bold=true
msglist_unread.fg=#d8a657
msglist_unread.selected.bg=#ebdbb2
msglist_unread.selected.fg=#282828
msglist_flagged.fg=#f9e2af
msglist_flagged.bold=true
msglist_result.fg=#458588
msglist_result.bold=true
msglist_*.selected.bold=true
msglist_*.selected.bg=#ebdbb2
dirlist_*.selected.bold=true
dirlist_*.selected.bg=#ebdbb2
statusline_default.fg=#ebdbb2
statusline_default.bg=#282828
statusline_error.bold=true
statusline_success.bold=true
[viewer]
url.fg=#458588
url.underline=true
header.bold=true
signature.dim=true
diff_meta.bold=true
diff_chunk.fg=#458588
diff_chunk_func.fg=#458588
diff_chunk_func.bold=true
diff_add.fg=#D8A657
diff_del.fg=#cc241d
quote_*.fg=#d5c4a1
quote_1.fg=#b16286

View File

View File

@@ -49,6 +49,7 @@ layout {
preset-column-widths {
proportion 0.5
proportion 0.66667
proportion 0.3333
}
default-column-width {
proportion 0.5
@@ -192,6 +193,13 @@ window-rule {
}
open-floating true
}
window-rule {
match app-id="floating_yazi"
default-column-width {
proportion 0.6667
}
open-floating true
}
window-rule {
geometry-corner-radius 5
clip-to-geometry true
@@ -243,6 +251,9 @@ binds {
Mod+Mod5+Z hotkey-overlay-title="Open network-tui" {
spawn "kitty" "--class" "floating_network-tui" "-e" "network-tui"
}
Mod+Mod5+Y hotkey-overlay-title="Open Yazi" {
spawn "kitty" "--class" "floating_yazi" "-e" "yazi"
}
// Brightness Controll
Mod+Ctrl+0 {
spawn "sh" "-c" "~/scripts/layer_notify.sh 0"

View File

@@ -6,6 +6,12 @@ bind -n M-L next-window
set -g prefix C-s
set -g mouse on
bind _ split-window -h # Split vertical using prefix + |
bind - split-window -v # Split horizontal using prefix + -
# Reloading
bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
@@ -107,8 +113,12 @@ set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @plugin 'alexwforsythe/tmux-which-key'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'YlanAllouche/tmux-task-monitor'
set -g @plugin 'rickstaa/tmux-notify'
set -g @plugin 'TheSast/tmux-nav-master'
set -g @plugin 'omerxx/tmux-sessionx'
# Other examples:
# set -g @plugin 'github_username/plugin_name'

20
tmux/.tmuxp/coding.yaml Executable file
View File

@@ -0,0 +1,20 @@
session_name: coding
windows:
- focus: 'true'
layout: 2afa,174x42,0,0{87x42,0,0,0,86x42,88,0,2}
options:
automatic-rename: false
panes:
- focus: 'true'
shell_command: nvim
- yazi
start_directory: /mnt/tank/programming/spinstack
window_name: Nvim
- layout: b640,174x42,0,0,3
options:
automatic-rename: false
panes:
- focus: 'true'
shell_command: opencode
start_directory: /mnt/tank/programming/spinstack
window_name: Opencode

32
tmux/.tmuxp/home.yaml Executable file
View File

@@ -0,0 +1,32 @@
session_name: Home
windows:
- focus: "true"
layout: 2afe,174x42,0,0{87x42,0,0,1,86x42,88,0,2}
options:
automatic-rename: false
panes:
- neofetch
- focus: "true"
shell_command: yazi
start_directory: /home/liph
window_name: Base
- layout: 95db,174x42,0,0{87x42,0,0,3,86x42,88,0,43}
options:
automatic-rename: false
panes:
- focus: "true"
shell_command:
- cd /home/liph
# - zsh
- shell_command:
- cd /home/liph/dotfiles/tmux
- nvim
window_name: Yazi
- layout: db54,174x42,0,0,44
options:
automatic-rename: false
panes:
- focus: "true"
shell_command: aerc
start_directory: /home/liph
window_name: Aerc

View File

@@ -1,10 +1,11 @@
zshrc /home/liph/dotfiles/zshrc z
yazi /home/liph/dotfiles/yazi/.config/yazi y
tmux /home/liph/dotfiles/tmux d,t
tex /home/liph/Documents/tex D,t
tank /mnt/tank t,t
scripts /home/liph/scripts d,s
r /home/liph/Documents/r D,r
programming /home/liph/programming p
programming /mnt/tank/programming p
podman /mnt/flash1/podman t,p
ohmyposh /home/liph/dotfiles/ohmyposh/.config/ohmyposh d,o
obsidian /home/liph/Documents/obsidian/vault D,o

View File

@@ -52,7 +52,9 @@ alias nlof="~/scripts/fzf_listoldfiles.sh"
# tmux
alias ta='tmux attach'
alias tn='tmux new'
# alias tn='tmux new'
alias tnh='tmuxp load ~/.tmuxp/home.yaml'
alias tnc='tmuxp load ~/.tmuxp/coding.yaml'
alias tns='~/scripts/tmux-sessionizer.sh'
# eza

View File

@@ -46,3 +46,5 @@ export PATH="$HOME/.local/share/nvim/mason/bin:$PATH"
# you-should-use settings (optional)
# export YSU_MESSAGE_POSITION="after" # Show reminder after command output
# export YSU_HARDCORE=0 # Prevent execution if alias exists (probably too aggressive)
export GTK_FILE_CHOOSER_BACKEND="yazi"

View File

@@ -57,6 +57,7 @@ eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/zen.toml)"
# bindkey -e
# bindkey '^p' history-search-backward
# bindkey '^n' history-search-forward
bindkey -s '^T' ' tea^M ^M'
# History
HISTSIZE=5000