infinidoge/qtile: improve shell command spawn handling

Recreates old kitty behavior where it remains on screen until enter is
pressed using echo and read.
This commit is contained in:
Infinidoge 2023-08-11 00:28:31 -04:00
parent d6c9d40a8a
commit f718ee854c

View file

@ -294,7 +294,7 @@ keys = [
),
Key(
[Keys.SUPER, Keys.SHIFT], "r",
lazy.spawncmd(prompt="shell", command=Apps.terminal_command(Apps.shell_command("%s", args=("-ic",)), args=("--hold",))),
lazy.spawncmd(prompt="shell", command=Apps.terminal_command(Apps.shell_command("%s; echo '\n---- Press enter to exit ----'; read", args=("-ic",))), shell=False),
desc="Spawn a command in a shell using a prompt widget",
),
Key(