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