All Projects → uriel1998 → tdab

uriel1998 / tdab

Licence: MIT license
Create side and top bars in tmux easily, along with a "devour" style command.

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to tdab

dotfiles
Dotfiles for Neovim (0.7+), Fish shell, git, Kitty, tmux, and more.
Stars: ✭ 54 (+285.71%)
Mutual labels:  tmux
dotfiles
shell, git, vim, tmux .etc dotfiles, managed via gnu stow
Stars: ✭ 20 (+42.86%)
Mutual labels:  tmux
magpie
Dotfiles of my minimal Unix system geared for media, programming & writing
Stars: ✭ 37 (+164.29%)
Mutual labels:  tmux
colorcli
Collection of harmonized, light command-line interface (CLI) color themes for tmux, cmus, newsboat, mcabber, Vim, Vifm, and Mutt.
Stars: ✭ 40 (+185.71%)
Mutual labels:  tmux
drop-in
Remote workspace
Stars: ✭ 47 (+235.71%)
Mutual labels:  tmux
tmux-weather
🌤 Weather plugin for tmux
Stars: ✭ 40 (+185.71%)
Mutual labels:  tmux
dotfiles
dotfiles (managed by https://github.com/twpayne/chezmoi/)
Stars: ✭ 40 (+185.71%)
Mutual labels:  tmux
dotfiles
My work setup
Stars: ✭ 14 (+0%)
Mutual labels:  tmux
configuration
Config files
Stars: ✭ 12 (-14.29%)
Mutual labels:  tmux
dotfiles
🏡 Personal dotfiles configuration
Stars: ✭ 73 (+421.43%)
Mutual labels:  tmux
dots
Code Smell Dotfiles
Stars: ✭ 163 (+1064.29%)
Mutual labels:  tmux
dotfiles
A place to store config files so I can revert when my entire system crashes from entering the wrong character
Stars: ✭ 25 (+78.57%)
Mutual labels:  tmux
dotfiles
My dotfiles and some scripts
Stars: ✭ 34 (+142.86%)
Mutual labels:  tmux
zpwr
ZPWR => World's Most Advanced UNIX Terminal Environment
Stars: ✭ 109 (+678.57%)
Mutual labels:  tmux
dotfiles
My dotfiles
Stars: ✭ 204 (+1357.14%)
Mutual labels:  tmux
tmux-airline-dracula
A tmux theme for Dracula color scheme.
Stars: ✭ 33 (+135.71%)
Mutual labels:  tmux
dotfiles
🏎 my dotfiles for macOS
Stars: ✭ 33 (+135.71%)
Mutual labels:  tmux
dotfiles
Configuration files for my development environment.
Stars: ✭ 14 (+0%)
Mutual labels:  tmux
tools
Little codes here and there to automate some of my boring daily routines and configurations
Stars: ✭ 82 (+485.71%)
Mutual labels:  tmux
dotfiles
My dot files and dev environment using bash, tmux and vim
Stars: ✭ 61 (+335.71%)
Mutual labels:  tmux

tmux-devours-a-bar

Create side and top bars in tmux easily, along with a "devour" style command.

TDAB logo

TDAB demo

You can see a larger version of the demo with the included MKV file.

Contents

  1. About
  2. License
  3. Prerequisites
  4. Installation
  5. Usage
  6. TODO

1. About

These three scripts (called TDAB for short) will create side or top bars (or a "devour" style new pane) that run a command inside tmux. See the image above to get an idea of what this means.

The name is a play on "A blank walks into a bar", because puns.

2. License

This project is licensed under the MIT License. For the full license, see LICENSE.

3. Prerequisites

  • tmux
  • bash

These scripts will probably work in other shells, but I don't know for sure.

4. Installation

Clone or download the repository. Put the scripts (or symlinks to the scripts) in your $PATH. (In the example above, I've symlinked them to sidebar, topbar, and devour.)

If you wish to change the width or height of the sidebar/topbar, you will need to edit this line:

tmux resize-pane -t "$c_pane" -R 30

which actually resizes the larger pane from the center line. My screen that I used for the demo is 194 columns wide, so when it's first split, it's 97/96 columns wide, then resizes it to the right an additional 30 columns so that I end up with a 127/67 split. The same thing goes for the topbar, except it resizes upward (-U). Adjust so that they work for your terminal size.

Tip for Devour

I find a binding like the following very useful when using devour:

bind-key -n C-/ select-pane -R \;\ resize-pane -Z

This will allow you to cycle among the zoomed panes - and will zoom each as you go through it. Very nice for programs like emojin.

5. Usage

SCRIPTNAME [program to run]

For example, tmux-sidebar.sh man man will show you the man page for man in the sidebar.

If you run the scripts outside of tmux, it will just run the command.

tmux_devour.sh

Launch a process in a new pane, zoom the pane, kill the pane when done.

tmux_sidebar.sh

Create a sidebar (e.g. for reading manpages) and kill when done.

tmux_topbar.sh

Create a vertical split and kill when done.

6. TODO

  • Have a configurable size modifier so nobody needs to edit the script.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].