1 /* curses attributes for the currently focused window */
2 /* valid curses attributes are listed below they can be ORed
4 * A_NORMAL Normal display (no highlight)
5 * A_STANDOUT Best highlighting mode of the terminal.
6 * A_UNDERLINE Underlining
7 * A_REVERSE Reverse video
10 * A_BOLD Extra bright or bold
11 * A_PROTECT Protected mode
12 * A_INVIS Invisible or blank mode
15 #define BLUE (COLORS==256 ? 68 : COLOR_BLUE)
17 #define SELECTED_ATTR A_NORMAL
18 #define SELECTED_FG BLUE
19 #define SELECTED_BG -1
20 /* curses attributes for normal (not selected) windows */
21 #define NORMAL_ATTR A_NORMAL
24 /* status bar (command line option -s) position */
25 #define BARPOS BarTop /* BarBot, BarOff */
26 /* curses attributes for the status bar */
27 #define BAR_ATTR A_NORMAL
30 /* determines whether the statusbar text should be right or left aligned */
31 #define BAR_ALIGN ALIGN_RIGHT
32 /* separator between window title and window number */
33 #define SEPARATOR " | "
34 /* printf format string for the window title, first %s
35 * is replaced by the title, second %s is replaced by
36 * the SEPARATOR, %d stands for the window number */
37 #define TITLE "[%s%s#%d]"
38 /* master width factor [0.1 .. 0.9] */
40 /* scroll back buffer size in lines */
41 #define SCROLL_BUF_SIZE 500
46 #include "fullscreen.c"
48 /* by default the first layout entry is used */
53 { "[ ]", fullscreen
},
58 /* you can at most specifiy MAX_ARGS (2) number of arguments */
60 { MOD
, 'c', { create
, { NULL
} } },
61 { MOD
, 'x', { killclient
, { NULL
} } },
62 { MOD
, 'j', { focusnext
, { NULL
} } },
63 { MOD
, 'u', { focusnextnm
, { NULL
} } },
64 { MOD
, 'i', { focusprevnm
, { NULL
} } },
65 { MOD
, 'k', { focusprev
, { NULL
} } },
66 { MOD
, 't', { setlayout
, { "[]=" } } },
67 { MOD
, 'g', { setlayout
, { "+++" } } },
68 { MOD
, 'b', { setlayout
, { "TTT" } } },
69 { MOD
, 'm', { setlayout
, { "[ ]" } } },
70 { MOD
, ' ', { setlayout
, { NULL
} } },
71 { MOD
, 'h', { setmwfact
, { "-0.05" } } },
72 { MOD
, 'l', { setmwfact
, { "+0.05" } } },
73 { MOD
, '.', { toggleminimize
, { NULL
} } },
74 #ifdef CONFIG_STATUSBAR
75 { MOD
, 's', { togglebar
, { NULL
} } },
78 { MOD
, 'M', { mouse_toggle
, { NULL
} } },
80 { MOD
, '\n', { zoom
, { NULL
} } },
81 { MOD
, '1', { focusn
, { "1" } } },
82 { MOD
, '2', { focusn
, { "2" } } },
83 { MOD
, '3', { focusn
, { "3" } } },
84 { MOD
, '4', { focusn
, { "4" } } },
85 { MOD
, '5', { focusn
, { "5" } } },
86 { MOD
, '6', { focusn
, { "6" } } },
87 { MOD
, '7', { focusn
, { "7" } } },
88 { MOD
, '8', { focusn
, { "8" } } },
89 { MOD
, '9', { focusn
, { "9" } } },
90 { MOD
, 'q', { quit
, { NULL
} } },
91 { MOD
, 'G', { escapekey
, { NULL
} } },
92 { MOD
, 'a', { togglerunall
, { NULL
} } },
93 { MOD
, 'r', { redraw
, { NULL
} } },
94 { MOD
, 'X', { lock
, { NULL
} } },
95 { MOD
, 'B', { togglebell
, { NULL
} } },
96 { MOD
, KEY_PPAGE
, { scrollback
, { "-1" } } },
97 { MOD
, KEY_NPAGE
, { scrollback
, { "1" } } },
98 { MOD
, '?', { create
, { "man dvtm", "dvtm help" } } },
101 /* possible values for the mouse buttons are listed below:
103 * BUTTON1_PRESSED mouse button 1 down
104 * BUTTON1_RELEASED mouse button 1 up
105 * BUTTON1_CLICKED mouse button 1 clicked
106 * BUTTON1_DOUBLE_CLICKED mouse button 1 double clicked
107 * BUTTON1_TRIPLE_CLICKED mouse button 1 triple clicked
108 * BUTTON2_PRESSED mouse button 2 down
109 * BUTTON2_RELEASED mouse button 2 up
110 * BUTTON2_CLICKED mouse button 2 clicked
111 * BUTTON2_DOUBLE_CLICKED mouse button 2 double clicked
112 * BUTTON2_TRIPLE_CLICKED mouse button 2 triple clicked
113 * BUTTON3_PRESSED mouse button 3 down
114 * BUTTON3_RELEASED mouse button 3 up
115 * BUTTON3_CLICKED mouse button 3 clicked
116 * BUTTON3_DOUBLE_CLICKED mouse button 3 double clicked
117 * BUTTON3_TRIPLE_CLICKED mouse button 3 triple clicked
118 * BUTTON4_PRESSED mouse button 4 down
119 * BUTTON4_RELEASED mouse button 4 up
120 * BUTTON4_CLICKED mouse button 4 clicked
121 * BUTTON4_DOUBLE_CLICKED mouse button 4 double clicked
122 * BUTTON4_TRIPLE_CLICKED mouse button 4 triple clicked
123 * BUTTON_SHIFT shift was down during button state change
124 * BUTTON_CTRL control was down during button state change
125 * BUTTON_ALT alt was down during button state change
126 * ALL_MOUSE_EVENTS report all button state changes
127 * REPORT_MOUSE_POSITION report mouse movement
132 { BUTTON1_CLICKED
, { mouse_focus
, { NULL
} } },
133 { BUTTON1_DOUBLE_CLICKED
, { mouse_fullscreen
, { "[ ]" } } },
134 { BUTTON2_CLICKED
, { mouse_zoom
, { NULL
} } },
135 { BUTTON3_CLICKED
, { mouse_minimize
, { NULL
} } },
137 #endif /* CONFIG_MOUSE */
139 #ifdef CONFIG_CMDFIFO
141 { "create", { create
, { NULL
} } },
143 #endif /* CONFIG_CMDFIFO */
145 /* gets executed when dvtm is started */
147 { create
, { NULL
} },