My build of dvtm - dynamic virtual terminal manager
dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console. As a console window manager it tries to make it easy to work with multiple console based programs.
# Multiplexing only
dvtm
# Multiplexing with session management, with my build of abduco
# https://codeberg.org/unixchad/abduco
# https://github.com/gnuunixchad/abduco
abduco -c my-sessionexport DVTM_EDITOR="/usr/bin/vim" # copy mode editor
export DVTM_PAGER="/usr/bin/less -R" # scrollback history pagerdvtm can read a named pipe and display it in the statusbar.
# run dvtm with status script
dvtm-statusCurrent modules in my dvtm-status:
- Date
- Battery level with charging status
- Unread new emails count from isync/neomutt
- Login users count to be aware of SSH or TTY connections
My build of abduco(codeberg or github)
- ncurses
I have nvim aliased as vim, but when inside dvtm vim is preffered for better
performance:
if [ ! $UID -eq 0 ]; then
command -v nvim >/dev/null \
&& [ -z "$DVTM" ] \
&& alias vim="nvim"
vimdiff="nvim -d"
fiI have created an autocmd to disable vim's 24-bit color inside dvtm:
augroup dvtm
autocmd!
autocmd BufEnter * if !empty(getenv('DVTM')) | setlocal notermguicolors | endif
augroup ENDdvtm reuses some code of dwm and is released under the same MIT/X11 license. The terminal emulation part is licensed under the ISC license.