swk

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

config.n900.h (1165B)


      1 #define PORTRAIT 0
      2 #define SCROLLSPEED 2
      3 #define COLSPLIT 20
      4 
      5 #define FONTBOLD 1
      6 #define FONTSIZE 28
      7 #define TOUCHSCREEN 1
      8 
      9 #if PORTRAIT
     10 //#define WINWIDTH 480
     11 //#define WINHEIGHT 750
     12 #else
     13 // LANDSCAPE
     14 #define WINWIDTH 800
     15 #define WINHEIGHT 400
     16 #endif
     17 
     18 /* appearance */
     19 // SDL
     20 #define SWK_COLOR(r,g,b) 0x##r,0x##g,0x##b
     21 // X11
     22 //#define SWK_COLOR(r,g,b) r##g##b
     23 
     24 #define HICOLOR SWK_COLOR(0,66,ff)
     25 #define FGCOLOR SWK_COLOR(e0,e0,e0)
     26 #define BGCOLOR SWK_COLOR(00,00,00)
     27 #define TFCOLOR SWK_COLOR(cc,cc,cc)
     28 
     29 /* key bindings */
     30 static SwkKeyBind keys[] = {
     31 	{ Ctrl, 'j', swk_focus_next },
     32 	{ Ctrl, 'k', swk_focus_prev },
     33 	{ Ctrl,  8 , swk_focus_first },
     34 	{ Ctrl,  9 , swk_focus_prev },
     35 	{   0 ,  9 , swk_focus_next },
     36 	{ Ctrl, 10 , swk_focus_next },
     37 	{ Ctrl, 11 , swk_focus_prev },
     38 	{ Ctrl, 12 , swk_focus_activate },
     39 	{ 0, 225, swk_focus_activate }, // n900 enter
     40 	{   0 , KUp, swk_focus_prev },
     41 	{   0 , KDown, swk_focus_next },
     42 	{   0 , 13 , swk_focus_activate },
     43 	{ Ctrl, 12 , swk_focus_activate },
     44 	{ Ctrl|Shift, 10, swk_scroll_down },
     45 	{ Ctrl|Shift, 11, swk_scroll_up },
     46 	{ Ctrl, '+', swk_fontsize_increase },
     47 	{ Ctrl, '-', swk_fontsize_decrease },
     48 	{ 0 }
     49 };
     50