Update tmux config
- Add layout managment via tmuxp - Add function to run z and tmuxp - move tmux config from home folder to config folder
This commit is contained in:
parent
6fda168c66
commit
eebd9d4a78
10 changed files with 45 additions and 17 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -5,6 +5,9 @@ config/vifm/Trash
|
||||||
config/vifm/vifminfo.json
|
config/vifm/vifminfo.json
|
||||||
config/lazygit/state.yml
|
config/lazygit/state.yml
|
||||||
config/mpv/shaders
|
config/mpv/shaders
|
||||||
|
config/tmux/plugins/*
|
||||||
|
!config/tmux/plugins/.gitkeep
|
||||||
|
|
||||||
|
|
||||||
config/spicetify/Backup
|
config/spicetify/Backup
|
||||||
# nixos/hardware-configuration.nix
|
# nixos/hardware-configuration.nix
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,7 @@ return {
|
||||||
disable_insert_on_commit = "auto",
|
disable_insert_on_commit = "auto",
|
||||||
kind = "replace",
|
kind = "replace",
|
||||||
disable_line_numbers = false,
|
disable_line_numbers = false,
|
||||||
|
console_timeout = 8000,
|
||||||
-- commit_editor = {
|
-- commit_editor = {
|
||||||
-- kind = "tab",
|
-- kind = "tab",
|
||||||
-- },
|
-- },
|
||||||
|
|
|
||||||
0
config/tmux/plugins/.gitkeep
Normal file
0
config/tmux/plugins/.gitkeep
Normal file
|
|
@ -66,7 +66,13 @@ bind l next-window
|
||||||
# set -g status-right '#(bartib current | sed -n 3p | awk \'{print $NF}\')'
|
# set -g status-right '#(bartib current | sed -n 3p | awk \'{print $NF}\')'
|
||||||
|
|
||||||
## Plugins
|
## Plugins
|
||||||
run -b '~/.tmux/plugins/tpm/tpm'
|
|
||||||
|
## Auto install plugins
|
||||||
|
if "test ! -d ~/.config/tmux/plugins/tpm" \
|
||||||
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm && ~/.config/tmux/plugins/tpm/bin/install_plugins'"
|
||||||
|
|
||||||
|
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins/tpm'
|
||||||
|
run -b '~/.config/tmux/plugins/tpm/tpm'
|
||||||
|
|
||||||
set -g @plugin 'catppuccin/tmux'
|
set -g @plugin 'catppuccin/tmux'
|
||||||
# set -g @plugin 'rwxd/catppuccin-tmux'
|
# set -g @plugin 'rwxd/catppuccin-tmux'
|
||||||
|
|
|
||||||
7
config/tmuxp/coding.yml
Normal file
7
config/tmuxp/coding.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
session_name: shorthands
|
||||||
|
windows:
|
||||||
|
- window_name: main
|
||||||
|
layout: main-vertical
|
||||||
|
panes:
|
||||||
|
- shell_command: vi
|
||||||
|
- shell_command: pnpm dev
|
||||||
8
config/tmuxp/persona-page.yaml
Normal file
8
config/tmuxp/persona-page.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
session_name: persona-page
|
||||||
|
windows:
|
||||||
|
layout: main-vertical
|
||||||
|
panes:
|
||||||
|
- shell_command:
|
||||||
|
- nvim
|
||||||
|
focus: true
|
||||||
|
- pnpm
|
||||||
|
|
@ -27,3 +27,15 @@ tm() {
|
||||||
fi
|
fi
|
||||||
session=$(tmux list-sessions -F "#{session_name}" 2>/dev/null | fzf --exit-0 --select-1) && tmux $change -t "$session" || echo "No sessions found."
|
session=$(tmux list-sessions -F "#{session_name}" 2>/dev/null | fzf --exit-0 --select-1) && tmux $change -t "$session" || echo "No sessions found."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ta() {
|
||||||
|
export START_DIRECTORY="$(z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "${*##-* }" | sed 's/^[0-9,.]* *//')"
|
||||||
|
|
||||||
|
if [[ -z START_DIRECTORY ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
export SESSION_NAME="$(basename $START_DIRECTORY)"
|
||||||
|
|
||||||
|
tmuxp load $(fd -e yml . ~/.config/tmuxp | fzf)
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ dnf-plugin-system-upgrade
|
||||||
duf
|
duf
|
||||||
exa
|
exa
|
||||||
fd-find
|
fd-find
|
||||||
|
firefox-dev
|
||||||
flatpak
|
flatpak
|
||||||
fzf
|
fzf
|
||||||
gcc
|
gcc
|
||||||
|
|
@ -13,6 +14,7 @@ lazygit
|
||||||
neovim
|
neovim
|
||||||
nodejs
|
nodejs
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
|
python3-tmuxp
|
||||||
remove-retired-packages
|
remove-retired-packages
|
||||||
ripgrep
|
ripgrep
|
||||||
sd
|
sd
|
||||||
|
|
@ -21,4 +23,3 @@ tealdeer
|
||||||
tmux
|
tmux
|
||||||
tree-sitter-cli
|
tree-sitter-cli
|
||||||
zsh
|
zsh
|
||||||
firefox-dev
|
|
||||||
|
|
|
||||||
11
setup/config
11
setup/config
|
|
@ -6,15 +6,14 @@ original_pwd="$(pwd)"
|
||||||
cd "$DOTS/config" || exit
|
cd "$DOTS/config" || exit
|
||||||
|
|
||||||
readarray -t configs < <(
|
readarray -t configs < <(
|
||||||
fd -d 1 \
|
fd -d 1 \
|
||||||
--exclude "*.old" \
|
--exclude "*.old" \
|
||||||
--exclude "create*" \
|
--exclude "create*" \
|
||||||
--exclude "tmux" \
|
--exclude "git"
|
||||||
--exclude "git"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for dot in "${configs[@]}"; do
|
for dot in "${configs[@]}"; do
|
||||||
symlink "$(pwd)/$dot" "${CONFIG}"
|
symlink "$(pwd)/$dot" "${CONFIG}"
|
||||||
done
|
done
|
||||||
|
|
||||||
cd "$original_pwd" || exit
|
cd "$original_pwd" || exit
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
echo -e "\n${BLD}${SUL}${GRN}Setting up tmux...${RST}\n"
|
|
||||||
|
|
||||||
setup_zsh() {
|
|
||||||
symlink "$DOTS/config/tmux/tmux.conf" "$HOME"/.tmux.conf
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_zsh
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue