1 ;;; --------------------------------------------------------------------------
2 ;;; CLFSWM - FullScreen Window Manager
4 ;;; --------------------------------------------------------------------------
5 ;;; Documentation: Configuration file
7 ;;; Change this file to your own needs or update some of this variables in
9 ;;; Some simple hack can be done in the code begining with the word CONFIG
10 ;;; (you can do a 'grep CONFIG *.lisp' to see what you can configure)
11 ;;; --------------------------------------------------------------------------
13 ;;; (C) 2011 Philippe Brochard <hocwp@free.fr>
15 ;;; This program is free software; you can redistribute it and/or modify
16 ;;; it under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or
18 ;;; (at your option) any later version.
20 ;;; This program is distributed in the hope that it will be useful,
21 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with this program; if not, write to the Free Software
27 ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 ;;; --------------------------------------------------------------------------
34 ;;; CONFIG - Default modifiers
35 (defconfig *default-modifiers
* '() nil
36 "Default modifiers list to append to explicit modifiers
37 Example: :mod-2 for num_lock, :lock for Caps_lock...")
40 (defun-equal-wm-class equal-wm-class-rox-pinboard
"ROX-Pinboard")
41 (defun-equal-wm-class equal-wm-class-xvkbd
"xvkbd")
43 ;;; CONFIG - Never managed window list
44 (defconfig *never-managed-window-list
*
45 (list (list 'equal-wm-class-rox-pinboard nil
)
46 (list 'equal-wm-class-xvkbd
'raise-window
)
47 (list 'equal-clfswm-terminal
'raise-and-focus-window
))
48 nil
"CLFSWM will never manage windows of this type.
49 A list of (list match-function handle-function)")
53 (defconfig *hide-unmanaged-window
* t nil
54 "Hide or not unmanaged windows when a child is deselected.")
56 ;;; CONFIG - Screen size
57 (defun get-fullscreen-size ()
58 "Return the size of root child (values rx ry rw rh)
59 You can tweak this to what you want"
60 (values (- *border-size
*) (- *border-size
*)
61 (xlib:screen-width
*screen
*)
62 (xlib:screen-height
*screen
*)))
63 ;;(values -1 -1 (xlib:screen-width *screen*) (xlib:screen-height *screen*)))
64 ;; (values -1 -1 1024 768))
65 ;; (values 100 100 800 600))
68 (defconfig *corner-size
* 3 'Corner
69 "The size of the corner square")
72 ;;; CONFIG: Corner actions - See in clfswm-corner.lisp for
74 (defconfig *corner-main-mode-left-button
*
75 '((:top-left open-menu
)
76 (:top-right present-virtual-keyboard
)
77 (:bottom-right expose-windows-mode
)
79 'Corner
"Actions on corners in the main mode with the left mouse button")
81 (defconfig *corner-main-mode-middle-button
*
82 '((:top-left help-on-clfswm
)
83 (:top-right ask-close
/kill-current-window
)
86 'Corner
"Actions on corners in the main mode with the middle mouse button")
88 (defconfig *corner-main-mode-right-button
*
89 '((:top-left present-clfswm-terminal
)
90 (:top-right ask-close
/kill-current-window
)
91 (:bottom-right expose-all-windows-mode
)
93 'Corner
"Actions on corners in the main mode with the right mouse button")
95 (defconfig *corner-second-mode-left-button
*
98 (:bottom-right expose-windows-mode
)
100 'Corner
"Actions on corners in the second mode with the left mouse button")
102 (defconfig *corner-second-mode-middle-button
*
103 '((:top-left help-on-clfswm
)
107 'Corner
"Actions on corners in the second mode with the middle mouse button")
109 (defconfig *corner-second-mode-right-button
*
112 (:bottom-right expose-all-windows-mode
)
114 'Corner
"Actions on corners in the second mode with the right mouse button")
117 (defconfig *virtual-keyboard-cmd
* "xvkbd"
118 'Corner
"The command to display the virtual keybaord
119 Here is an ~/.Xresources example for xvkbd:
120 xvkbd.windowGeometry: 300x100-0-0
122 xvkbd.modalKeytop: true
123 xvkbd.customization: -french
125 And make it always on top")
127 (defconfig *clfswm-terminal-name
* "clfswm-terminal"
128 'Corner
"The clfswm terminal name")
129 ;;(defparameter *clfswm-terminal-cmd* (format nil "xterm -T ~A -e /bin/bash --noprofile --norc" *clfswm-terminal-name*)
130 ;;(defparameter *clfswm-terminal-cmd* (format nil "urxvt -name ~A" *clfswm-terminal-name*)
131 (defconfig *clfswm-terminal-cmd
* (format nil
"xterm -T ~A" *clfswm-terminal-name
*)
132 'Corner
"The clfswm terminal command.
133 This command must set the window title to *clfswm-terminal-name*")
140 ;;; A hook is a function, a symbol or a list of functions with a rest
143 ;;; This hooks are set in clfswm.lisp, you can overwrite them or extend
144 ;;; them with a hook list.
146 ;;; See clfswm.lisp for hooks examples.
148 (defconfig *init-hook
* '(default-init-hook display-hello-window
)
149 'Hook
"Init hook. This hook is run just after the first root frame is created")
151 (defconfig *close-hook
* '(close-notify-window close-clfswm-terminal close-virtual-keyboard
)
152 'Hook
"Close hook. This hook is run just before closing the display")
154 (defconfig *default-nw-hook
* 'default-frame-nw-hook
155 'Hook
"Default action to do on newly created windows")
161 (defconfig *create-frame-on-root
* nil
162 nil
"Create frame on root.
163 Set this variable to true if you want to allow to create a new frame
164 on the root window in the main mode with the mouse")
167 ;;; CONFIG: Main mode colors
168 (defconfig *color-selected
* "Red"
169 'Main-mode
"Color of selected window")
170 (defconfig *color-unselected
* "Blue"
171 'Main-mode
"Color of unselected color")
172 (defconfig *color-maybe-selected
* "Yellow"
173 'Main-mode
"Color of maybe selected windows")
176 ;;; CONFIG: Frame colors
177 (defconfig *frame-background
* "Black"
178 'Frame-colors
"Frame background")
179 (defconfig *frame-foreground
* "Green"
180 'Frame-colors
"Frame foreground")
181 (defconfig *frame-foreground-root
* "Red"
182 'Frame-colors
"Frame foreground when the frame is the root frame")
183 (defconfig *frame-foreground-hidden
* "Darkgreen"
184 'Frame-colors
"Frame foreground for hidden windows")
186 ;;; CONFIG: Default window size
187 (defconfig *default-window-width
* 400
188 nil
"Default window width")
189 (defconfig *default-window-height
* 300
190 nil
"Default window height")
192 ;;; CONFIG: Second mode colors and fonts
193 (defconfig *sm-border-color
* "Green"
194 'Second-mode
"Second mode window border color")
195 (defconfig *sm-background-color
* "Black"
196 'Second-mode
"Second mode window background color")
197 (defconfig *sm-foreground-color
* "Red"
198 'Second-mode
"Second mode window foreground color")
199 (defconfig *sm-font-string
* *default-font-string
*
200 'Second-mode
"Second mode window font string")
201 (defconfig *sm-width
* 300
202 'Second-mode
"Second mode window width")
203 (defconfig *sm-height
* 25
204 'Second-mode
"Second mode window height")
210 ;;; CONFIG - Identify key colors
211 (defconfig *identify-font-string
* *default-font-string
*
212 'Identify-key
"Identify window font string")
213 (defconfig *identify-background
* "black"
214 'Identify-key
"Identify window background color")
215 (defconfig *identify-foreground
* "green"
216 'Identify-key
"Identify window foreground color")
217 (defconfig *identify-border
* "red"
218 'Identify-key
"Identify window border color")
220 ;;; CONFIG - Query string colors
221 (defconfig *query-font-string
* *default-font-string
*
222 'Query-string
"Query string window font string")
223 (defconfig *query-background
* "black"
224 'Query-string
"Query string window background color")
225 (defconfig *query-message-color
* "yellow"
226 'Query-string
"Query string window message color")
227 (defconfig *query-foreground
* "green"
228 'Query-string
"Query string window foreground color")
229 (defconfig *query-cursor-color
* "white"
230 'Query-string
"Query string window foreground cursor color")
231 (defconfig *query-parent-color
* "blue"
232 'Query-string
"Query string window parenthesis color")
233 (defconfig *query-parent-error-color
* "red"
234 'Query-string
"Query string window parenthesis color when no match")
235 (defconfig *query-border
* "red"
236 'Query-string
"Query string window border color")
239 ;;; CONFIG - Info mode
240 (defconfig *info-background
* "black"
241 'Info-mode
"Info window background color")
242 (defconfig *info-foreground
* "green"
243 'Info-mode
"Info window foreground color")
244 (defconfig *info-border
* "red"
245 'Info-mode
"Info window border color")
246 (defconfig *info-line-cursor
* "white"
247 'Info-mode
"Info window line cursor color color")
248 (defconfig *info-selected-background
* "blue"
249 'Info-mode
"Info selected item background color")
250 (defconfig *info-font-string
* *default-font-string
*
251 'Info-mode
"Info window font string")
253 (defconfig *info-click-to-select
* t
254 'Info-mode
"If true, click on info window select item. Otherwise, click to drag the menu")
256 ;;; CONFIG - Circulate string colors
257 (defconfig *circulate-font-string
* *default-font-string
*
258 'Circulate-mode
"Circulate string window font string")
259 (defconfig *circulate-background
* "black"
260 'Circulate-mode
"Circulate string window background color")
261 (defconfig *circulate-foreground
* "green"
262 'Circulate-mode
"Circulate string window foreground color")
263 (defconfig *circulate-border
* "red"
264 'Circulate-mode
"Circulate string window border color")
265 (defconfig *circulate-width
* 400
266 'Circulate-mode
"Circulate mode window width")
267 (defconfig *circulate-height
* 15
268 'Circulate-mode
"Circulate mode window height")
271 (defconfig *circulate-text-limite
* 30
272 'Circulate-mode
"Maximum text limite in the circulate window")
275 ;;; CONFIG - Expose string colors
276 (defconfig *expose-font-string
* *default-font-string
*
277 'Expose-mode
"Expose string window font string")
278 (defconfig *expose-background
* "black"
279 'Expose-mode
"Expose string window background color")
280 (defconfig *expose-foreground
* "green"
281 'Expose-mode
"Expose string window foreground color")
282 (defconfig *expose-border
* "red"
283 'Expose-mode
"Expose string window border color")
284 (defconfig *expose-valid-on-key
* t
285 'Expose-mode
"Valid expose mode when an accel key is pressed")
286 (defconfig *expose-show-window-title
* t
287 'Expose-mode
"Show the window title on accel window")
291 ;;; CONFIG - Show key binding colors
292 (defconfig *info-color-title
* "Magenta"
293 'Info-mode
"Colored info title color")
294 (defconfig *info-color-underline
* "Yellow"
295 'Info-mode
"Colored info underline color")
296 (defconfig *info-color-first
* "Cyan"
297 'Info-mode
"Colored info first color")
298 (defconfig *info-color-second
* "lightblue"
299 'Info-mode
"Colored info second color")
302 ;;; CONFIG - Menu colors
303 ;;; Set *info-foreground* to change the default menu foreground
304 (defconfig *menu-color-submenu
* "Cyan"
305 'Menu
"Submenu color in menu")
306 (defconfig *menu-color-comment
* "Yellow"
307 'Menu
"Comment color in menu")
308 (defconfig *menu-color-key
* "Magenta"
309 'Menu
"Key color in menu")
310 (defconfig *menu-color-menu-key
* (->color
#xFF9AFF
)
311 'Menu
"Menu key color in menu")
314 ;;; CONFIG - Notify window string colors
315 (defconfig *notify-window-font-string
* *default-font-string
*
316 'Notify-Window
"Notify window font string")
317 (defconfig *notify-window-background
* "black"
318 'Notify-Window
"Notify Window background color")
319 (defconfig *notify-window-foreground
* "green"
320 'Notify-Window
"Notify Window foreground color")
321 (defconfig *notify-window-border
* "red"
322 'Notify-Window
"Notify Window border color")
323 (defconfig *notify-window-delay
* 10
324 'Notify-Window
"Notify Window display delay")