A small drop-down terminal for i3wm and sway.
This is a Golang rewrite version of i3-quickterm for self easy install and use.
termite used as default terminal emulator, so install it firstly.
# install form source code
$ go get -u github.com/zexi/i3-go-quickterm
# run quickterm inside sway or i3 WM
$ $GOPATH/bin/i3-go-quickterm
The configuration is read from ~/.config/i3-go-quickterm/config.json .
$ cat $HOME/.config/i3-go-quickterm/config.json
{
"terminal": {
"command": "termite",
"extraArgs": [
"-c",
"/home/lzx/.config/termite/config.trans"
]
},
"pos": "top",
"ratio": 0.5
}
sway or i3 config
# always pop drop down shell
bindsym $mod+g exec "$GOPATH/bin/i3-go-quickterm"