• Stars
    star
    114
  • Rank 308,031 (Top 7 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created over 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A VTE-based, simple and froggy terminal emulator ๐Ÿธ

kermit Release AUR

A VTE-based, simple and froggy terminal emulator.

Kermit the Frog

VTE is a GTK widget that is designed to create virtual terminal emulators. GNOME Terminal, ROXTerm and evilvte are a few examples of terminal emulators that use the VTE widget. With the case of kermit, although it is a "yet another" VTE implementation, it aims to keep everything simple and customizable while providing some additional features.

The project is inspired by Vincent Bernat's article and also his implementation of a custom VTE-based terminal. Terminal features and appearance are mostly influenced by Rxvt, termite and st.

Table of Contents

Installation

AUR

CMake

mkdir -p build && cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
sudo ldconfig

Make

make
sudo make install

GCC

cd src/
gcc -s -O3 -Wall -Wno-deprecated-declarations $(pkg-config --cflags vte-2.91) kermit.c -o kermit.o $(pkg-config --libs vte-2.91)

* kermit depends on vte3 and gtk3 packages.

Features

  • Uses the default shell ($SHELL)
  • Supports transparency with a composite manager (such as compton)
  • Supports base16 color schemes (customizable theme)
  • Supports custom keys and associated commands
  • Supports tabs

Arguments

kermit [-h] [-v] [-d] [-c config] [-t title] [-w workdir] [-e command]

[-h] shows help
[-v] shows version
[-d] enables the debug messages
[-c config]  specifies the configuration file
[-t title]   sets the terminal title
[-w workdir] sets the working directory
[-e command] sets the command to execute in terminal

Key Bindings

Key Action
ctrl-alt-[c] copy to clipboard
ctrl-alt-[v] paste from clipboard
ctrl-alt-[t] open a new tab
ctrl-alt-[r] reload configuration file
ctrl-alt-[d] load the default configuration
ctrl-alt-[q] exit the terminal
ctrl-alt-[k][up] increase font size
ctrl-alt-[j][down] decrease font size
ctrl-alt-[=] reset font size to default
ctrl-alt-[return] open a new tab
ctrl-alt-[num] switch to the tab number
ctrl-alt-[l][right][pgup] switch to the next tab
ctrl-alt-[h][left][pgdn] switch to the previous tab
ctrl-alt-[w][backspace] close the selected tab

โ€ข Key bindings (ctrl-alt) can be set to ctrl-shift with using the config file.

โ€ข Default key bindings (ctrl-alt) might conflict with your desktop environments window shortcuts. To solve this issue, key bindings should be changed to ctrl-shift.

Customization

Config File

Most of the settings including font, opacity and colors can be changed via the config file. The default configuration file is available here.

kermit looks for configuration file in ~/.config/kermit.conf

Theme

The terminal theme can be changed by either editing the config file manually or using the base16 color schemes in orhun/base16-kermit repository.

Font

kermit uses a PangoFontDescription which is retrieved from the kermit.conf for changing the font family, style and size. The configuration entry format of the font and some examples are shown below and the default value is monospace 9.

font [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]

FAMILY-LIST is a comma-separated list of families optionally terminated by a comma, STYLE_OPTIONS is a whitespace-separated list of words where each WORD describes one of style, variant, weight, or stretch, and SIZE is a decimal number (size in points).

โ€ข Available font families: Normal, Sans, Serif and Monospace.
โ€ข Available styles: Normal, Oblique, Italic.
โ€ข Available weights: Ultra-Light, Light, Normal, Bold,Ultra-Bold, Heavy.
โ€ข Available variants: Normal, Small-Caps.
โ€ข Available stretch styles: Ultra-Condensed, Extra-Condensed, Condensed, Semi-Condensed, Normal, Semi-Expanded, Expanded, Extra-Expanded, Ultra-Expanded.

Examples:

font sans bold 12
font normal 10
font monospace bold italic condensed 12

Key Bindings

Custom keys and associated commands can be specified with the configuration file. An example entry is available here and entry format is shown below.

bind/bindx [KEY]~"[COMMAND]"

โ€ข bind: Send command to the terminal.
โ€ข bindx: Send command to the terminal and execute.

Examples:

bindx f~"df -h"
bind r~"rm -i "
bind p~"ps aux | grep "
bind k~"kill -9 "

Padding

In order to change the padding of the terminal, create ~/.config/gtk-3.0/gtk.css if it does not exist, specify the values there and restart the terminal.

VteTerminal,
TerminalScreen,
vte-terminal {
    padding: 3px 2px 2px 1px;
}

The command below can be used to create the both configuration files.

curl https://raw.githubusercontent.com/orhun/kermit/master/.config/kermit.conf --output ~/.config/kermit.conf && \
  printf "VteTerminal,\nTerminalScreen,\nvte-terminal {\n\tpadding: 3px 2px 2px 1px;\n}\n" > ~/.config/gtk-3.0/gtk.css

Screenshots

Screenshot

TODO(s)

  • URL handling

License

GNU General Public License v3.0 only (GPL-3.0-only)

Copyright

Copyright ยฉ 2019-2023, Orhun Parmaksฤฑz

More Repositories

1

git-cliff

A highly customizable Changelog Generator that follows Conventional Commit specifications โ›ฐ๏ธ
Rust
5,800
star
2

kmon

Linux Kernel Manager and Activity Monitor ๐Ÿง๐Ÿ’ป
Rust
1,911
star
3

systeroid

A more powerful alternative to sysctl(8) with a terminal user interface ๐Ÿง
Rust
997
star
4

gpg-tui

Manage your GnuPG keys with ease! ๐Ÿ”
Rust
991
star
5

rustypaste

A minimal file upload/pastebin service.
Rust
757
star
6

halp

A CLI tool to get help with CLI tools ๐Ÿ™
Rust
597
star
7

menyoki

Screen{shot,cast} and perform ImageOps on the command line ๐ŸŒฑ ๐Ÿž๏ธ
Rust
489
star
8

linuxwave

Generate music from the entropy of Linux ๐Ÿง๐ŸŽต
Zig
399
star
9

pkgtop

Interactive package manager and resource monitor designed for the GNU/Linux.
Go
268
star
10

runst

A dead simple notification daemon ๐Ÿฆก
Rust
234
star
11

zps

A small utility for listing and reaping zombie processes on GNU/Linux.
C
153
star
12

CoolModFiles

A web player that plays some cool MOD files randomly ๐ŸŽถ
JavaScript
132
star
13

rust-tui-template

A template for bootstrapping a Rust TUI application with tui-rs & crossterm
Rust
77
star
14

dotfiles

Orhun's Arch Linux configuration files and scripts ๐Ÿ 
Shell
70
star
15

godsays

Rust port of the Terry Davis' (RIP) "god says" program
Rust
69
star
16

rtl_map

FFT-based visualizer for RTL-SDR devices. (RTL2832/DVB-T)
C
67
star
17

battleship-rs

Battleship game implemented in Rust
Rust
65
star
18

git-cliff-action

GitHub action to generate a changelog based on the Git history
Shell
65
star
19

rustypaste-cli

A CLI tool for rustypaste
Rust
56
star
20

k3pler

Android network connection blocker and packet analyzer built on top of local HTTP proxy.
Java
48
star
21

orhun

My GitHub profile README.md โญ:octocat:
41
star
22

ApkServInject

Tool for injecting (smali) services to APK files
Java
30
star
23

cargo-nocode

Cargo subcommand to easily bootstrap nocode applications. Write nothing; deploy nowhere.
Rust
29
star
24

god

Linux utility for simplifying the Git usage.
Go
25
star
25

dnsleaktest-tui

A proof-of-concept TUI for testing DNS leaks & running traceroute
Rust
20
star
26

PSAUX

Android task manager and automated background service killer.
Java
20
star
27

alpkg

Set up Alpine Linux packaging environment with a breeze! ๐Ÿ”
Shell
18
star
28

packaging-rust-for-npm

https://blog.orhun.dev/packaging-rust-for-npm/
JavaScript
17
star
29

Picasso

PIC16F877A based 5V/20MHz development board and PIC programmer
C
15
star
30

PKGBUILDs

Arch Linux packages that I maintain ๐Ÿ”ง
Shell
13
star
31

personal-blog

The source of my blog โœ๐Ÿผ
SCSS
13
star
32

dialogflowbot

Google's Dialogflow implementation on Android with additional features.
Java
11
star
33

i3-workspace-brightness

Utility to auto-adjust the brightness of i3wm workspaces
Rust
11
star
34

Black-Waves

A wavy dark theme for VSCode
10
star
35

HydropotX

Automated and Self-contained Hydroponics System ๐ŸŒฑ
Kotlin
9
star
36

advent-of-code

My Advent of Code solutions ๐Ÿข
Rust
8
star
37

Last-Commit

A VSCode extension that focuses on the last git commit
JavaScript
7
star
38

zig-http-benchmarks

Benchmarking Zig HTTP client against Rust, Go, Python and curl
Zig
6
star
39

binsider

Analyze ELF binaries like a boss (WIP)
Rust
4
star
40

orhun.github.io

Personal website
HTML
4
star
41

theattyr

A terminal theatre for playing VT100 art and animations
Rust
4
star
42

godsings

https://melody.godsays.xyz
Python
3
star
43

base16-kermit

Base16 for kermit
Mustache
3
star
44

parseit

A simple text file parsing library powered by regex and glob patterns
Rust
3
star
45

typewriter

Turn your keyboard into a typewriter (WIP)
Rust
2
star
46

firebox-auth-cracker

A CLI tool to brute force the authentication signature of WatchGuard's Firebox
Rust
2
star
47

playfair-rs

Playfair cipher implemented in Rust
Rust
2
star
48

rust-arch-lto

Rust + ABS + LTO = ๐Ÿคฏ (PoC)
Shell
1
star
49

abstractapi-rs

Rust API bindings for the Abstract HTTP API
Rust
1
star
50

rust-tui-example

A very simple TUI program to demonstrate on Rust Munich Meetup #8
Rust
1
star
51

ytpls

[experimental] YouTube Playlist Synchronizer backed by yt-dl & git
Rust
1
star