feat(roles/tmux): add tmux role and remove tmux from tools role#275
Open
NavidSassan wants to merge 2 commits into
Open
feat(roles/tmux): add tmux role and remove tmux from tools role#275NavidSassan wants to merge 2 commits into
NavidSassan wants to merge 2 commits into
Conversation
Add a dedicated tmux role that installs tmux and deploys a system-wide /etc/tmux.conf with sensible defaults (larger scrollback buffer, mouse support, base-index 1, renumber-windows, shorter escape-time, 256-color, set-titles, vi copy mode). Scrollback size and mouse support are configurable; everything else is a static baseline. Remove tmux from the tools role and wire the new role into setup_basic (guarded by setup_basic__skip_tmux) and a standalone tmux.yml playbook, so existing setups keep getting tmux while gaining the managed config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a dedicated
tmuxrole and removes tmux from thetoolsrole.The new role installs tmux and deploys a system-wide
/etc/tmux.confwith sensible, non-opinionated defaults for Linux System Engineers:history-limit, configurable)base-index 1/pane-base-index 1renumber-windows onescape-time(better with vim)screen-256colorset-titles onScrollback size and mouse support are exposed as variables (
tmux__history_limit,tmux__mouse); the rest is a static baseline. No keybindings, theme, status-bar widgets or plugins, those belong in per-user dotfiles.Changes
roles/tmux/(tasks, defaults, README,/etc/tmux.conftemplate), modeled on thechronyrole and theexampleconventions.tmuxfrom thetoolsrole (tasks + README).setup_basic.yml(guarded bysetup_basic__skip_tmux) so existing baseline setups keep getting tmux, now with a managed config.playbooks/tmux.yml.playbooks/README.md(newtmux.ymlsection +setup_basicskip-var entry) andCHANGELOG.md.Verification
rpm -qc tmuxempty on Rocky 9), so/etc/tmux.confis safe to manage and no rpmnew/rpmsave cleanup is needed.