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
2024-03-18 05:07:27 +05:30
< h3 > Make tmux powerful and pretty 🥊💅< / h3 >
2022-08-09 04:41:17 +05:30
< / div >
2024-03-17 08:42:12 +05:30
tmux2k is a highly customizable framework designed to enhance your tmux status bar, providing you with a sleek and informative interface for your terminal sessions.
2022-08-09 04:41:17 +05:30
2024-03-17 08:42:12 +05:30
## ✨ Features
2022-08-09 04:41:17 +05:30
2024-03-17 08:42:12 +05:30
- **Enhanced Aesthetics**: Prettify your tmux setup with a stylish and modern status bar.
- **Informative Display**: Gain access to all the essential information you need right on your status bar, including system stats, git branch, weather updates, and more.
- **Plugin Ecosystem**: Comes with a wide array of plugins to tailor your status bar to your specific needs, covering everything from system monitoring to version control integration.
- **Ease of Customization**: Customize and extend tmux2k effortlessly, thanks to its intuitive configuration options and flexible architecture.
- **Dynamic Updates**: Enjoy real-time updates and dynamic content rendering for a seamless and responsive user experience.
2024-03-17 07:53:21 +05:30
2024-03-27 12:10:46 +05:30
### 🎨 Available Themes:
2024-04-03 07:38:06 +05:30
- default 
- default icons 
- catppuccin 
- catppuccin icons 
- gruvbox 
- gruvbox icons 
- monokai 
- monokai icons 
- onedark 
- onedark icons 
- duo 
- duo icons 
- duo blue 
- default no powerline 
To use themes:
```bash
# use a theme
set -g @tmux2k -theme 'onedark'
# to show icons only
set -g @tmux2k -icons-only true
# to customize duo bg and fg
set -g @tmux2k -duo-fg "#1688f0 " # this will get you duo blue shown above
set -g @tmux2k -duo-bg "#000000 " # this will set the bg for duo theme
2024-04-03 07:43:35 +05:30
# to set powerline symbols
set -g @tmux2k -right-sep # alternate right status bar sep
set -g @tmux2k -win-right-sep # alternate window right sep
2024-03-17 08:20:49 +05:30
2024-04-03 07:43:35 +05:30
# to not show powerline
2024-04-03 07:38:06 +05:30
set -g @tmux2k -show-powerline false
2024-03-17 08:42:12 +05:30
2024-04-03 07:43:35 +05:30
# set start icon, accpets: `session`, 'window`, or any string
set -g @tmux2k -start-icon ""
2024-04-03 07:38:06 +05:30
```
#### 🖌️ Customize Theme Colors
##### Available Colors:
- `text` : Default text color. Default: `#282a36`
- `bg_main` : Background color for main sections. Default: `#15152a`
- `bg_alt` : Background color for alternate sections. Default: `#45455a`
- `black` : Black color. Default: `#0a0a0f`
- `white` : White color. Default: `#d5d5da`
- `red` : Red color. Default: `#ff001f`
- `light_red` : Light red color. Default: `#ff0055`
- `green` : Green color. Default: `#3dd50a`
- `light_green` : Light green color. Default: `#ccffcc`
- `blue` : Blue color. Default: `#1688f0`
- `light_blue` : Light blue color. Default: `#11dddd`
- `yellow` : Yellow color. Default: `#ffb86c`
- `light_yellow` : Light yellow color. Default: `#ffd21a`
- `purple` : Purple color. Default: `#bf58ff`
- `light_purple` : Light purple color. Default: `#ff65c6`
To customize theme colors:
```bash
set -g @tmux2k -text '#cdcdcd ' # change text to white
set -g @tmux2k -bg-main '#ffffff ' # change bg to white
set -g @tmux2k -yellow '#f8c800 ' # change yellow color
```
2024-03-27 12:10:46 +05:30
2024-04-03 07:43:35 +05:30
> You may have to restart `tmux` for some changes to reflect
2022-08-09 04:41:17 +05:30
2024-03-17 08:42:12 +05:30
### 🧩 Available Plugins
2024-03-17 07:53:21 +05:30
- `battery` : Show battery stats and percentage
- `git` : Show Git branch and status information
- `cpu` : Show CPU usage information
2024-10-31 06:58:06 +05:30
- `cwd` : Show current working directory
2024-03-17 07:53:21 +05:30
- `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
2024-07-05 17:08:58 +08:00
- `window` : tmux window list
2024-03-17 07:53:21 +05:30
2024-04-03 07:38:06 +05:30
To use plugins:
```bash
# set the left and right plugin sections
set -g @tmux2k -left-plugins "git cpu ram"
set -g @tmux2k -right-plugins "battery network time"
2024-07-29 17:04:21 +05:30
# to set window list alignment (centre by default)
set -g @tmux2k -window-list-alignment 'left'
2024-04-03 07:38:06 +05:30
# to customize plugin colors
set -g @tmux2k -[plugin-name]-colors "[background] [foreground]"
set -g @tmux2k -cpu-colors "red black" # set cpu plugin bg to red, fg to black
2024-04-03 07:43:35 +05:30
# to enable compact window list size
set -g @tmux2k -compact-windows true
2024-03-27 13:25:18 +05:30
# change refresh rate
set -g @tmux2k -refresh-rate 5
# weather scale
2022-08-13 17:00:00 +05:30
set -g @tmux2k -show-fahrenheit false
2024-03-27 13:25:18 +05:30
# 24 hour time
2022-08-13 17:00:00 +05:30
set -g @tmux2k -military-time true
2024-03-17 04:39:32 +05:30
# network interface to watch
2024-03-17 08:11:44 +05:30
set -g @tmux2k -network-name "wlo1"
2024-04-03 07:38:06 +05:30
```
#### 🪆 Add New Plugins
2024-03-17 08:20:49 +05:30
To add a new plugin, add a script to the [scripts ](./scripts ) folder that prints something to the console.
> The plugin name and script file name must match e.g: plugin named `foo` should have a file called `scripts/foo.sh`
2024-03-17 08:42:12 +05:30
## ⚡ Setup
### ⚙️ Requirements
2022-08-09 04:41:17 +05:30
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` .
2024-03-29 20:46:35 +05:30
- bash 5.2 or newer, mac users can install it using `brew install bash`
2024-03-17 04:39:32 +05:30
- [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
2024-03-17 08:42:12 +05:30
### 💻 Installation
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
2024-03-17 04:39:32 +05:30
- Run `tmux`
- Use the `tpm` install command: prefix + I (default prefix is `ctrl+b` )
2022-08-09 04:41:17 +05:30
2024-03-17 08:42:12 +05:30
You can also directly clone the repo to your `~/.tmux/plugins/` folder.
## 🏗️ What's Next
2022-08-09 04:41:17 +05:30
2024-04-03 07:38:06 +05:30
- You tell me!
2022-08-09 04:41:17 +05:30
2024-03-17 08:42:12 +05:30
## 🧑💻 Behind The Code
2022-08-09 04:41:17 +05:30
2024-03-17 08:42:12 +05:30
### 🌈 Inspiration
2024-04-03 07:38:06 +05:30
I came across [dracula/tmux ](https://github.com/dracula/tmux ) sometime back and I wanted to create a more customizable and easy to expand solution.
2024-03-17 04:39:32 +05:30
2024-03-17 08:42:12 +05:30
### 💡 Challenges/Learnings
2024-03-17 04:39:32 +05:30
2024-03-17 08:42:12 +05:30
- Learned a lot about the `tmux` and `tpm` ecosystem.
- Did some fancy shell scripting.
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 >