• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

修訂511cdca7fd011b0ffff1980d8ed4a30f7bfbd1d1 (tree)
時間2014-12-17 12:21:49
作者Joshua Moller-Mara <j.moller-mara@berk...>
CommiterJoshua Moller-Mara

Log Message

Allow passing of extra arguments to compton

Change Summary

差異

--- a/lisp/sawfish/wm/prg/compton.jl
+++ b/lisp/sawfish/wm/prg/compton.jl
@@ -27,6 +27,7 @@
2727 rep.io.processes
2828 rep.io.timers
2929 rep.util.misc
30+ rep.regexp
3031 sawfish.wm.misc
3132 sawfish.wm.custom
3233 sawfish.wm.windows
@@ -244,6 +245,11 @@
244245 :type (number 0 100 85 1)
245246 :after-set (lambda () (update-opacity 'notify)))
246247
248+ (defcustom compton-extra-args "" "Extra arguments to compton."
249+ :depends opacity-enable
250+ :group (appearance window-effects)
251+ :type string)
252+
247253 ;; windows custom-settings entry
248254 (define-match-window-property 'opacity 'appearance '(number 0 100 100))
249255 (define-match-window-property 'no-shadows 'appearance 'boolean)
@@ -282,12 +288,13 @@
282288 (when (program-exists-p "compton")
283289 (stop-compton)
284290 (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)
286292 "-r" (number->string blur-radius) "-o" (format nil "%s" c-trans) "-l" (number->string left-offset)
287293 "-t" (number->string top-offset) "-I" (format nil "%s" c-fade-i) "-O" (format nil "%s" c-fade-o) "-D" (number->string fade-time)
288294 "-m" (format nil "%s" c-menu-o) "--shadow-red" (format nil "%s" c-red) "--shadow-green" (format nil "%s" c-green)
289295 "--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)))))
291298
292299 (define (stop-compton)
293300 "Stop compton, if running."