summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2014-01-26 12:59:10 +0100
committerQC <qball@gmpclient.org>2014-01-26 12:59:10 +0100
commite62ada2a8358072815d42489df14d4c7b56e7699 (patch)
treeb82eaafc4a7be05b2ada639c3d1145af675f2bb5 /include
parent4dabd75000b2f31805b7efd7cd097cbee0ff4866 (diff)
Add support for horizontal mode.
Diffstat (limited to 'include')
-rw-r--r--include/simpleswitcher.h43
1 files changed, 25 insertions, 18 deletions
diff --git a/include/simpleswitcher.h b/include/simpleswitcher.h
index 145b44b6..70c1adc8 100644
--- a/include/simpleswitcher.h
+++ b/include/simpleswitcher.h
@@ -21,6 +21,7 @@ typedef enum {
} SwitcherMode;
+
typedef int ( *menu_match_cb )( char **tokens, const char *input, int index, void *data );
int menu( char **lines, char **input, char *prompt,
Time *time, int *shift, menu_match_cb mmc, void *mmc_data );
@@ -48,33 +49,39 @@ typedef enum _WindowLocation {
WEST = 8
} WindowLocation;
+typedef enum {
+ VERTICAL = 0,
+ HORIZONTAL = 1
+} WindowMode;
/**
* Settings
*/
typedef struct _Settings {
// Window settings
- unsigned int window_opacity;
+ unsigned int window_opacity;
// Menu settings
- unsigned int menu_bw;
- unsigned int menu_width;
- unsigned int menu_lines;
- char * menu_font;
- char * menu_fg;
- char * menu_bg;
- char * menu_bgalt;
- char * menu_hlfg;
- char * menu_hlbg;
- char * menu_bc;
+ unsigned int menu_bw;
+ unsigned int menu_width;
+ unsigned int menu_lines;
+ char * menu_font;
+ char * menu_fg;
+ char * menu_bg;
+ char * menu_bgalt;
+ char * menu_hlfg;
+ char * menu_hlbg;
+ char * menu_bc;
// Behavior
- unsigned int zeltak_mode;
- char * terminal_emulator;
- unsigned int i3_mode;
+ unsigned int zeltak_mode;
+ char * terminal_emulator;
+ unsigned int i3_mode;
// Key bindings
- char * window_key;
- char * run_key;
- char * ssh_key;
- WindowLocation location;
+ char * window_key;
+ char * run_key;
+ char * ssh_key;
+ WindowLocation location;
+ WindowMode wmode;
+ unsigned int inner_margin;
} Settings;
extern Settings config;