@hnode/tidy 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -4
- package/bin/tidy.js +7 -4
- package/desktop/core.js +6 -4
- package/desktop/layout-editor.js +171 -0
- package/desktop/main.js +47 -18
- package/desktop/manage.js +1 -1
- package/desktop/native/macos.swift +6 -0
- package/desktop/package-lock.json +2 -2
- package/desktop/package.json +1 -1
- package/desktop/renderer.js +14 -3
- package/desktop/style.css +15 -0
- package/dist/tidy@hnode.shell-extension.zip +0 -0
- package/docs/DEVELOPMENT.md +9 -3
- package/docs/MACOS.md +1 -1
- package/docs/README.en.md +13 -4
- package/docs/RELEASING.md +40 -14
- package/lib/layoutConfig.js +138 -0
- package/lib/layouts.js +21 -6
- package/lib/translations.json +65 -6
- package/metadata.json +2 -2
- package/package.json +3 -2
- package/scripts/manage.py +86 -13
- package/dist/winubun@winubun.local.shell-extension.zip +0 -0
package/docs/DEVELOPMENT.md
CHANGED
|
@@ -16,7 +16,7 @@ npm run check
|
|
|
16
16
|
npm run test:package
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
빌드 결과는 `dist/
|
|
19
|
+
빌드 결과는 `dist/tidy@hnode.shell-extension.zip`입니다. 런타임 소스, 컴파일한 스키마, 설치·복구 도구와 GPL 라이선스 파일을 포함합니다.
|
|
20
20
|
|
|
21
21
|
npm 배포 이름은 `@hnode/tidy`이고 실행 파일은 `bin/tidy.js`입니다. `npm pack`은 `prepack`에서 Node.js로 확장 ZIP을 빌드합니다. 이 빌드는 macOS에서도 Python 없이 동작합니다. GLib 컴파일러가 없는 환경에서는 XML 스키마를 포함하고 GNOME 설치 시 컴파일합니다. 사용자 설치 시에는 이 ZIP을 사용하므로 npm 패키지 경로가 읽기 전용이어도 됩니다. 게시 절차와 tarball 검증은 [Releasing](RELEASING.md)을 참고하세요.
|
|
22
22
|
|
|
@@ -27,10 +27,15 @@ npm 배포 이름은 `@hnode/tidy`이고 실행 파일은 `bin/tidy.js`입니다
|
|
|
27
27
|
```bash
|
|
28
28
|
GSETTINGS_BACKEND=memory GSETTINGS_SCHEMA_DIR="$PWD/schemas" gjs -m tests/lease-smoke.js
|
|
29
29
|
/usr/bin/python3 scripts/test-shell.py
|
|
30
|
+
/usr/bin/python3 scripts/test-shell.py --startup-only
|
|
31
|
+
/usr/bin/python3 scripts/test-shell.py --migration-only
|
|
32
|
+
TIDY_TEST_LEGACY_UUID=tidy@hnode.dev /usr/bin/python3 scripts/test-shell.py --migration-only
|
|
30
33
|
```
|
|
31
34
|
|
|
32
35
|
Shell 통합 테스트는 GNOME 50의 `gnome-shell-test-tool`과 가상 모니터를 지원하는 그래픽 환경이 필요합니다. 별도 D-Bus, 런타임 디렉터리, 설정 저장소와 헤드리스 Wayland 세션에서 동작합니다.
|
|
33
36
|
|
|
37
|
+
`--startup-only`는 테스트용 확장의 모듈 읽기를 지연하고 그 도중 실제 `apply-update`를 실행합니다. 로그인 도구가 GNOME의 오류 내용 없는 임시 `ERROR` 상태를 기다리고, 읽기가 끝난 뒤 활성화와 예약 파일 정리를 완료하는지 확인합니다. 지연 코드는 임시 테스트 ZIP에만 추가합니다.
|
|
38
|
+
|
|
34
39
|
Ubuntu Dock이 설치된 환경에서는 `TIDY_TEST_UBUNTU_DOCK=1 /usr/bin/python3 scripts/test-shell.py`로 Tidy 활성화 후 앱 표시 버튼이 교체되는 경우도 확인합니다. 선택기는 교체된 버튼과 관계없이 Super+A 앱 목록에서 숨겨져야 합니다.
|
|
35
40
|
|
|
36
41
|
## Test coverage
|
|
@@ -51,6 +56,7 @@ Ubuntu Dock이 설치된 환경에서는 `TIDY_TEST_UBUNTU_DOCK=1 /usr/bin/pytho
|
|
|
51
56
|
- 제거 전 확장 종료 확인, 기존 확장 복원 상태 검증과 삭제된 사용자 확장의 시스템 원본을 다음 로그인에 복원
|
|
52
57
|
- npm tarball 전역 설치, 읽기 전용 패키지, CLI 언어·의존성 검사와 설치된 복구 도구 연결
|
|
53
58
|
- 확장 재활성화·빠른 켜기/끄기, 예약 작업 취소와 데스크톱 설정 복원
|
|
59
|
+
- `winubun@winubun.local`에서 `tidy@hnode`로 이전, 이전 확장 종료·제거와 설정 유지, 업데이트 후 재로그인 안내
|
|
54
60
|
- 상단 한 행 선택기와 최대화 버튼 3열 × 2행 선택기의 개별 배치·클릭·드래그
|
|
55
61
|
- Super+A 앱 목록에서 선택기·드롭 영역·추가 검색 여백 해제와 창 보기 복귀
|
|
56
62
|
- 중첩된 Chromium 제목 표시줄, 한국어 ‘복구’ 버튼, 창 그림자를 포함한 접근성 좌표 변환
|
|
@@ -65,7 +71,7 @@ Ubuntu Dock이 설치된 환경에서는 `TIDY_TEST_UBUNTU_DOCK=1 /usr/bin/pytho
|
|
|
65
71
|
|
|
66
72
|
| 경로 | 용도 |
|
|
67
73
|
| --- | --- |
|
|
68
|
-
| `~/.local/share/gnome-shell/extensions/
|
|
74
|
+
| `~/.local/share/gnome-shell/extensions/tidy@hnode/` | 확장과 설치된 관리 도구 |
|
|
69
75
|
| `~/.local/share/applications/winubun.desktop` | Tidy 실행기 |
|
|
70
76
|
| `~/.local/state/winubun/launcher.log` | 실행 오류 |
|
|
71
77
|
| `~/.local/state/winubun/preferences.log` | 설정 앱 로그 |
|
|
@@ -73,7 +79,7 @@ Ubuntu Dock이 설치된 환경에서는 `TIDY_TEST_UBUNTU_DOCK=1 /usr/bin/pytho
|
|
|
73
79
|
|
|
74
80
|
```bash
|
|
75
81
|
gnome-shell --version
|
|
76
|
-
gnome-extensions info
|
|
82
|
+
gnome-extensions info tidy@hnode
|
|
77
83
|
journalctl --user -b --no-pager -g 'Tidy|winubun|JS ERROR'
|
|
78
84
|
```
|
|
79
85
|
|
package/docs/MACOS.md
CHANGED
|
@@ -18,7 +18,7 @@ tidy doctor
|
|
|
18
18
|
tidy install
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
0.
|
|
21
|
+
0.21.0 배포본을 버전 고정으로 테스트하는 절차는 [배포본 Mac 테스트](RELEASING.md#test-the-published-package-on-mac)에 있습니다. 전역 설치 없이 `npx --yes @hnode/tidy@0.21.0 install`로도 설치할 수 있습니다.
|
|
22
22
|
|
|
23
23
|
소스의 변경 사항을 사용하려면 저장소에서 실행하세요.
|
|
24
24
|
|
package/docs/README.en.md
CHANGED
|
@@ -31,18 +31,23 @@ The table below describes the GNOME edition. macOS provides the six-layout picke
|
|
|
31
31
|
| --- | --- |
|
|
32
32
|
| Top layout picker | Drop a window into one of six layouts arranged in a single row. |
|
|
33
33
|
| Maximize button picker | Hover over maximize or restore to open a three-column, two-row picker below the button. Can be disabled in settings. |
|
|
34
|
-
| Edge snapping |
|
|
34
|
+
| Edge snapping | The very top edge maximizes, including above the picker; left and right edges tile halves. |
|
|
35
35
|
| Overview integration | Press Super to open window overview and the single-row picker together. The picker is hidden in the Super+A application grid. |
|
|
36
36
|
| Custom shortcuts | Use Super+Alt for halves, quarters, thirds and two-thirds; customize the bindings in settings. |
|
|
37
37
|
| Multiple monitors | Repeat an arrow shortcut to move to the monitor in that direction, including above and below. Picker size adapts to each monitor. |
|
|
38
38
|
| Linked resizing | Drag shared boundaries to resize adjacent tiled windows together. Enabled by default. |
|
|
39
39
|
| Optional snap assist | Choose live window previews with titles inside empty regions. Multiple windows of the same app appear separately. Disabled by default. |
|
|
40
40
|
| Size and spacing | Adjust picker sizes and window gaps, including a separate overview picker size. |
|
|
41
|
+
| Optional layout customization | Choose visible layouts and their order, set automatic or manual per-monitor counts, and create layouts on a grid. Off by default; the original six layouts stay unchanged. |
|
|
41
42
|
|
|
42
43
|
The 100% picker size now matches the previous 115% size. Saved sizes are converted to the new reference. Top/bottom and maximize cards are removed, and a **¼ · ½ · ¼** layout sits immediately to the right of equal thirds. Maximize shortcuts and top-edge maximization remain available. Automatic sizing preserves the 16-inch built-in reference; on a 32-inch external monitor, the new 100% matches approximately 80% of the previous automatic size.
|
|
43
44
|
|
|
44
45
|
The maximize button picker waits about 350 milliseconds before opening. Click a cell to arrange that window, move away or press Esc to dismiss. It uses actual accessibility button information and supports English and Korean maximize/restore labels, including Brave’s Korean restore control and nested titlebar containers; custom titlebars that do not expose these controls are skipped. The option defaults to on and is independent of top-edge dragging.
|
|
45
46
|
|
|
47
|
+
Optional customization is available under **Settings → Layout customization**. It defaults to off and preserves the original six layouts, order and size. Enable it to select and reorder layouts, choose all/manual/automatic counts, and override counts or physical inches per monitor. Automatic counts consider physical size, usable logical resolution and orientation; they never exceed the number of selected layouts.
|
|
48
|
+
|
|
49
|
+
Use **Create grid layout** to draw rectangular regions on a grid of up to 12 rows and columns. Click a region to remove it, use Undo or Fill remaining cells, then name and save the completed layout. Regions must cover the grid without overlap, with at most 24 regions per layout. Custom layouts can be edited or deleted, and disabling customization preserves them for later use.
|
|
50
|
+
|
|
46
51
|
## Platform Support
|
|
47
52
|
|
|
48
53
|
| Environment | Status |
|
|
@@ -108,6 +113,8 @@ Super and overview integration below are GNOME features. On macOS, use the menu
|
|
|
108
113
|
2. Drag into that area to reveal the layouts and shrink the window into a small preview. Move the pointer onto the desired layout cell.
|
|
109
114
|
3. Release to tile the window. Release over empty space to cancel.
|
|
110
115
|
|
|
116
|
+
The picker stays open throughout its top-center activation area, including at the very top edge. The gap above the picker previews maximization; release there to maximize. Move down onto a layout cell to select it without reopening the picker.
|
|
117
|
+
|
|
111
118
|
Press **Super** to open window overview and the single-row layout picker together. **Super+A** hides the picker and previews while the application grid is open; returning to window overview restores them. Drag a window preview into a cell, or click a cell to place the previously focused window. Search appears when you type.
|
|
112
119
|
|
|
113
120
|
Window previews shrink as soon as you start dragging in window overview, and return to their original size on release or cancellation. Dropping a window into a layout continues directly from the miniature to its final placement.
|
|
@@ -160,7 +167,7 @@ tidy status
|
|
|
160
167
|
You can also use the installed management tool directly. The source folder is not needed:
|
|
161
168
|
|
|
162
169
|
```bash
|
|
163
|
-
tidy_manager="${XDG_DATA_HOME:-$HOME/.local/share}/gnome-shell/extensions/
|
|
170
|
+
tidy_manager="${XDG_DATA_HOME:-$HOME/.local/share}/gnome-shell/extensions/tidy@hnode/scripts/manage.py"
|
|
164
171
|
/usr/bin/python3 "$tidy_manager" prefs
|
|
165
172
|
/usr/bin/python3 "$tidy_manager" status
|
|
166
173
|
```
|
|
@@ -183,6 +190,8 @@ git pull --ff-only
|
|
|
183
190
|
|
|
184
191
|
Log out and back in when the extension code version changes. GNOME caches JavaScript for the session, so toggling the extension does not reload it. Existing settings and shortcuts are preserved.
|
|
185
192
|
|
|
193
|
+
Installation and updates always show a login notice. If the new code is waiting to be applied, **[Login required]** tells you to log out and back in; Tidy starts automatically at the next login. `tidy status` also shows the reminder until the new code is registered. Reinstalling code that is already loaded explains that no logout is needed this time.
|
|
194
|
+
|
|
186
195
|
## Uninstall
|
|
187
196
|
|
|
188
197
|
Remove the extension first, then the npm CLI:
|
|
@@ -197,14 +206,14 @@ For npx installations, use `npx @hnode/tidy@latest uninstall`. **Removing only t
|
|
|
197
206
|
Without the CLI, run the installed tool from any directory:
|
|
198
207
|
|
|
199
208
|
```bash
|
|
200
|
-
/usr/bin/python3 "${XDG_DATA_HOME:-$HOME/.local/share}/gnome-shell/extensions/
|
|
209
|
+
/usr/bin/python3 "${XDG_DATA_HOME:-$HOME/.local/share}/gnome-shell/extensions/tidy@hnode/scripts/manage.py" uninstall
|
|
201
210
|
```
|
|
202
211
|
|
|
203
212
|
This removes the extension and application launcher and restores the GNOME settings and competing tiling-extension state that Tidy changed. Tidy's custom settings and shortcuts are kept for reinstallation.
|
|
204
213
|
|
|
205
214
|
If removing a user-installed tiling extension made its UUID unavailable in the current session, the uninstaller enables any remaining system copy for the next login and completes Tidy removal. Log out and back in when prompted. An extension removed from the system entirely is not reinstalled.
|
|
206
215
|
|
|
207
|
-
The `winubun`
|
|
216
|
+
The UUID shown in extension managers is `tidy@hnode`. `tidy update` migrates an existing `winubun@winubun.local` or `tidy@hnode.dev` installation to the new UUID and preserves settings and shortcuts. The settings schema, state directory and launcher retain their internal `winubun` names for compatibility.
|
|
208
217
|
|
|
209
218
|
## Notes
|
|
210
219
|
|
package/docs/RELEASING.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Tidy는 **@hnode/tidy**라는 공개 npm 패키지로 배포합니다. `tidy` CLI, GNOME 확장 ZIP과 macOS 데스크톱 앱 소스를 포함합니다. 루트 패키지에는 런타임 npm 의존성이 없고, macOS의 명시적 `tidy install` 시 별도 사용자 폴더에 고정 버전의 Electron을 설치합니다. 확장 ZIP과 데스크톱 설치에는 GPL 소스와 라이선스 파일을 포함합니다.
|
|
4
4
|
|
|
5
|
-
현재 배포 준비 버전은 **0.
|
|
5
|
+
현재 배포 준비 버전은 **0.21.0**이며, GNOME 확장 UUID는 `tidy@hnode`, 내부 버전은 **27**입니다. 기본값은 기존 6개 배치와 같은 순서·크기를 유지합니다. 선택 기능을 켜면 배치 추가·제거·순서 변경, 모니터 인치수와 작업 영역에 따른 자동·수동 개수 조절, 격자 배치 생성·편집을 사용할 수 있습니다. 상단 중앙 인식 범위에서는 화면 맨 위 끝에 포인터를 대도 배치 선택기가 계속 열려 있습니다. 선택기 위쪽 여백에 놓으면 최대화하고, 아래의 배치 칸으로 이동하면 선택기를 다시 여는 과정 없이 배치를 고릅니다. 로그인 직후 자동 활성화는 GNOME의 모듈 읽기가 끝날 때까지 기다려, 초기 상태를 실제 확장 오류로 판단하지 않도록 수정했습니다. GNOME과 macOS가 같은 가장자리 계산을 사용합니다. Mac의 실제 창 조작은 별도로 검증하며, 자동 검사 통과와 구분합니다.
|
|
6
6
|
|
|
7
7
|
## Prepare
|
|
8
8
|
|
|
@@ -15,8 +15,8 @@ npm run check
|
|
|
15
15
|
npm run test:package
|
|
16
16
|
npm pack --dry-run
|
|
17
17
|
npm pack --pack-destination dist
|
|
18
|
-
node tests/npm-package-smoke.js dist/hnode-tidy-0.
|
|
19
|
-
sha256sum dist/hnode-tidy-0.
|
|
18
|
+
node tests/npm-package-smoke.js dist/hnode-tidy-0.21.0.tgz
|
|
19
|
+
sha256sum dist/hnode-tidy-0.21.0.tgz
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
`prepack`이 Node.js로 최신 소스의 확장 ZIP을 다시 빌드합니다. GNOME 배포용 tarball은 `glib-compile-schemas`가 있는 Linux에서 빌드해 컴파일한 스키마까지 검증하세요. macOS에서는 GLib 없이 소스 스키마를 포함한 ZIP을 만들 수 있습니다. 공개 파일은 `package.json`의 `files` 목록으로 제한합니다. `desktop/native/macos.swift`, UI와 공통 `lib/layouts.js`가 포함되는지 확인하세요. 로그, 테스트, `.npmrc`, 캐시, `node_modules`는 포함하지 않습니다. npm 패키지 설치 자체는 데스크톱 설정을 바꾸지 않으며 `postinstall`은 사용하지 않습니다.
|
|
@@ -27,9 +27,35 @@ sha256sum dist/hnode-tidy-0.20.1.tgz
|
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
29
|
/usr/bin/python3 scripts/test-shell.py
|
|
30
|
+
/usr/bin/python3 scripts/test-shell.py --startup-only
|
|
30
31
|
TIDY_TEST_UBUNTU_DOCK=1 /usr/bin/python3 scripts/test-shell.py
|
|
31
32
|
```
|
|
32
33
|
|
|
34
|
+
## Local test before publishing
|
|
35
|
+
|
|
36
|
+
검증한 로컬 tarball로 현재 사용자의 확장을 업데이트합니다. npm 캐시에서 실행하므로 전역 CLI 버전은 바뀌지 않습니다.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm exec --offline --yes --package ./dist/hnode-tidy-0.21.0.tgz -- tidy --version
|
|
40
|
+
npm exec --offline --yes --package ./dist/hnode-tidy-0.21.0.tgz -- tidy install
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
GNOME은 이미 읽은 JavaScript를 세션 동안 캐시하므로, 설치 후 **로그아웃하고 다시 로그인**해야 합니다. 설치 도구가 다음 로그인에 버전 27을 자동으로 활성화합니다. 확인할 때는 다음 명령으로 `Version: 27`, `Enabled: Yes`, `State: ACTIVE`를 확인하세요.
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
gnome-extensions info tidy@hnode
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
일반 창의 제목 표시줄을 잡고 다음 동작을 확인합니다.
|
|
50
|
+
|
|
51
|
+
- 상단 중앙에서 선택기를 연 뒤 화면 맨 위 끝까지 올려도 선택기가 계속 열려 있고, 최대화 미리보기가 표시되며 놓으면 최대화됩니다.
|
|
52
|
+
- 상단 중앙 끝으로 바로 끌어도 선택기가 열리며, 놓으면 최대화됩니다.
|
|
53
|
+
- 맨 위에서 아래로 내려오면 선택기의 닫힘·열림 없이 배치를 바로 고를 수 있고, 배치 칸에 놓으면 해당 칸으로 배치됩니다.
|
|
54
|
+
- 좌우 절반 배치와 중앙 밖 상단 최대화가 동작하며, 외장 모니터에서도 같은 결과를 확인합니다.
|
|
55
|
+
- 사용자 지정이 기본적으로 꺼져 있고 기존 6개 배치·순서·크기가 유지되는지 확인합니다.
|
|
56
|
+
- 배치 구성에서 사용자 지정을 켜고 추가 프리셋·표시 순서·수동 개수·모니터별 자동 개수를 바꿉니다. 격자 배치를 저장·편집하고 실제 창을 각 영역에 놓아 봅니다.
|
|
57
|
+
- 사용자 지정을 끄면 원래 6개 배치로 돌아가고, 다시 켰을 때 만든 배치가 보관돼 있는지 확인합니다.
|
|
58
|
+
|
|
33
59
|
## Publish
|
|
34
60
|
|
|
35
61
|
`@hnode` 사용자 계정 또는 해당 조직에 패키지를 게시할 권한이 필요합니다. 검증한 tarball을 그대로 게시합니다.
|
|
@@ -37,8 +63,8 @@ TIDY_TEST_UBUNTU_DOCK=1 /usr/bin/python3 scripts/test-shell.py
|
|
|
37
63
|
```bash
|
|
38
64
|
npm login --registry=https://registry.npmjs.org/
|
|
39
65
|
npm whoami --registry=https://registry.npmjs.org/
|
|
40
|
-
npm publish ./dist/hnode-tidy-0.
|
|
41
|
-
npm view @hnode/tidy@0.
|
|
66
|
+
npm publish ./dist/hnode-tidy-0.21.0.tgz --access public --tag latest
|
|
67
|
+
npm view @hnode/tidy@0.21.0 version os dist.integrity --json
|
|
42
68
|
npm view @hnode/tidy dist-tags --json
|
|
43
69
|
```
|
|
44
70
|
|
|
@@ -49,16 +75,16 @@ npm이 요청하는 브라우저 로그인·2FA를 완료하세요. 같은 버
|
|
|
49
75
|
Node.js 22.12 이상과 Xcode Command Line Tools가 필요합니다. 컴파일러가 없다면 `xcode-select --install`로 설치를 완료한 다음 진행하세요. 게시한 버전을 명시해 이전 `latest`나 전역 설치본과 혼동하지 않도록 합니다.
|
|
50
76
|
|
|
51
77
|
```sh
|
|
52
|
-
npx --yes @hnode/tidy@0.
|
|
53
|
-
npx --yes @hnode/tidy@0.
|
|
54
|
-
npx --yes @hnode/tidy@0.
|
|
55
|
-
npx --yes @hnode/tidy@0.
|
|
78
|
+
npx --yes @hnode/tidy@0.21.0 --version
|
|
79
|
+
npx --yes @hnode/tidy@0.21.0 doctor
|
|
80
|
+
npx --yes @hnode/tidy@0.21.0 install
|
|
81
|
+
npx --yes @hnode/tidy@0.21.0 status
|
|
56
82
|
```
|
|
57
83
|
|
|
58
|
-
첫 명령은 `0.
|
|
84
|
+
첫 명령은 `0.21.0`를 출력해야 합니다. **시스템 설정 → 개인정보 보호 및 보안 → 손쉬운 사용**에서 Tidy를 허용하세요. 메뉴 막대에서 Tidy를 종료하고 다음 명령으로 다시 실행하면 새 권한을 적용합니다.
|
|
59
85
|
|
|
60
86
|
```sh
|
|
61
|
-
npx --yes @hnode/tidy@0.
|
|
87
|
+
npx --yes @hnode/tidy@0.21.0 prefs
|
|
62
88
|
```
|
|
63
89
|
|
|
64
90
|
TextEdit나 브라우저 같은 일반 창을 선택한 뒤 확인하세요.
|
|
@@ -71,11 +97,11 @@ TextEdit나 브라우저 같은 일반 창을 선택한 뒤 확인하세요.
|
|
|
71
97
|
업데이트와 제거도 같은 공개 버전으로 확인할 수 있습니다.
|
|
72
98
|
|
|
73
99
|
```sh
|
|
74
|
-
npx --yes @hnode/tidy@0.
|
|
75
|
-
npx --yes @hnode/tidy@0.
|
|
100
|
+
npx --yes @hnode/tidy@0.21.0 update
|
|
101
|
+
npx --yes @hnode/tidy@0.21.0 uninstall
|
|
76
102
|
```
|
|
77
103
|
|
|
78
|
-
제거 후 앱과 로그인 자동 실행 등록이 없어지고 설정은 보관돼야 합니다. macOS 기본 타일링과 시스템 단축키는 변경하지 않습니다. 실패 시 `sw_vers`, `uname -m`, `node --version`과 `npx --yes @hnode/tidy@0.
|
|
104
|
+
제거 후 앱과 로그인 자동 실행 등록이 없어지고 설정은 보관돼야 합니다. macOS 기본 타일링과 시스템 단축키는 변경하지 않습니다. 실패 시 `sw_vers`, `uname -m`, `node --version`과 `npx --yes @hnode/tidy@0.21.0 status` 결과를 기록하세요. 설치 실패 시 터미널에 출력된 오류도 함께 확인합니다.
|
|
79
105
|
|
|
80
106
|
## User commands
|
|
81
107
|
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import {LAYOUTS} from './layouts.js';
|
|
2
|
+
|
|
3
|
+
export const DEFAULT_LAYOUT_IDS = ['halves', 'wide', 'focus', 'thirds', 'wide-center', 'quarters'];
|
|
4
|
+
export const MAX_LAYOUTS = 24;
|
|
5
|
+
const modes = ['all', 'manual', 'auto'];
|
|
6
|
+
const integer = (value, low, high) => Number.isInteger(value) && value >= low && value <= high;
|
|
7
|
+
export const gridZone = (columns, rows, [x, y, width, height]) => `grid:${columns}:${rows}:${x}:${y}:${width}:${height}`;
|
|
8
|
+
const uniform = (columns, rows) => Array.from({length: columns * rows}, (_, index) =>
|
|
9
|
+
gridZone(columns, rows, [index % columns, Math.floor(index / columns), 1, 1]));
|
|
10
|
+
export const EXTRA_LAYOUTS = [
|
|
11
|
+
{id: 'rows', name: 'Top and bottom', zones: ['top', 'bottom']},
|
|
12
|
+
{id: 'mirror-focus', name: 'Focus on right', zones: ['top-left', 'bottom-left', 'right']},
|
|
13
|
+
{id: 'four-columns', name: 'Four columns', zones: uniform(4, 1)},
|
|
14
|
+
{id: 'six-grid', name: 'Six regions', zones: uniform(3, 2)},
|
|
15
|
+
{id: 'eight-grid', name: 'Eight regions', zones: uniform(4, 2)},
|
|
16
|
+
{id: 'three-rows', name: 'Three rows', zones: uniform(1, 3)},
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
export function defaultLayoutConfig() {
|
|
20
|
+
return {enabled: false, mode: 'all', count: 6, selected: [...DEFAULT_LAYOUT_IDS], custom: [], monitors: {}};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function validateGrid(layout) {
|
|
24
|
+
if (!layout || !integer(layout.columns, 1, 12) || !integer(layout.rows, 1, 12) ||
|
|
25
|
+
!Array.isArray(layout.regions) || layout.regions.length < 1 || layout.regions.length > 24)
|
|
26
|
+
throw new Error('Use a grid of 1–12 rows and columns with 1–24 regions.');
|
|
27
|
+
const occupied = new Set();
|
|
28
|
+
for (const region of layout.regions) {
|
|
29
|
+
if (!Array.isArray(region) || region.length !== 4 || !region.every(Number.isInteger))
|
|
30
|
+
throw new Error('Each region must be a rectangle on the grid.');
|
|
31
|
+
const [x, y, width, height] = region;
|
|
32
|
+
if (x < 0 || y < 0 || width < 1 || height < 1 || x + width > layout.columns || y + height > layout.rows)
|
|
33
|
+
throw new Error('Regions must stay inside the grid.');
|
|
34
|
+
for (let row = y; row < y + height; row++) {
|
|
35
|
+
for (let column = x; column < x + width; column++) {
|
|
36
|
+
const key = row * layout.columns + column;
|
|
37
|
+
if (occupied.has(key)) throw new Error('Regions cannot overlap.');
|
|
38
|
+
occupied.add(key);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (occupied.size !== layout.columns * layout.rows)
|
|
43
|
+
throw new Error('Fill every grid cell before saving.');
|
|
44
|
+
return {columns: layout.columns, rows: layout.rows, regions: layout.regions.map(region => [...region])};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function gridSelection(columns, rows, start, end) {
|
|
48
|
+
const clamp = (value, high) => Math.max(0, Math.min(high - 1, Math.floor(value)));
|
|
49
|
+
const [ax, ay] = [clamp(start[0], columns), clamp(start[1], rows)];
|
|
50
|
+
const [bx, by] = [clamp(end[0], columns), clamp(end[1], rows)];
|
|
51
|
+
return [Math.min(ax, bx), Math.min(ay, by), Math.abs(ax - bx) + 1, Math.abs(ay - by) + 1];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function addGridRegion(regions, region) {
|
|
55
|
+
const [x, y, width, height] = region;
|
|
56
|
+
if (regions.some(([ox, oy, ow, oh]) => x < ox + ow && x + width > ox && y < oy + oh && y + height > oy))
|
|
57
|
+
throw new Error('Regions cannot overlap.');
|
|
58
|
+
if (regions.length >= 24) throw new Error('A layout can have at most 24 regions.');
|
|
59
|
+
return [...regions, [...region]];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function fillGrid(columns, rows, regions) {
|
|
63
|
+
const result = regions.map(region => [...region]);
|
|
64
|
+
for (let y = 0; y < rows; y++) {
|
|
65
|
+
for (let x = 0; x < columns; x++) {
|
|
66
|
+
if (!result.some(([ox, oy, width, height]) => x >= ox && x < ox + width && y >= oy && y < oy + height))
|
|
67
|
+
result.push([x, y, 1, 1]);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (result.length > 24) throw new Error('A layout can have at most 24 regions.');
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function layoutCatalog(config = defaultLayoutConfig()) {
|
|
75
|
+
return [...LAYOUTS.map((layout, index) => ({...layout, id: DEFAULT_LAYOUT_IDS[index]})), ...EXTRA_LAYOUTS,
|
|
76
|
+
...config.custom.map(layout => ({id: layout.id, name: layout.name,
|
|
77
|
+
zones: layout.regions.map(region => gridZone(layout.columns, layout.rows, region))}))];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function validateLayoutConfig(value) {
|
|
81
|
+
if (!value || typeof value.enabled !== 'boolean' || !modes.includes(value.mode) || !integer(value.count, 1, MAX_LAYOUTS) ||
|
|
82
|
+
!Array.isArray(value.custom) || value.custom.length > 20 || !Array.isArray(value.selected) ||
|
|
83
|
+
value.selected.length < 1 || value.selected.length > MAX_LAYOUTS ||
|
|
84
|
+
!value.monitors || typeof value.monitors !== 'object' || Array.isArray(value.monitors))
|
|
85
|
+
throw new Error('Invalid layout customization settings.');
|
|
86
|
+
const custom = value.custom.map(layout => {
|
|
87
|
+
if (!layout || typeof layout.id !== 'string' || !/^custom-[a-zA-Z0-9-]{1,60}$/.test(layout.id) ||
|
|
88
|
+
typeof layout.name !== 'string' || !layout.name.trim() || layout.name.length > 60)
|
|
89
|
+
throw new Error('Give each custom layout a name of 1–60 characters.');
|
|
90
|
+
return {id: layout.id, name: layout.name.trim(), ...validateGrid(layout)};
|
|
91
|
+
});
|
|
92
|
+
if (new Set(custom.map(layout => layout.id)).size !== custom.length)
|
|
93
|
+
throw new Error('Custom layout identifiers must be unique.');
|
|
94
|
+
const ids = new Set(layoutCatalog({custom}).map(layout => layout.id));
|
|
95
|
+
if (new Set(value.selected).size !== value.selected.length || !value.selected.every(id => ids.has(id)))
|
|
96
|
+
throw new Error('Choose at least one available layout.');
|
|
97
|
+
const monitors = {};
|
|
98
|
+
if (Object.keys(value.monitors).length > 32) throw new Error('Too many monitor overrides.');
|
|
99
|
+
for (const [id, monitor] of Object.entries(value.monitors)) {
|
|
100
|
+
if (id.length > 200 || ['__proto__', 'prototype', 'constructor'].includes(id) || !monitor ||
|
|
101
|
+
!['inherit', ...modes].includes(monitor.mode) || !integer(monitor.count, 1, MAX_LAYOUTS) ||
|
|
102
|
+
!Number.isFinite(monitor.inches) || (monitor.inches !== 0 && (monitor.inches < 8 || monitor.inches > 100)))
|
|
103
|
+
throw new Error('Invalid monitor layout settings.');
|
|
104
|
+
monitors[id] = {mode: monitor.mode, count: monitor.count, inches: monitor.inches};
|
|
105
|
+
}
|
|
106
|
+
return {enabled: value.enabled, mode: value.mode, count: value.count, selected: [...value.selected], custom, monitors};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function readLayoutConfig(value) {
|
|
110
|
+
try { return validateLayoutConfig(typeof value === 'string' ? JSON.parse(value) : value); }
|
|
111
|
+
catch { return defaultLayoutConfig(); }
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// This is Tidy's opt-in policy, using physical size and effective workspace.
|
|
115
|
+
// It does not change the existing six-layout default on any monitor.
|
|
116
|
+
export function automaticLayoutCount(monitor = {}) {
|
|
117
|
+
const width = monitor.workArea?.width ?? monitor.width ?? 1920;
|
|
118
|
+
const height = monitor.workArea?.height ?? monitor.height ?? 1080;
|
|
119
|
+
const inches = monitor.inches;
|
|
120
|
+
let count = inches >= 34 ? 12 : inches >= 27 ? 8 : inches >= 22 ? 6 : inches >= 8 ? 4 :
|
|
121
|
+
width >= 2560 ? 10 : width >= 1600 ? 6 : 4;
|
|
122
|
+
if (width < height) count = Math.min(count, 6);
|
|
123
|
+
if (width < 1000) count = Math.min(count, 4);
|
|
124
|
+
else if (width < 1400) count = Math.min(count, 6);
|
|
125
|
+
return count;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function pickerLayouts(config, monitor = {}) {
|
|
129
|
+
if (!config.enabled) return LAYOUTS;
|
|
130
|
+
const catalog = new Map(layoutCatalog(config).map(layout => [layout.id, layout]));
|
|
131
|
+
const selected = config.selected.map(id => catalog.get(id)).filter(Boolean);
|
|
132
|
+
const override = Object.hasOwn(config.monitors, monitor.id) ? config.monitors[monitor.id] : null;
|
|
133
|
+
const mode = override && override.mode !== 'inherit' ? override.mode : config.mode;
|
|
134
|
+
const profile = {...monitor, inches: override?.inches || monitor.inches};
|
|
135
|
+
const count = mode === 'all' ? selected.length : mode === 'auto' ? automaticLayoutCount(profile) :
|
|
136
|
+
override?.mode === 'manual' ? override.count : config.count;
|
|
137
|
+
return selected.slice(0, count);
|
|
138
|
+
}
|
package/lib/layouts.js
CHANGED
|
@@ -41,8 +41,19 @@ export const ACTIONS = [
|
|
|
41
41
|
['next-monitor', "Move to next monitor", 'next-monitor', '<Super><Alt>n'],
|
|
42
42
|
];
|
|
43
43
|
|
|
44
|
+
export function zoneParts(zone) {
|
|
45
|
+
if (Array.isArray(zone)) return zone;
|
|
46
|
+
if (Object.hasOwn(ZONES, zone)) return ZONES[zone];
|
|
47
|
+
const match = typeof zone === 'string' && /^grid:(\d+):(\d+):(\d+):(\d+):(\d+):(\d+)$/.exec(zone);
|
|
48
|
+
if (!match) return null;
|
|
49
|
+
const [columns, rows, x, y, width, height] = match.slice(1).map(Number);
|
|
50
|
+
if (columns < 1 || columns > 12 || rows < 1 || rows > 12 || width < 1 || height < 1 ||
|
|
51
|
+
x + width > columns || y + height > rows) return null;
|
|
52
|
+
return [x / columns, y / rows, width / columns, height / rows];
|
|
53
|
+
}
|
|
54
|
+
|
|
44
55
|
export function zoneRect(area, zone, gap = 0) {
|
|
45
|
-
const parts =
|
|
56
|
+
const parts = zoneParts(zone);
|
|
46
57
|
if (!parts || area.width <= 0 || area.height <= 0)
|
|
47
58
|
throw new Error('Invalid zone or work area');
|
|
48
59
|
const [x, y, width, height] = parts;
|
|
@@ -69,16 +80,20 @@ export function contains(rect, x, y) {
|
|
|
69
80
|
return x >= rect.x && y >= rect.y && x < rect.x + rect.width && y < rect.y + rect.height;
|
|
70
81
|
}
|
|
71
82
|
|
|
72
|
-
export function
|
|
83
|
+
export function inPickerTrigger(monitor, area, x, y, {height = 96, width = 320,
|
|
73
84
|
center = area.x + area.width / 2, picker = true} = {}) {
|
|
85
|
+
const halfWidth = Math.min(width, area.width - 24) / 2;
|
|
86
|
+
return picker && contains(monitor, x, y) && Math.abs(x - center) <= halfWidth && y <= area.y + height;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function dragIntent(monitor, area, x, y, options = {}) {
|
|
74
90
|
if (!contains(monitor, x, y))
|
|
75
91
|
return null;
|
|
76
|
-
|
|
77
|
-
if (picker && Math.abs(x - center) <= halfWidth && y <= area.y + height)
|
|
78
|
-
return {type: 'picker'};
|
|
79
|
-
// The rest of the top edge maximizes; the side edges tile directly.
|
|
92
|
+
// The very top always maximizes, including above the picker.
|
|
80
93
|
if (y <= area.y + 12)
|
|
81
94
|
return {type: 'tile', zone: 'maximize'};
|
|
95
|
+
if (inPickerTrigger(monitor, area, x, y, options))
|
|
96
|
+
return {type: 'picker'};
|
|
82
97
|
if (x <= monitor.x + 12)
|
|
83
98
|
return {type: 'tile', zone: 'left'};
|
|
84
99
|
if (x >= monitor.x + monitor.width - 12)
|
package/lib/translations.json
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"Disable native Super+arrow tiling": "기존 Super+방향키 창 배치 끄기",
|
|
11
11
|
"Disable GNOME Super+arrow tiling, maximize and restore shortcuts. Super+Alt and edge dragging remain available. Turn this option off to restore the original shortcuts.": "GNOME의 Super+방향키 배치·최대화·복원을 끕니다. Super+Alt와 마우스 가장자리 배치는 계속 사용할 수 있습니다. 끄면 원래 단축키를 복원합니다.",
|
|
12
12
|
"Top-center layout picker": "상단 중앙 배치 선택기",
|
|
13
|
-
"While dragging, the picker opens
|
|
13
|
+
"While dragging, the picker opens near the top center. The very top edge maximizes across the screen; left and right edges tile halves.": "드래그할 때 상단 중앙 부근에서 선택기가 열립니다. 화면 맨 위 가장자리는 중앙을 포함해 최대화, 좌우 가장자리는 절반 배치입니다.",
|
|
14
14
|
"Choose windows for the remaining space": "남은 공간의 창 선택",
|
|
15
15
|
"Dragging and spacing": "드래그와 간격",
|
|
16
16
|
"Match activation width to picker": "선택기 너비에 인식 범위 맞추기",
|
|
17
17
|
"The top activation area and drag hint follow the picker width on each monitor. Turn off to use a custom width. Default: on.": "상단 인식 범위와 드래그 안내의 너비를 모니터별 선택기 너비에 맞춥니다. 끄면 직접 너비를 정할 수 있습니다. 기본값: 켬",
|
|
18
|
-
"
|
|
18
|
+
"Move into the top-center area to open layouts. The picker stays open at the very top edge; drop in the gap above it to maximize, or move down to choose a layout.": "상단 중앙의 인식 범위에 들어가면 배치 선택기가 열립니다. 화면 맨 위 끝에서도 선택기는 열린 상태를 유지하며, 선택기 위쪽 여백에 놓으면 최대화하고 아래 배치 칸으로 내리면 배치를 고를 수 있습니다.",
|
|
19
19
|
"Pause near the top center to open layouts. Other top edges and side edges tile directly.": "상단 중앙 영역에 잠시 머물면 선택기가 열립니다. 중앙 외 상단과 좌우 가장자리는 바로 배치합니다.",
|
|
20
20
|
"Activation area height": "중앙 감지 높이",
|
|
21
21
|
"Distance from the top of the monitor work area, in logical pixels": "모니터 작업 영역 위쪽에서의 거리 (논리 픽셀)",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"Three columns": "세 칸",
|
|
49
49
|
"Focus": "집중",
|
|
50
50
|
"Four quarters": "네 칸",
|
|
51
|
-
"Top and bottom": "위아래",
|
|
51
|
+
"Top and bottom": "위아래 분할",
|
|
52
52
|
"Maximize": "전체",
|
|
53
53
|
"Left half / left monitor": "왼쪽 절반 / 왼쪽 모니터",
|
|
54
54
|
"Right half / right monitor": "오른쪽 절반 / 오른쪽 모니터",
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
"Fill remaining space · {count} slots": "남은 공간 채우기 · {count}칸",
|
|
73
73
|
"Could not restore the previous extension. Run uninstall again.": "기존 확장 복원 실패. uninstall을 다시 실행하세요.",
|
|
74
74
|
"The previous Tidy did not stop. The update was cancelled.": "기존 Tidy가 중지되지 않아 업데이트를 멈췄습니다.",
|
|
75
|
-
"
|
|
76
|
-
"
|
|
75
|
+
"[Login required] Log out and log back in to apply the update.": "[재로그인 필요] 업데이트를 적용하려면 로그아웃한 뒤 다시 로그인하세요.",
|
|
76
|
+
"Tidy will start automatically at the next login. Turning the extension off and on does not apply the new code.": "다음 로그인에서 Tidy가 자동으로 활성화됩니다. 확장을 껐다 켜는 것만으로는 새 코드가 적용되지 않습니다.",
|
|
77
|
+
"[Update notice] GNOME extension code updates require logging out and back in.": "[업데이트 안내] GNOME 확장 코드를 업데이트한 뒤에는 로그아웃 후 다시 로그인해야 적용됩니다.",
|
|
78
|
+
"This extension code version is already loaded, so no logout is needed this time.": "이번에는 이미 사용 중인 확장 코드 버전이므로 재로그인 없이 바로 사용할 수 있습니다.",
|
|
79
|
+
"Moved Tidy to {uuid}. Your settings and custom shortcuts have been kept.": "Tidy 확장 식별자를 {uuid}로 변경했습니다. 기존 설정과 사용자 지정 단축키는 유지됩니다.",
|
|
80
|
+
"GNOME could not remove the previous Tidy extension.": "GNOME에서 이전 Tidy 확장을 제거하지 못했습니다.",
|
|
77
81
|
"The previous Tidy has been stopped for this session.": "현재 세션에서는 이전 Tidy를 중지해 잘못 표시되는 패널을 제거했습니다.",
|
|
78
82
|
"Install Tidy, then log out and log back in.": "Tidy를 설치한 다음 로그아웃하고 다시 로그인하세요.",
|
|
79
83
|
"New Tidy code is installed. Please log out and log back in to apply it automatically.": "새 Tidy 코드가 설치됐습니다. 한 번 로그아웃하고 다시 로그인하면 자동 적용됩니다.",
|
|
@@ -130,6 +134,61 @@
|
|
|
130
134
|
"GNOME could not remove Tidy.": "GNOME이 Tidy를 제거하지 못했습니다.",
|
|
131
135
|
"Quit": "종료",
|
|
132
136
|
"Tidy supports Linux with GNOME Shell 46–50 and macOS.": "Tidy는 GNOME Shell 46–50 기반 Linux와 macOS를 지원합니다.",
|
|
133
|
-
"Tidy · Window tiling for Linux and macOS\n\nUsage: tidy <command>\n tidy [options]\n\nCommands:\n install Install Tidy for the current user\n update Install this package version of Tidy\n uninstall Remove Tidy and restore desktop settings\n prefs Open settings and shortcuts\n status Show installation and runtime status\n doctor Check system requirements\n\nOptions:\n -h, --help Show this help\n -v, --version Show package version\n\nGNOME: log out and back in once. macOS: starts immediately.": "Tidy · Linux와 macOS 창 배치\n\n사용법: tidy <명령>\n tidy [옵션]\n\n명령:\n install 현재 사용자에게 Tidy 설치\n update 현재 npm 패키지 버전으로 Tidy 갱신\n uninstall Tidy 제거 및 데스크톱 설정 복원\n prefs 설정 및 단축키 열기\n status 설치 및 실행 상태 확인\n doctor 시스템 요구 사항 확인\n\n옵션:\n -h, --help 도움말 표시\n -v, --version npm 패키지 버전 표시\n\nGNOME: 한 번 로그아웃하고 다시 로그인하세요. macOS: 바로 실행됩니다."
|
|
137
|
+
"Tidy · Window tiling for Linux and macOS\n\nUsage: tidy <command>\n tidy [options]\n\nCommands:\n install Install Tidy for the current user\n update Install this package version of Tidy\n uninstall Remove Tidy and restore desktop settings\n prefs Open settings and shortcuts\n status Show installation and runtime status\n doctor Check system requirements\n\nOptions:\n -h, --help Show this help\n -v, --version Show package version\n\nGNOME: log out and back in once. macOS: starts immediately.": "Tidy · Linux와 macOS 창 배치\n\n사용법: tidy <명령>\n tidy [옵션]\n\n명령:\n install 현재 사용자에게 Tidy 설치\n update 현재 npm 패키지 버전으로 Tidy 갱신\n uninstall Tidy 제거 및 데스크톱 설정 복원\n prefs 설정 및 단축키 열기\n status 설치 및 실행 상태 확인\n doctor 시스템 요구 사항 확인\n\n옵션:\n -h, --help 도움말 표시\n -v, --version npm 패키지 버전 표시\n\nGNOME: 한 번 로그아웃하고 다시 로그인하세요. macOS: 바로 실행됩니다.",
|
|
138
|
+
"Region {number}": "영역 {number}",
|
|
139
|
+
"Focus on right": "오른쪽 중심",
|
|
140
|
+
"Four columns": "4열",
|
|
141
|
+
"Six regions": "6칸",
|
|
142
|
+
"Eight regions": "8칸",
|
|
143
|
+
"Three rows": "3행",
|
|
144
|
+
"Layout customization": "배치 구성",
|
|
145
|
+
"Optional layout customization": "선택 기능 · 배치 구성",
|
|
146
|
+
"Off by default. The original six layouts, order and size remain unchanged until you enable this feature.": "기본값은 끔입니다. 이 기능을 켜기 전에는 기존 6개 배치와 순서, 크기를 그대로 유지합니다.",
|
|
147
|
+
"Customize picker layouts": "배치선택기 구성 사용자 지정",
|
|
148
|
+
"Number of layouts": "표시할 배치 개수",
|
|
149
|
+
"Show all selected layouts": "선택한 배치 모두 표시",
|
|
150
|
+
"Set a count manually": "개수 직접 지정",
|
|
151
|
+
"Adapt to each monitor": "모니터에 맞춰 자동 조절",
|
|
152
|
+
"Manual layout count": "수동 표시 개수",
|
|
153
|
+
"Changes apply immediately": "변경 사항은 즉시 적용됩니다",
|
|
154
|
+
"Limited counts use the layouts at the top of your list. Automatic counts consider inches, usable resolution and orientation.": "개수가 제한되면 목록 위쪽부터 표시합니다. 자동 모드는 인치수와 작업 영역 해상도·방향을 함께 고려합니다.",
|
|
155
|
+
"Visible layouts": "표시할 배치",
|
|
156
|
+
"Choose layouts and use the arrows to change their order.": "배치를 선택하고 화살표로 표시 순서를 바꾸세요.",
|
|
157
|
+
"Move up": "위로",
|
|
158
|
+
"Move down": "아래로",
|
|
159
|
+
"Edit": "편집",
|
|
160
|
+
"Delete": "삭제",
|
|
161
|
+
"Create a layout on a grid": "격자로 배치 만들기",
|
|
162
|
+
"Create layout": "배치 만들기",
|
|
163
|
+
"Use the original defaults": "기본 배치로 되돌리기",
|
|
164
|
+
"Your custom layouts are kept for later.": "직접 만든 배치는 보관합니다.",
|
|
165
|
+
"Per-monitor settings": "모니터별 설정",
|
|
166
|
+
"Automatic physical size is used when available. You can enter the diagonal in inches or override the count for each monitor.": "감지된 실제 모니터 크기를 사용합니다. 모니터마다 인치수를 직접 입력하거나 표시 개수를 따로 정할 수 있습니다.",
|
|
167
|
+
"Physical size unavailable": "모니터 크기 정보를 확인할 수 없습니다",
|
|
168
|
+
"Use the main setting": "공통 설정 사용",
|
|
169
|
+
"Enter monitor size manually": "모니터 크기 직접 입력",
|
|
170
|
+
"Monitor diagonal (inches)": "모니터 대각선 길이 (인치)",
|
|
171
|
+
"Edit grid layout": "격자 배치 편집",
|
|
172
|
+
"Create grid layout": "격자 배치 만들기",
|
|
173
|
+
"Layout name": "배치 이름",
|
|
174
|
+
"Columns": "열",
|
|
175
|
+
"Rows": "행",
|
|
176
|
+
"Drag across cells to add a rectangular region. Click a region to remove it.": "격자를 드래그해 사각형 영역을 추가하세요. 영역을 클릭하면 삭제합니다.",
|
|
177
|
+
"Undo": "되돌리기",
|
|
178
|
+
"Fill remaining cells": "남은 칸 채우기",
|
|
179
|
+
"Clear grid": "모두 지우기",
|
|
180
|
+
"Save layout": "배치 저장",
|
|
181
|
+
"Use a grid of 1–12 rows and columns with 1–24 regions.": "행과 열은 1~12개, 영역은 1~24개로 설정하세요.",
|
|
182
|
+
"Each region must be a rectangle on the grid.": "각 영역은 격자에 맞춘 사각형이어야 합니다.",
|
|
183
|
+
"Regions must stay inside the grid.": "영역이 격자를 벗어날 수 없습니다.",
|
|
184
|
+
"Regions cannot overlap.": "영역이 겹칠 수 없습니다.",
|
|
185
|
+
"Fill every grid cell before saving.": "모든 격자를 채운 뒤 저장하세요.",
|
|
186
|
+
"A layout can have at most 24 regions.": "배치 하나에 최대 24개 영역을 만들 수 있습니다.",
|
|
187
|
+
"Invalid layout customization settings.": "배치 구성 설정이 올바르지 않습니다.",
|
|
188
|
+
"Give each custom layout a name of 1–60 characters.": "사용자 배치 이름을 1~60자로 입력하세요.",
|
|
189
|
+
"Custom layout identifiers must be unique.": "사용자 배치 식별자가 중복될 수 없습니다.",
|
|
190
|
+
"Choose at least one available layout.": "사용할 배치를 하나 이상 선택하세요.",
|
|
191
|
+
"Too many monitor overrides.": "모니터별 설정 개수가 너무 많습니다.",
|
|
192
|
+
"Invalid monitor layout settings.": "모니터별 배치 설정이 올바르지 않습니다."
|
|
134
193
|
}
|
|
135
194
|
}
|
package/metadata.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"uuid": "
|
|
2
|
+
"uuid": "tidy@hnode",
|
|
3
3
|
"name": "Tidy",
|
|
4
4
|
"description": "Top layout picker, optional snap assist, and customizable window tiling shortcuts",
|
|
5
5
|
"shell-version": [
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
"50"
|
|
11
11
|
],
|
|
12
12
|
"settings-schema": "org.gnome.shell.extensions.winubun",
|
|
13
|
-
"version":
|
|
13
|
+
"version": 27,
|
|
14
14
|
"url": "https://github.com/hojin-v/Tidy"
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hnode/tidy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Window tiling for GNOME and macOS with a layout picker, custom shortcuts and multi-monitor support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
"desktop/package-lock.json",
|
|
17
17
|
"desktop/native/*.swift",
|
|
18
18
|
"lib/layouts.js",
|
|
19
|
+
"lib/layoutConfig.js",
|
|
19
20
|
"lib/i18nCore.js",
|
|
20
21
|
"lib/translations.json",
|
|
21
22
|
"metadata.json",
|
|
22
23
|
"scripts/manage.py",
|
|
23
24
|
"scripts/i18n.py",
|
|
24
25
|
"scripts/recover.js",
|
|
25
|
-
"dist/
|
|
26
|
+
"dist/tidy@hnode.shell-extension.zip",
|
|
26
27
|
"docs/README.en.md",
|
|
27
28
|
"docs/DEVELOPMENT.md",
|
|
28
29
|
"docs/MACOS.md",
|