From b31cf1d32f50a86e4292a760428525b82dff8afa Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Wed, 13 Jul 2016 08:55:40 +0200 Subject: [PATCH] On rofi -show without argument, run de first one from the modi list. --- source/rofi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/rofi.c b/source/rofi.c index acc95107..74b2f5f6 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -573,6 +573,9 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data ) return G_SOURCE_REMOVE; } } + else if ( find_arg ( "-show" ) >= 0 && num_modi > 0 ) { + run_switcher ( 0 ); + } else{ // Daemon mode fprintf ( stderr, "Rofi daemon mode is now removed.\n" );