lbonn / i3-quickterm

A small drop-down terminal for i3 and sway
MIT License
128 stars 13 forks source link

Add a term_command config to allow overriding the command to execute for the terminal emulator #25

Closed 15cm closed 1 year ago

15cm commented 1 year ago

Use case: wrap alacritty with nixGL like "term_command": "nixGL alacritty"

lbonn commented 1 year ago

It's probably not really well documented but this can already be achieved with

{
    "term": "nixGL alacritty -t {title} -e {expanded}"
}

The additional option and the implementation makes things a bit more complicated, what do you think?

15cm commented 1 year ago

I see what term = TERMS.get(conf["term"], conf["term"]) means now. Thank you. I think this usage is documented in the readme image. I thought that the binary of the formatted string must be in the hard coded list but it turned out to be not.