#!/bin/bash - # Example script has been taken from ubuntu wiki # With a little modification # SESSION =main The following example should give an example of that: attach to existing sessions, call your configuration file on every execution and to arrange your pane and window structure to your own needs. as /usr/bin/mux) which can makes jobs like e.g. There is also the possibility to arrange your own script (e.g. Tmux with this configuration file looks similarily like this one:įor further information of the Tmux configuration take a look at the bottom to the 'Additional informations' area. The functions are explained a little so you can find may a little easier your own ideas for an individual configuration. set - g status - right "#| #Users:#(who | wc -l)# - #Mem:#(free -m | awk '/Mem:/ ')#in /var " # Center window tabs set - g status - justify centre # Colorize active pane set - option - g pane - active - border - style fg = blue # End nf conf \ display - message "Reload config file." # enable activity alerts setw - g monitor - activity on set - g visual - activity on # Set scrollback to 10000 lines set - g history - limit 10000 # Status bar # set color for status bar set - option - g status - style bg = green, fg = black, dim # Show host name and IP address on left side of status bar set - g status - left - length 70 set - g status - left "#h - #(curl -s ) #|" # Define right statusbar lenght set - g status - right - length 60 # Show value of logged on users, how much RAM is free and how much HDD space are used in /var. # As a system wide configuration file in case there are more users on IPFire platform, # you can also use /etc/nf # set defaults set - option - g default - shell "/bin/bash" set - option - g default - command "bash -l" set - option - g default - terminal "screen-256color" # remap prefix to Control + a instead of the default Control + b to screen like style set - g prefix C - a unbind C - b bind C - a send - prefix # reload config also works while a session, please adapt it to your needs in case of a system wide configuration bind r source - file ~/. # tmux configuration file # can takes place for user root under ´/root/.nf. The configuration below is adapted to Tmux 3.x syntax. With version 3 comes some configuration directive changes. As a little example, which should give an overview of what it could be possible, the following configuration file ~/.nf can be used. 0 is the first windowĪs mentioned before, Tmux can also be used with a configuration file which can contains a lot of different functions. ![]() Sectionĭelete pane or window if one pane is leftĬhanges to window with allocated number. It should give only an overview of some useful key combinations to use Tmux. Note - The key-code list is by far not complete and you are invited to extend it. ![]() ![]() The different processing modes can be activated about the so-called "bind-key" which is by Default - or -b followed by the respective key-codes (key combination). Status-right "#(/home/tpreston/.tmux/plugins/tmux-battery/scripts/battery_status_bg.sh) b:#(/home/tpreston/.tmux/plugins/tmux-battery/scripts/battery_icon.sh)#(/home/tpreston/.tmux/plugins/tmux-battery/scripts/battery_percentage.Whereby this command offers 256 colors and an individual configuration file. These are my options activity-action other I understand there is a difference between "window names" and "pane titles", and that I can set the window name using (as detailed in the man page): tmux set-option allow-rename onīut this changes my window name to I'm running tmux 2.9a on Fedora 30. I would like the tmux window name to be "weechat", as if I had run a locally installed weechat - as is the case with man or nvim. In one of my tmux windows, I run a Weechat IRC client inside a Docker container, which I instantiate using a Bash script, which makes the tmux window name "bash".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |