Open tmux sessions with rofi
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
rofi-tmux-session
Generates output for rofi that lists active sessions. Selecting one will open a terminal and attach it to that session.
Install
First clone the repository, and enter the cloned directory
git clone https://git.temporus.me/temporus.me/rofi-tmux-session
cd rofi-steam
Then install it
# This installs it to ~/.cargo/bin
cargo install --path .
# Or if you want to install to a prefix else where, for example This
# will install the binary to ~/.local/bin, --root argument acts like a prefix
# so bin will be added automatically by cargo
cargo install --path . --root ~/.local
Usage
To use as a mode in rofi you need to add it to your modes list
Simplest example would be:
rofi -modes "tmux:rofi-tmux-session" -show "tmux"