swk

static widget kit
git clone git://git.suckless.org/swk
Log | Files | Refs | README | LICENSE

config.def.h (1433B)


      1 /* See LICENSE file for copyright and license details. */
      2 
      3 /* appearance */
      4 #define SCROLLSPEED 2
      5 #define COLSPLIT 20
      6 #define FONTSIZE 18
      7 #define FONTBOLD 0
      8 #define WINWIDTH 640
      9 #define WINHEIGHT 480
     10 #define TOUCHSCREEN 0
     11 #ifdef USE_SDL
     12 #define SWK_COLOR(r,g,b) 0x##r,0x##g,0x##b
     13 #else
     14 #define SWK_COLOR(r,g,b) 0x##r##g##b
     15 #endif
     16 
     17 #define HICOLOR SWK_COLOR(00,66,ff)
     18 #define BGCOLOR SWK_COLOR(10,10,10)
     19 #define FGCOLOR SWK_COLOR(e0,e0,e0)
     20 #define TFCOLOR SWK_COLOR(cc,cc,cc)
     21 #define CCCOLOR SWK_COLOR(20,20,20)
     22 
     23 /* key bindings */
     24 static SwkKeyBind keys[] = {
     25 	{ Ctrl, '\n',   swk_focus_activate},
     26 	{ Ctrl, 'j',   swk_focus_next },
     27 	{ Ctrl, 'k',   swk_focus_prev },
     28 	//{ Ctrl,  8 ,   swk_focus_first },
     29 	//{ Ctrl,  9 ,   swk_focus_prev },
     30 	{ Ctrl,  8 ,   swk_column_move_left },
     31 	{ Ctrl,  12 ,   swk_column_move_right },
     32 	{ Ctrl,  'h' ,   swk_column_move_left },
     33 	{ Ctrl,  'l',   swk_column_move_right },
     34 	{   0 ,  9 ,   swk_focus_next },
     35 	{ Ctrl, 10 ,   swk_focus_next },
     36 	{ Ctrl, 11 ,   swk_focus_prev },
     37 //	{ Ctrl, 12 ,   swk_focus_activate },
     38 	{   0 , KUp,   swk_focus_prev },
     39 	{   0 , KDown, swk_focus_next },
     40 	{   0 , 13 ,   swk_focus_activate },
     41 	{ Ctrl, 12 ,   swk_focus_activate },
     42 	{ Ctrl|Shift, 10, swk_scroll_down },
     43 	{ Ctrl|Shift, 11, swk_scroll_up },
     44 	{ Ctrl|Shift, 'J', swk_scroll_up },
     45 	{ Ctrl|Shift, 'K', swk_scroll_down },
     46 	{ Ctrl, '+',   swk_fontsize_increase },
     47 	{ Ctrl, '-',   swk_fontsize_decrease },
     48 	{ 0 }
     49 };