1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-03 04:23:42 -05:00
This commit is contained in:
QC 2014-02-03 23:07:04 +01:00
parent b9c192c4fe
commit 57abc12c43
6 changed files with 20 additions and 29 deletions

View file

@ -59,9 +59,6 @@ Settings config = {
.window_key = "F12",
.run_key = "mod1+F2",
.ssh_key = "mod1+F3",
#ifdef I3
.mark_key = "mod1+F5",
#endif
// Location of the window. CENTER, NORTH_WEST, NORTH,NORTH_EAST, etc.
.location = CENTER,
// Mode of window, list (Vertical) or dmenu like (Horizontal)

View file

@ -98,9 +98,6 @@ typedef struct _Settings {
WindowLocation location;
WindowMode wmode;
unsigned int padding;
#ifdef I3
char * mark_key;
#endif
} Settings;
extern Settings config;

View file

@ -82,6 +82,7 @@ SwitcherMode dmenu_switcher_dialog ( char **input )
}
if ( list != NULL ) free( list );
return retv;
}

View file

@ -74,6 +74,9 @@
#define OPAQUE 0xffffffff
#define OPACITY "_NET_WM_WINDOW_OPACITY"
#define I3_SOCKET_PATH_PROP "I3_SOCKET_PATH"
#define FORK 1
#define NOFORK 2
xdgHandle xdg_handle;
const char *cache_dir = NULL;
@ -1131,9 +1134,6 @@ MenuReturn menu( char **lines, char **input, char *prompt, Time *time, int *shif
return retv;
}
#define FORK 1
#define NOFORK 2
@ -1461,26 +1461,22 @@ int main( int argc, char *argv[] )
find_arg_str( argc, argv, "-hlfg", &( config.menu_hlfg ) );
find_arg_str( argc, argv, "-hlbg", &( config.menu_hlbg ) );
find_arg_str( argc, argv, "-bc", &( config.menu_bc ) );
find_arg_str( argc, argv, "-term", &( config.terminal_emulator ) );
find_arg_int( argc, argv, "-bw", &( config.menu_bw ) );
find_arg_int( argc, argv, "-o", &( config.window_opacity ) );
find_arg_int( argc, argv, "-width", &( config.menu_width ) );
find_arg_int( argc, argv, "-lines", &( config.menu_lines ) );
find_arg_int( argc, argv, "-loc", &( config.location ) );
find_arg_int( argc, argv, "-padding", &( config.padding ) );
if ( find_arg ( argc, argv, "-zeltak" ) >= 0 ) {
config.zeltak_mode = 1;
}
find_arg_int( argc, argv, "-bw", &( config.menu_bw ) );
find_arg_int( argc, argv, "-o", &( config.window_opacity ) );
find_arg_int( argc, argv, "-width",&( config.menu_width ) );
find_arg_int( argc, argv, "-lines",&( config.menu_lines ) );
find_arg_int( argc, argv, "-loc", &( config.location ) );
if ( find_arg( argc, argv, "-hmode" ) >= 0 ) {
config.wmode = HORIZONTAL;
}
find_arg_int( argc, argv, "-padding", &( config.padding ) );
#ifdef I3
// Check for i3