tmux-kanagawa/INSTALL.md

69 lines
2.9 KiB
Markdown
Raw Normal View History

### [tmux](https://github.com/tmux/tmux/wiki)
2020-12-01 01:03:04 +01:00
#### Install using [tpm](https://github.com/tmux-plugins/tpm)
If you are a tpm user, you can install the theme and keep up to date by adding the following to your .tmux.conf file:
2020-12-01 01:03:04 +01:00
set -g @plugin 'dracula/tmux'
2020-12-01 01:03:04 +01:00
Add any configuration options below this line in your tmux config.
#### Install with [Nix](https://nixos.org)
2020-11-30 02:50:23 +01:00
If you're using [home-manager](https://github.com/nix-community/home-manager), an example config would look similar to this:
Then run `home-manager switch`, the `Activating theme` section doesn't apply here.
```nix
programs.tmux = {
enable = true;
clock24 = true;
plugins = with pkgs.tmuxPlugins; [
sensible
yank
{
plugin = dracula;
extraConfig = ''
set -g @dracula-show-battery false
set -g @dracula-show-powerline true
set -g @dracula-refresh-rate 10
'';
}
];
extraConfig = ''
set -g mouse on
'';
};
```
#### Activating theme
1. Make sure `run -b '~/.tmux/plugins/tpm/tpm'` is at the bottom of your .tmux.conf
2. Run tmux
3. Use the tpm install command: `prefix + I` (default prefix is ctrl+b)
#### Configuration
Customize the status bar by adding any of these lines to your .tmux.conf as desired:
* Disable battery functionality: `set -g @dracula-show-battery false`
* Disable network functionality: `set -g @dracula-show-network false`
2021-04-10 05:44:11 +02:00
* Enable network bandwith functionality: `set -g @dracula-network-bandwith $network_name`
- You could get the `$network_name` through the command: `sudo lshw -class network -short | grep wl | awk '{print $2}'`
2020-04-29 20:37:15 +02:00
* Disable weather functionality: `set -g @dracula-show-weather false`
2020-10-18 10:57:04 +02:00
* Disable time functionality: `set -g @dracula-show-time false`
2020-10-18 10:51:26 +02:00
* Disable location information: `set -g @dracula-show-location false`
2020-04-29 20:37:15 +02:00
* Switch from default fahrenheit to celsius: `set -g @dracula-show-fahrenheit false`
2020-05-15 08:47:21 +02:00
* Enable powerline symbols: `set -g @dracula-show-powerline true`
2020-05-26 23:56:36 +02:00
* Switch powerline symbols `set -g @dracula-show-left-sep ` for left and `set -g @dracula-show-right-sep ` for right symbol (can set any symbol you like as seperator)
* Enable window flags: `set -g @dracula-show-flags true`
2020-08-10 14:04:51 +02:00
* Adjust the refresh rate for the bar `set -g @dracula-refresh-rate 5` the default is 5, it can accept any number
* Enable military time: `set -g @dracula-military-time true`
2020-08-01 16:02:50 +02:00
* Disable timezone: `set -g @dracula-show-timezone false`
* Switch the left smiley icon `set -g @dracula-show-left-icon session` it can accept `session`, `smiley`, `window`, or any character.
2020-12-16 17:59:24 +01:00
* Add padding to the left smiley icon `set -g @dracula-left-icon-padding` default is 1, it can accept any number and 0 disables padding.
* Enable high contrast pane border: `set -g @dracula-border-contrast true`
2020-06-30 04:44:51 +02:00
* Enable cpu usage: `set -g @dracula-cpu-usage true`
* Enable ram usage: `set -g @dracula-ram-usage true`
* Enable gpu usage: `set -g @dracula-gpu-usage true`
* Swap date to day/month `set -g @dracula-day-month true`