Japanese translation of message catalog for Sawfish Window-Manager
修订版 | 511cdca7fd011b0ffff1980d8ed4a30f7bfbd1d1 (tree) |
---|---|
时间 | 2014-12-17 12:21:49 |
作者 | Joshua Moller-Mara <j.moller-mara@berk...> |
Commiter | Joshua Moller-Mara |
Allow passing of extra arguments to compton
@@ -27,6 +27,7 @@ | ||
27 | 27 | rep.io.processes |
28 | 28 | rep.io.timers |
29 | 29 | rep.util.misc |
30 | + rep.regexp | |
30 | 31 | sawfish.wm.misc |
31 | 32 | sawfish.wm.custom |
32 | 33 | sawfish.wm.windows |
@@ -244,6 +245,11 @@ | ||
244 | 245 | :type (number 0 100 85 1) |
245 | 246 | :after-set (lambda () (update-opacity 'notify))) |
246 | 247 | |
248 | + (defcustom compton-extra-args "" "Extra arguments to compton." | |
249 | + :depends opacity-enable | |
250 | + :group (appearance window-effects) | |
251 | + :type string) | |
252 | + | |
247 | 253 | ;; windows custom-settings entry |
248 | 254 | (define-match-window-property 'opacity 'appearance '(number 0 100 100)) |
249 | 255 | (define-match-window-property 'no-shadows 'appearance 'boolean) |
@@ -282,12 +288,13 @@ | ||
282 | 288 | (when (program-exists-p "compton") |
283 | 289 | (stop-compton) |
284 | 290 | (setq %compton-proc (make-process)) |
285 | - (start-process %compton-proc "compton" (format nil "%s" c-shadows) (format nil "%s" c-fade) (format nil "%s" c-avoid) (format nil "%s" c-zero) | |
291 | + (apply start-process %compton-proc "compton" (format nil "%s" c-shadows) (format nil "%s" c-fade) (format nil "%s" c-avoid) (format nil "%s" c-zero) | |
286 | 292 | "-r" (number->string blur-radius) "-o" (format nil "%s" c-trans) "-l" (number->string left-offset) |
287 | 293 | "-t" (number->string top-offset) "-I" (format nil "%s" c-fade-i) "-O" (format nil "%s" c-fade-o) "-D" (number->string fade-time) |
288 | 294 | "-m" (format nil "%s" c-menu-o) "--shadow-red" (format nil "%s" c-red) "--shadow-green" (format nil "%s" c-green) |
289 | 295 | "--shadow-blue" (format nil "%s" c-blue) (format nil "%s" c-dad) "--detect-rounded-corners" "--shadow-exclude" (concat c-smenu) |
290 | - "--shadow-exclude" "_COMPTON_SHADOW:32c = 0"))) | |
296 | + "--shadow-exclude" "_COMPTON_SHADOW:32c = 0" | |
297 | + (unless (= (length compton-extra-args) 0) (string-split "\\s+" compton-extra-args))))) | |
291 | 298 | |
292 | 299 | (define (stop-compton) |
293 | 300 | "Stop compton, if running." |