#!/bin/sh # select a command with dmenu_run but run it in the terminal emulator command=$(dmenu_path | dmenu "$@") [[ $command != "" ]] && exec urxvt -e $command