2022-08-09 04:41:17 +05:30
|
|
|
<div align = "center">
|
|
|
|
|
|
2022-08-09 04:41:43 +05:30
|
|
|
<h1><a href="https://2kabhishek.github.io/tmux2k">tmux2k</a></h1>
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-09 04:41:43 +05:30
|
|
|
<a href="https://github.com/2KAbhishek/tmux2k/blob/main/LICENSE">
|
|
|
|
|
<img alt="License" src="https://img.shields.io/github/license/2kabhishek/tmux2k?style=flat&color=eee&label="> </a>
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-09 04:41:43 +05:30
|
|
|
<a href="https://github.com/2KAbhishek/tmux2k/graphs/contributors">
|
|
|
|
|
<img alt="People" src="https://img.shields.io/github/contributors/2kabhishek/tmux2k?style=flat&color=ffaaf2&label=People"> </a>
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-09 04:41:43 +05:30
|
|
|
<a href="https://github.com/2KAbhishek/tmux2k/stargazers">
|
|
|
|
|
<img alt="Stars" src="https://img.shields.io/github/stars/2kabhishek/tmux2k?style=flat&color=98c379&label=Stars"></a>
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-09 04:41:43 +05:30
|
|
|
<a href="https://github.com/2KAbhishek/tmux2k/network/members">
|
|
|
|
|
<img alt="Forks" src="https://img.shields.io/github/forks/2kabhishek/tmux2k?style=flat&color=66a8e0&label=Forks"> </a>
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-09 04:41:43 +05:30
|
|
|
<a href="https://github.com/2KAbhishek/tmux2k/watchers">
|
|
|
|
|
<img alt="Watches" src="https://img.shields.io/github/watchers/2kabhishek/tmux2k?style=flat&color=f5d08b&label=Watches"> </a>
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-09 04:41:43 +05:30
|
|
|
<a href="https://github.com/2KAbhishek/tmux2k/pulse">
|
|
|
|
|
<img alt="Last Updated" src="https://img.shields.io/github/last-commit/2kabhishek/tmux2k?style=flat&color=e06c75&label="> </a>
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
<h3>Power & Pizzazz for tmux 🥊💅</h3>
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-17 09:50:22 +05:30
|
|
|
<figure>
|
|
|
|
|
<img src= "images/screenshot-full.png" alt="tmux2k Demo">
|
|
|
|
|
<br/>
|
|
|
|
|
<figcaption>tmux2k full screenshot</figcaption>
|
|
|
|
|
</figure>
|
|
|
|
|
|
2022-08-09 04:41:17 +05:30
|
|
|
<figure>
|
2022-08-09 04:41:43 +05:30
|
|
|
<img src= "images/screenshot.png" alt="tmux2k Demo">
|
2022-08-09 04:41:17 +05:30
|
|
|
<br/>
|
2022-08-17 09:50:22 +05:30
|
|
|
<figcaption>tmux2k statusbar screenshot</figcaption>
|
2022-08-09 04:41:17 +05:30
|
|
|
</figure>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
## What is this
|
|
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
tmux2k is a `tmux` plugin for that adds `powerline` support and pretty colors to your `tmux` status bar.
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2024-03-17 07:53:21 +05:30
|
|
|
## Features
|
|
|
|
|
|
|
|
|
|
Available Plugins:
|
|
|
|
|
|
|
|
|
|
- `battery`: Show battery stats and percentage
|
|
|
|
|
- `git`: Show Git branch and status information
|
|
|
|
|
- `cpu`: Show CPU usage information
|
|
|
|
|
- `gpu`: Show GPU usage information
|
|
|
|
|
- `ram`: Show RAM usage information
|
|
|
|
|
- `network`: Show network status and statistics
|
|
|
|
|
- `bandwidth`: Show network bandwidth usage
|
|
|
|
|
- `ping`: Show network ping statistics
|
|
|
|
|
- `time`: Show current time and date
|
|
|
|
|
- `weather`: Show weather information
|
|
|
|
|
|
2022-08-09 04:41:17 +05:30
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
|
|
Before you begin, ensure you have met the following requirements:
|
|
|
|
|
|
2024-03-17 04:39:32 +05:30
|
|
|
- You have installed the latest version of `tmux`.
|
|
|
|
|
- [tpm](https://github.com/tmux-plugins/tpm) for managing `tmux` plugins.
|
|
|
|
|
- A [patched nerd font](https://www.nerdfonts.com/) for `powerline` and glyphs support.
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
## Installing tmux2k
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
Using `tpm`
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
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:
|
2022-08-09 04:41:17 +05:30
|
|
|
|
|
|
|
|
```bash
|
2022-08-13 18:33:25 +05:30
|
|
|
set -g @plugin '2kabhishek/tmux2k'
|
2022-08-13 17:00:00 +05:30
|
|
|
|
|
|
|
|
```
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
Add any configuration options below this line in your tmux config.
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
### Activating tmux2k
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2024-03-17 04:39:32 +05:30
|
|
|
- Make sure run -b `~/.tmux/plugins/tpm/tpm` is at the bottom of your `.tmux.conf`
|
|
|
|
|
- Run `tmux`
|
|
|
|
|
- Use the `tpm` install command: prefix + I (default prefix is `ctrl+b`)
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
## Configuring tmux2k
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
```bash
|
|
|
|
|
# Tmux 2K default configs
|
2024-03-17 04:39:32 +05:30
|
|
|
set -g @tmux2k-left-plugins "git cpu ram"
|
2023-04-07 00:33:48 +05:30
|
|
|
set -g @tmux2k-right-plugins "battery network time"
|
2022-08-13 17:00:00 +05:30
|
|
|
set -g @tmux2k-show-fahrenheit false
|
|
|
|
|
set -g @tmux2k-military-time true
|
2024-03-17 04:39:32 +05:30
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
set -g @tmux2k-[plugin-name]-colors "[background] [foreground]"
|
2024-03-17 07:53:21 +05:30
|
|
|
set -g @tmux2k-cpu-colors "blue dark_gray"
|
2022-08-13 17:00:00 +05:30
|
|
|
|
2024-03-17 07:53:21 +05:30
|
|
|
# it can accept `session`, 'window`, or any string
|
|
|
|
|
set -g @tmux2k-start-icon ""
|
2022-08-13 17:00:00 +05:30
|
|
|
|
2024-03-17 04:39:32 +05:30
|
|
|
# network interface to watch
|
2023-03-29 15:11:49 +05:30
|
|
|
set -g @tmux2k-network-name "en0"/"wlo1" (Mac/Linux)
|
|
|
|
|
|
2022-08-13 17:00:00 +05:30
|
|
|
# update powerline symbols
|
2024-03-17 07:53:21 +05:30
|
|
|
set -g @tmux2k-show-powerline true
|
|
|
|
|
set -g @tmux2k-left-sep ""
|
|
|
|
|
set -g @tmux2k-right-sep ""
|
2022-08-13 17:00:00 +05:30
|
|
|
|
|
|
|
|
# change refresh rate
|
2022-08-13 18:33:25 +05:30
|
|
|
set -g @tmux2k-refresh-rate 5
|
2024-03-17 04:39:32 +05:30
|
|
|
|
2022-08-09 04:41:17 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## How it was built
|
|
|
|
|
|
2022-08-13 17:30:31 +05:30
|
|
|
tmux2k was built using `neovim`, `shellcheck`, `nerd-fonts`.
|
2022-08-09 04:41:17 +05:30
|
|
|
|
|
|
|
|
## What I learned
|
|
|
|
|
|
2024-03-17 04:39:32 +05:30
|
|
|
- Learned a lot about the `tmux` and `tpm` ecosystem.
|
|
|
|
|
- Did some fancy shell scripting.
|
|
|
|
|
|
|
|
|
|
## Inspiration
|
|
|
|
|
|
|
|
|
|
tmux2k was inspired by [dracula/tmux](https://github.com/dracula/tmux).
|
2022-08-09 04:41:17 +05:30
|
|
|
|
|
|
|
|
## What's next
|
|
|
|
|
|
|
|
|
|
### To-Do
|
|
|
|
|
|
2024-03-17 04:39:32 +05:30
|
|
|
You tell me!
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2023-11-07 03:09:30 +05:30
|
|
|
### 🧰 Tooling
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2024-03-17 04:39:32 +05:30
|
|
|
- [dots2k](https://github.com/2kabhishek/dots2k) — Dev Environment
|
|
|
|
|
- [nvim2k](https://github.com/2kabhishek/nvim2k) — Personalized Editor
|
|
|
|
|
- [sway2k](https://github.com/2kabhishek/sway2k) — Desktop Environment
|
|
|
|
|
- [qute2k](https://github.com/2kabhishek/qute2k) — Personalized Browser
|
2022-08-09 04:41:17 +05:30
|
|
|
|
2023-11-07 03:09:30 +05:30
|
|
|
### 🔍 More Info
|
2022-08-17 09:58:47 +05:30
|
|
|
|
2024-03-17 04:39:32 +05:30
|
|
|
- [tmux-tea](https://github.com/2kabhishek/tmux-tea) — Simple and powerful tmux session manager
|
|
|
|
|
- [tmux-tilit](https://github.com/2kabhishek/tmux-tilit) — Turns tmux into a terminal window manager
|
2022-08-17 09:53:14 +05:30
|
|
|
|
2022-08-09 04:41:17 +05:30
|
|
|
<div align="center">
|
|
|
|
|
|
2023-11-07 03:09:30 +05:30
|
|
|
<strong>⭐ hit the star button if you found this useful ⭐</strong><br>
|
|
|
|
|
|
|
|
|
|
<a href="https://github.com/2KAbhishek/tmux2k">Source</a>
|
|
|
|
|
| <a href="https://2kabhishek.github.io/blog" target="_blank">Blog </a>
|
|
|
|
|
| <a href="https://twitter.com/2kabhishek" target="_blank">Twitter </a>
|
|
|
|
|
| <a href="https://linkedin.com/in/2kabhishek" target="_blank">LinkedIn </a>
|
|
|
|
|
| <a href="https://2kabhishek.github.io/links" target="_blank">More Links </a>
|
|
|
|
|
| <a href="https://2kabhishek.github.io/projects" target="_blank">Other Projects </a>
|
2022-08-09 04:41:17 +05:30
|
|
|
|
|
|
|
|
</div>
|