Japanese translation of message catalog for Sawfish Window-Manager
修订版 | f9c3845778c2ff6fbd849957c0e824a8ec97d644 (tree) |
---|---|
时间 | 2013-03-31 03:46:31 |
作者 | Christopher Roy Bratusek <nano@tuxf...> |
Commiter | Christopher Roy Bratusek |
remove sawfish.wm.ext.expose, add never-tile window matcher in favour of never-expose
@@ -1,102 +0,0 @@ | ||
1 | -;; expose.jl --- Tile Sawfish windows in an intelligent (hah!) fashion | |
2 | -;; | |
3 | -;; Description: Handles tiling of all windows on the current workspace. | |
4 | -;; Windows are automatically sized and arranged to make best use of the | |
5 | -;; workspace without overlapping. | |
6 | -;; | |
7 | -;; Author: Mark Triggs <mst@dishevelled.net> | |
8 | -;; Maintainer: Christopher Roy Bratusek <nano@tuxfamily.org> | |
9 | - | |
10 | -(define-structure sawfish.wm.ext.expose | |
11 | - | |
12 | - (export expose-windows | |
13 | - expose-windows-vertically | |
14 | - expose-windows-horizontally | |
15 | - window-never-expose-p) | |
16 | - | |
17 | - (open rep | |
18 | - rep.data | |
19 | - rep.system | |
20 | - sawfish.wm.commands | |
21 | - sawfish.wm.misc | |
22 | - sawfish.wm.windows | |
23 | - sawfish.wm.workspace | |
24 | - sawfish.wm.viewport | |
25 | - sawfish.wm.state.iconify | |
26 | - sawfish.wm.state.maximize | |
27 | - sawfish.wm.state.ignored | |
28 | - sawfish.wm.commands.move-resize) | |
29 | - | |
30 | - (define-structure-alias expose sawfish.wm.ext.expose) | |
31 | - | |
32 | - (defvar min-height (/ (screen-height) 4) | |
33 | - "For windows at least, wideness is preferable to tallness. So, the minimum | |
34 | -height specifies how short you are willing to tolerate your windows before | |
35 | -an extra column should be used.") | |
36 | - | |
37 | - (define (window-never-expose-p w) (window-get w 'never-expose)) | |
38 | - | |
39 | - (defvar top-panel-height 0 | |
40 | - "This var will be considered when using tile commands offered by hqw-util") | |
41 | - | |
42 | - (defvar bottom-panel-height 0 | |
43 | - "This var will be considered when using tile commands offered by hqw-util") | |
44 | - | |
45 | - (define (expose-windows-vertically) | |
46 | - (lambda () | |
47 | - (let ( | |
48 | - (wins (workspace-windows current-workspace))) | |
49 | - (expose-windows wins t | |
50 | - #:top-left-corner `(0 . ,top-panel-height) | |
51 | - #:height-for-tile (- (screen-height) (+ top-panel-height bottom-panel-height)))))) | |
52 | - | |
53 | - (define (expose-windows-horizontally) | |
54 | - (lambda () | |
55 | - (let ( | |
56 | - (wins (workspace-windows current-workspace))) | |
57 | - (expose-windows wins nil | |
58 | - #:top-left-corner `(0 . ,top-panel-height) | |
59 | - #:height-for-tile (- (screen-height) | |
60 | - (+ top-panel-height bottom-panel-height)))))) | |
61 | - | |
62 | - (define (expose-windows wins #!optional | |
63 | - vertically | |
64 | - #!key | |
65 | - (width-for-tile (screen-width)) | |
66 | - (height-for-tile (screen-height)) | |
67 | - (top-left-corner '(0 . 0))) | |
68 | - "To tile windows." | |
69 | - (let* ( | |
70 | - (windows (remove-if (or window-iconified-p | |
71 | - window-never-expose-p | |
72 | - window-ignored-p) | |
73 | - (or (filter-windows window-on-current-workspace-viewport-p) | |
74 | - (filter-windows window-on-current-head-viewport-p)))) | |
75 | - (len (length windows)) | |
76 | - (border-width (- (car (window-frame-dimensions (car windows))) | |
77 | - (car (window-dimensions (car windows))))) | |
78 | - (border-height (- (cdr (window-frame-dimensions (car windows))) | |
79 | - (cdr (window-dimensions (car windows))))) | |
80 | - (width-step (ceiling (/ width-for-tile | |
81 | - len))) | |
82 | - (height-step (ceiling (/ height-for-tile | |
83 | - len)))) | |
84 | - (do ( | |
85 | - (w (car windows) (progn (setq windows (cdr windows)) (car windows))) | |
86 | - (x (car top-left-corner) (if vertically | |
87 | - x | |
88 | - (setq x (+ x width-step)))) | |
89 | - (y (cdr top-left-corner) (if vertically | |
90 | - (setq y (+ y height-step)) | |
91 | - y)) | |
92 | - (win-width (if vertically | |
93 | - (- width-for-tile border-width) | |
94 | - (- width-step border-width))) | |
95 | - (win-height (if vertically | |
96 | - (- height-step border-height) | |
97 | - (- height-for-tile border-height))) | |
98 | - ) | |
99 | - ((null wins) ) | |
100 | - (move-resize-window-to w x y win-width win-height)))) | |
101 | - | |
102 | - (define-command 'expose-windows expose-windows)) |
@@ -121,7 +121,7 @@ | ||
121 | 121 | (ignore-stacking-requests boolean) |
122 | 122 | (auto-gravity boolean) |
123 | 123 | (never-delete boolean) |
124 | - (never-expose boolean) | |
124 | + (never-tile boolean) | |
125 | 125 | ))) |
126 | 126 | |
127 | 127 | ;; alist of (PROPERTY . FEATURE) mapping properties to the lisp |
@@ -18,7 +18,8 @@ | ||
18 | 18 | align-workspace-windows |
19 | 19 | notify |
20 | 20 | take |
21 | - group-by) | |
21 | + group-by | |
22 | + window-never-tile-p) | |
22 | 23 | (open rep |
23 | 24 | rep.io.timers |
24 | 25 | sawfish.wm.stacking |
@@ -34,13 +35,15 @@ | ||
34 | 35 | |
35 | 36 | (define (window-workspace w) (car (window-get w 'workspaces))) |
36 | 37 | |
38 | + (define (window-never-tile-p w) (window-get w 'never-tile)) | |
39 | + | |
37 | 40 | (define (tileable-workspace-windows #!optional ignore) |
38 | 41 | (remove-if (lambda (w) |
39 | 42 | (or (equal w ignore) |
40 | 43 | (dock-window-p w) |
41 | 44 | (window-iconified-p w) |
42 | 45 | ;; window-matcher |
43 | - (window-never-expose-p w) | |
46 | + (window-never-tile-p w) | |
44 | 47 | ;; for pager and stuff |
45 | 48 | (not (window-visible-p w)) |
46 | 49 | ;; no dialogs |