History-driven dmenu wrapper