This is a basic personal terminal emulator using the VTE library.
Table of Contents
Buttermilk features only a few simple keybindings, which are optimized for the default English keyboard layout:
Ctrl+Shift+plus
- make the font biggerCtrl+minus
- make the font smallerCtrl+equals
- reset the font sizeCtrl+return
- launch new instance (also take a look at Terminal cloning)
If you are on Arch, Manjaro or another distro that supports the AUR you can install this
software directly from there.
It is available as buttermilk
.
If you are using yay:
yay -S buttermilk
otherwise:
git clone https://aur.archlinux.org/buttermilk.git
cd buttermilk
makepkg -si
Installation should be fairly simple on other distros as well.
First make sure you have the dependencies (namely vte
and libinih
) installed.
Then clone the repository and run the following make command inside project folder:
git clone https://github.com/jzbor/buttermilk
cd buttermilk
sudo make install clean
To print out your current configuration use buttermilk -c
.
The global config file should be in /etc/buttermilk.conf
, the user config file in ~/.config/buttermilk/buttermilk.conf
.
You can initially create a config file for your user, by first creating the according directory and then writing the default configuration into the config file:
mkdir ~/.config/buttermilk
buttermilk -c > ~/.config/buttermilk/buttermilk.conf
You can clone the terminal with Ctrl+Enter
, but in order to keep the current working directory vte.sh
has to be loaded.
On Arch Linux it is located at /etc/profile.d/vte.sh
.
If it is not loaded automatically you can try adding this line to your .bashrc
/.zshrc
:
[ -f "/etc/profile.d/vte.sh" ] && . /etc/profile.d/vte.sh
This program is based on a tutorial by Vincent Bernat: "Writing your own terminal emulator". I also took borrowed some code from his own implementation of a VTE terminal emulator, called vbeterm.