ranger
and alsamixer
are applications which run inside a terminal. Imagine (or try) to run ls
via dmenu
, where should the directory listing be printed to without a terminal?
You look for functionality which is provided either by prompt
imported from XMonad.Prompt.Shell
by using a convinient keybinding like
((modm .|. shiftMask, xK_c), prompt ("xterm" ++ " -e") greenXPConfig)
(described in the linked documentation) or shellPrompt
where you execute
xterm -e alsamixer
or any other command, e.g.
feh path/to/image/you/want/to/open/now.jpg
instead of opening a terminal, running above with tailing &
and exiting the terminal.