You are not logged in.

#1 2026-01-02 00:31:55

efog4
Member
Registered: 2025-10-09
Posts: 25

[SOLVED] creating an instance of a terminal emulator with an input

Apologies for the title struggling to describe what I desire, but for example I cannot just run nmtui (network manager TUI) from rofi, I have to run an instance of a terminal emulator and then type in nmtui. if i type "foot &" into an instance of foot a new instance of foot will spawn. What I am seeking is to launch an instance of foot and lsblk, nmtui, bluetoothctl, etc. in a single command instead of a two step process.

Is this possible and is there a name for what I am trying to accomplish?

Not sure if its relevant but I am using DWL as my compositor

thank you

Last edited by efog4 (2026-01-02 02:19:08)

Offline

#2 2026-01-02 01:13:36

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED] creating an instance of a terminal emulator with an input

Offline

#3 2026-01-02 01:28:38

efog4
Member
Registered: 2025-10-09
Posts: 25

Re: [SOLVED] creating an instance of a terminal emulator with an input

thank you!!!!!!!

oh my god "foot nmtui" is very helpful and hilariously simple that i cannot help but feel foolish

edit: upon further testing "foot lsblk" does not spawn a terminal with lsblk, or " foot echo "hello" " does not spawn a terminal with hello printed, am I incorrectly formatting these or is this regarding my compositor given that I am receiving this message: (although "foot nmtui" works fine and also delivers these same warnings)

$ foot echo "yo"
warn: wayland.c:1794: compositor does not implement the XDG toplevel icon protocol
warn: wayland.c:1799: text input interface not implemented by compositor; IME will be disabled

Last edited by efog4 (2026-01-02 01:45:56)

Offline

#4 2026-01-02 02:06:17

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED] creating an instance of a terminal emulator with an input

foot sh -c "echo yo ; bash"

Offline

#5 2026-01-02 02:25:11

efog4
Member
Registered: 2025-10-09
Posts: 25

Re: [SOLVED] creating an instance of a terminal emulator with an input

this is the one, thank you, again!

this being the solution I was after makes me feel much less foolish wink

edit:

if anyone from the future is reading this you can chain multiple commands with this format

foot sh -c "echo yo ; lsblk ; bash"

Last edited by efog4 (2026-01-02 02:29:35)

Offline

#6 2026-01-02 02:26:57

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED] creating an instance of a terminal emulator with an input

theres also, albeit more simpler and doesnt drop you into a shell:

foot -H echo yo

Offline

#7 2026-01-02 02:33:30

efog4
Member
Registered: 2025-10-09
Posts: 25

Re: [SOLVED] creating an instance of a terminal emulator with an input

ooo that is helpful/sexier for certain use cases! and just to fully clarify is what you have provided interchangeable with any terminal emulator or specific to foot?

Offline

#8 2026-01-02 02:36:28

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED] creating an instance of a terminal emulator with an input

only the -H flag itself is specific to foot, other terminals might have halt functionality like that but under a different flag. And for the command executing, other terminals might require you to use -e instead of just specifying your command without any flag, e.g.:

kitty -e sh -c "echo yo ; bash"

Last edited by system72 (2026-01-02 02:38:05)

Offline

#9 2026-01-02 02:38:49

efog4
Member
Registered: 2025-10-09
Posts: 25

Re: [SOLVED] creating an instance of a terminal emulator with an input

<3 <3 <3 <3 <3 <3

thank you smile))) you are credit to community

Offline

Board footer

Powered by FluxBB