Sample Header Ad - 728x90

Rofi leaves unresponsive terminals after run-shell-command | `Q` or `Ctrl-C` don't work

0 votes
0 answers
211 views
I'm trying to switch from using dmenu to rofi on my system, on which I use i3wm. I have the following keybinding: bindsym $mod+Ctrl+d exec --no-startup-id rofi -combi-modi window#drun#run -show combi -show-icons I use urxvt as my default terminal, and it's the one that's specified in my config.rasi file for rofi to use. The problem I have is when I launch rofi, and try to do something like htop SHIFT RET to run htop in a terminal window. When I'm done with htop, I hit Q and the process ends, but I'm left with a blank terminal window. Hitting Q again doesn't kill it, nor does Ctrl-C. I have to kill the window via my i3 keybinding $mod+Shift+Q. It's a similar situation with a command like neofetch, or ls -l, except now the first Q doesn't kill the process as it has already completed – the terminal window is not blank but contains the output of those commands. My run-shell-command is "{terminal} -hold -e {cmd}". I don't get this behavior when running these commands via dmenu. For instance, htop is in the dmenu-recent/terminal file, and hitting Q kills the process and the terminal window at the same time. This is the behavior I would like to replicate with rofi – is this possible?
Asked by nonreligious (153 rep)
Jan 23, 2024, 03:54 PM