@hnode/tidy 0.18.1 → 0.19.4
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 +18 -9
- package/dist/winubun@winubun.local.shell-extension.zip +0 -0
- package/docs/DEVELOPMENT.md +9 -1
- package/docs/README.en.md +13 -5
- package/docs/RELEASING.md +3 -2
- package/docs/preview.png +0 -0
- package/lib/translations.json +17 -4
- package/metadata.json +1 -1
- package/package.json +1 -1
- package/scripts/manage.py +56 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Window tiling for GNOME
|
|
6
6
|
|
|
7
7
|
창을 화면 위로 끌어 배치를 고르고, 단축키로 모니터 사이를 이동하세요.
|
|
8
|
-
|
|
8
|
+
Ubuntu GNOME에서 창을 나누고 정렬하는 확장입니다.
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|

|
|
@@ -27,14 +27,19 @@ Tidy는 GNOME Shell에서 실행되는 창 배치 확장입니다. 여러 모니
|
|
|
27
27
|
|
|
28
28
|
| 기능 | 동작 |
|
|
29
29
|
| --- | --- |
|
|
30
|
-
| 상단 배치 선택기 | 창을 상단 중앙으로 끌어 원하는 칸에 놓습니다.
|
|
30
|
+
| 상단 배치 선택기 | 창을 상단 중앙으로 끌어 원하는 칸에 놓습니다. 6가지 배치를 한 행으로 표시합니다. |
|
|
31
|
+
| 최대화 버튼 선택기 | 최대화·복원 버튼에 마우스를 잠시 올리면 3열 × 2행 선택기가 열립니다. 설정에서 켜고 끌 수 있습니다. |
|
|
31
32
|
| 가장자리 배치 | 중앙 외 상단은 최대화, 왼쪽·오른쪽 가장자리는 절반 배치로 동작합니다. |
|
|
32
|
-
|
|
|
33
|
+
| 창 보기 연동 | Super로 창 보기와 한 행 선택기를 함께 엽니다. 창 미리보기를 배치 칸에 끌어 놓습니다. Super+A 앱 목록에서는 선택기를 숨깁니다. |
|
|
33
34
|
| 사용자 지정 단축키 | Super+Alt 조합으로 절반·¼·⅓·⅔ 배치를 지정하고 단축키를 바꿀 수 있습니다. |
|
|
34
35
|
| 다중 모니터 | 같은 방향키를 반복하면 해당 방향의 모니터로 이동합니다. 선택기 크기도 모니터에 맞춰 조절합니다. |
|
|
35
36
|
| 함께 크기 조절 | 타일 창의 공유 경계를 끌면 맞닿은 창을 함께 조절합니다. 기본값은 켬입니다. |
|
|
36
37
|
| 남은 공간 채우기 | 빈 영역에 실행 중인 앱 아이콘을 표시해 다음 창을 고릅니다. 기본값은 끔입니다. |
|
|
37
|
-
| 크기와 간격 설정 | 일반 선택기와
|
|
38
|
+
| 크기와 간격 설정 | 일반 선택기와 창 보기 선택기의 크기, 창 사이 간격을 조절합니다. |
|
|
39
|
+
|
|
40
|
+
선택기의 100%는 이전 버전의 115% 크기입니다. 기존에 저장한 크기는 새 기준으로 환산합니다. 상하 분할과 전체화면 카드는 제거하고, 동일한 너비의 3열 오른쪽에 **¼ · ½ · ¼** 배치를 제공합니다. 최대화 단축키와 화면 상단 가장자리의 최대화 동작은 계속 사용할 수 있습니다. 자동 크기 조절은 16인치 내장 화면의 기준 크기를 유지하며, 32인치 외장 화면에서는 이전 자동 크기의 약 80%를 새 100%로 사용합니다.
|
|
41
|
+
|
|
42
|
+
최대화 버튼 선택기는 약 0.35초 대기 후 열리며, 칸을 클릭하면 해당 창을 배치합니다. 바깥으로 마우스를 옮기거나 Esc를 누르면 닫힙니다. 실제 버튼의 접근성 정보를 사용하므로, 버튼 정보를 제공하지 않는 자체 제목 표시줄에서는 표시되지 않습니다. 영어·한국어 최대화·복원 버튼을 지원하며, Brave의 ‘복구’ 버튼과 중첩된 제목 표시줄도 감지합니다.
|
|
38
43
|
|
|
39
44
|
## Platform Support
|
|
40
45
|
|
|
@@ -90,9 +95,9 @@ Git 대신 [Download ZIP](https://github.com/hojin-v/Tidy/archive/refs/heads/mai
|
|
|
90
95
|
2. 그 영역으로 끌면 선택기가 펼쳐지고 창이 작은 미리보기로 줄어듭니다. 원하는 배치 칸으로 포인터를 옮깁니다.
|
|
91
96
|
3. 마우스를 놓으면 창을 배치합니다. 빈 곳에서 놓으면 취소합니다.
|
|
92
97
|
|
|
93
|
-
**Super**를 누르면
|
|
98
|
+
**Super**를 누르면 창 보기와 한 행 배치 선택기가 함께 열립니다. **Super+A**로 앱 목록을 열면 선택기와 배치 미리보기를 숨기고, 창 보기로 돌아오면 다시 표시합니다. 창 미리보기를 원하는 칸에 끌어 놓거나, 칸을 클릭해 원래 포커스된 창을 배치할 수 있습니다. 검색은 글자를 입력할 때 나타납니다.
|
|
94
99
|
|
|
95
|
-
|
|
100
|
+
창 보기에서는 창 미리보기를 잡고 움직이는 즉시 작아지며, 놓거나 취소하면 원래 크기로 돌아옵니다. 배치 칸에 놓으면 작은 미리보기에서 배치 위치로 이어집니다.
|
|
96
101
|
|
|
97
102
|
남은 공간의 창 선택 옵션을 켰다면 빈 영역의 앱 아이콘을 선택하세요. 현재 창이나 다른 영역을 클릭하거나 Esc를 누르면 추가 배치 없이 마칩니다.
|
|
98
103
|
|
|
@@ -106,8 +111,8 @@ Git 대신 [Download ZIP](https://github.com/hojin-v/Tidy/archive/refs/heads/mai
|
|
|
106
111
|
|
|
107
112
|
| 단축키 | 동작 |
|
|
108
113
|
| --- | --- |
|
|
109
|
-
| Super |
|
|
110
|
-
| Super + A | GNOME 앱 목록 전환 |
|
|
114
|
+
| Super | 창 보기와 배치 선택기 열기 / 닫기 |
|
|
115
|
+
| Super + A | GNOME 앱 목록 전환 · 배치 선택기는 숨김 |
|
|
111
116
|
| Super + Alt + ← / → | 왼쪽 / 오른쪽 절반 배치. 같은 방향 반복 시 다음 모니터로 이동하며 양 끝에서는 반대편 끝으로 순환 |
|
|
112
117
|
| Super + Alt + ↑ / ↓ | 위쪽 / 아래쪽 절반 배치. 같은 방향 반복 시 위·아래 모니터로 이동하며 양 끝에서는 반대편 끝으로 순환 |
|
|
113
118
|
| Super + Alt + Enter | 최대화 / 이전 크기·배치로 복귀 |
|
|
@@ -128,9 +133,10 @@ Git 대신 [Download ZIP](https://github.com/hojin-v/Tidy/archive/refs/heads/mai
|
|
|
128
133
|
|
|
129
134
|
- **기존 Super+방향키 창 배치 끄기**: GNOME 기본 배치 단축키를 끕니다. 해제하거나 Tidy를 종료하면 기존 단축키를 복원합니다.
|
|
130
135
|
- **모니터에 맞춰 선택기 크기 자동 조절**: 내장 화면을 기준으로 큰 외장 모니터의 선택기를 적당히 키웁니다. 기본값은 켬입니다.
|
|
131
|
-
- **배치 선택기 크기 /
|
|
136
|
+
- **배치 선택기 크기 / 창 보기 선택기 크기**: 기본 크기는 같으며, 창 보기의 크기를 별도로 조절할 수 있습니다.
|
|
132
137
|
- **선택기 너비에 인식 범위 맞추기**: 기본값은 켬입니다. 모니터별 선택기 너비에 맞춰 인식 영역과 드래그 안내를 조절합니다. 끄면 기존 사용자 지정 너비를 사용합니다.
|
|
133
138
|
- **남은 공간의 창 선택**: 배치 후 빈 영역에 앱 아이콘을 표시합니다. 기본값은 끔입니다.
|
|
139
|
+
- **최대화 버튼에 마우스를 올리면 배치 선택기 표시**: 최대화·복원 버튼에서 선택기를 엽니다. 기본값은 켬이며 상단 드래그 선택기와 별도로 끌 수 있습니다.
|
|
134
140
|
|
|
135
141
|
CLI에서도 설정이나 상태를 확인할 수 있습니다.
|
|
136
142
|
|
|
@@ -184,11 +190,14 @@ CLI가 없어도 어느 폴더에서든 설치된 도구로 제거할 수 있습
|
|
|
184
190
|
|
|
185
191
|
확장과 앱 실행기를 제거하고, 변경했던 GNOME 설정과 기존 타일링 확장 상태를 복원합니다. Tidy의 사용자 설정과 단축키는 재설치를 위해 보관합니다.
|
|
186
192
|
|
|
193
|
+
기존 타일링 확장의 사용자 설치본을 삭제하여 현재 세션에서 인식되지 않는 경우, 남아 있는 시스템 원본을 다음 로그인에 활성화하도록 설정하고 Tidy 제거를 완료합니다. 이 경우 출력 안내에 따라 다시 로그인하세요. 이전 확장이 시스템에서도 제거됐다면 재설치하지 않습니다.
|
|
194
|
+
|
|
187
195
|
경로의 `winubun`은 기존 설정과 고정한 실행기의 호환성을 위해 유지한 내부 이름입니다.
|
|
188
196
|
|
|
189
197
|
## Notes
|
|
190
198
|
|
|
191
199
|
- **Ubuntu Tiling Assistant**가 켜져 있으면 설치 도구가 원래 상태를 기록하고 비활성화합니다. `uninstall` 시 복원합니다. 확장 앱에서 Tidy만 끄면 Tiling Assistant는 중지 상태로 남습니다.
|
|
200
|
+
- 확장 관리자의 X는 확장 오류를 뜻합니다. `gnome-extensions info tiling-assistant@ubuntu.com`과 Shell 로그로 실제 상태를 확인하세요. Ubuntu Tiling Assistant의 중복 초기화나 해제 실패로 남은 동작은 해당 확장의 복구가 필요합니다. Tidy와 동시에 켜지 않도록 관리하세요.
|
|
192
201
|
- 앱이 요구하는 최소 창 크기나 터미널의 크기 단위 때문에 작은 칸에 정확히 맞지 않을 수 있습니다. 전체 화면 앱과 이동·크기 변경을 허용하지 않는 창은 배치 대상에서 제외합니다.
|
|
193
202
|
- 문제를 신고할 때는 GNOME 버전, Wayland/X11 여부, 모니터 배치와 재현 순서를 [Issues](https://github.com/hojin-v/Tidy/issues)에 남겨 주세요.
|
|
194
203
|
|
|
Binary file
|
package/docs/DEVELOPMENT.md
CHANGED
|
@@ -27,6 +27,8 @@ GSETTINGS_BACKEND=memory GSETTINGS_SCHEMA_DIR="$PWD/schemas" gjs -m tests/lease-
|
|
|
27
27
|
|
|
28
28
|
Shell 통합 테스트는 GNOME 50의 `gnome-shell-test-tool`과 가상 모니터를 지원하는 그래픽 환경이 필요합니다. 별도 D-Bus, 런타임 디렉터리, 설정 저장소와 헤드리스 Wayland 세션에서 동작합니다.
|
|
29
29
|
|
|
30
|
+
Ubuntu Dock이 설치된 환경에서는 `TIDY_TEST_UBUNTU_DOCK=1 /usr/bin/python3 scripts/test-shell.py`로 Tidy 활성화 후 앱 표시 버튼이 교체되는 경우도 확인합니다. 선택기는 교체된 버튼과 관계없이 Super+A 앱 목록에서 숨겨져야 합니다.
|
|
31
|
+
|
|
30
32
|
## Test coverage
|
|
31
33
|
|
|
32
34
|
- 화면 분할 경계, 창 사이 간격, 음수 좌표와 방향별 모니터 탐색
|
|
@@ -42,8 +44,14 @@ Shell 통합 테스트는 GNOME 50의 `gnome-shell-test-tool`과 가상 모니
|
|
|
42
44
|
- 창·앱 보기의 드래그 즉시 축소, 포인터 고정·복귀와 작은 상태에서의 배치 전환
|
|
43
45
|
- 남은 공간의 앱 선택, 빈 곳 클릭·Esc 취소와 최소화된 창 복원
|
|
44
46
|
- 원본 소스 폴더를 삭제한 뒤 설치 도구 실행·설정 복구·제거
|
|
47
|
+
- 제거 전 확장 종료 확인, 기존 확장 복원 상태 검증과 삭제된 사용자 확장의 시스템 원본을 다음 로그인에 복원
|
|
45
48
|
- npm tarball 전역 설치, 읽기 전용 패키지, CLI 언어·의존성 검사와 설치된 복구 도구 연결
|
|
46
|
-
- 확장
|
|
49
|
+
- 확장 재활성화·빠른 켜기/끄기, 예약 작업 취소와 데스크톱 설정 복원
|
|
50
|
+
- 상단 한 행 선택기와 최대화 버튼 3열 × 2행 선택기의 개별 배치·클릭·드래그
|
|
51
|
+
- Super+A 앱 목록에서 선택기·드롭 영역·추가 검색 여백 해제와 창 보기 복귀
|
|
52
|
+
- 중첩된 Chromium 제목 표시줄, 한국어 ‘복구’ 버튼, 창 그림자를 포함한 접근성 좌표 변환
|
|
53
|
+
|
|
54
|
+
접근성 조회 회귀 검사는 `gjs -m tests/maximizeButton-smoke.js`로 실행합니다. 실제 Brave 검사는 `TIDY_BRAVE_BINARY`에 실행 파일을 지정하고 `python3 scripts/test-shell.py --brave-only`로 실행합니다. 별도 프로필·GTK 3 제목 표시줄·정적 `data:` 페이지를 사용하며, 테스트용 버튼 설정 모듈을 만들 C 컴파일러와 GTK 3 런타임이 필요합니다. Snap 내부 바이너리를 직접 사용하는 환경의 테스트에 한해 `TIDY_BRAVE_TEST_NO_SANDBOX=1`을 지정할 수 있으며, 실제 사용자 브라우저의 설정이나 실행 인자는 바꾸지 않습니다.
|
|
47
55
|
|
|
48
56
|
헤드리스 백엔드에서는 실제 마우스 제스처 대신 잡기 신호·포인터 좌표·Shell 드래그 콜백을 주입합니다. 실제 마우스 조작은 데스크톱에서 별도로 확인해야 합니다. GNOME 46–49와 X11은 실기 검증 전입니다.
|
|
49
57
|
|
package/docs/README.en.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Window tiling for GNOME
|
|
6
6
|
|
|
7
7
|
Drag a window to the top of a monitor, choose a layout, and move between monitors with keyboard shortcuts.
|
|
8
|
-
Tidy
|
|
8
|
+
Tidy adds flexible window arrangement to Ubuntu GNOME.
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|

|
|
@@ -27,15 +27,20 @@ The interface follows your desktop language. Korean and English are supported; o
|
|
|
27
27
|
|
|
28
28
|
| Feature | Behavior |
|
|
29
29
|
| --- | --- |
|
|
30
|
-
| Top layout picker | Drop a window into
|
|
30
|
+
| Top layout picker | Drop a window into one of six layouts arranged in a single row. |
|
|
31
|
+
| Maximize button picker | Hover over maximize or restore to open a three-column, two-row picker below the button. Can be disabled in settings. |
|
|
31
32
|
| Edge snapping | Other top edges maximize; left and right edges tile halves. |
|
|
32
|
-
| Overview integration | Press Super to open
|
|
33
|
+
| Overview integration | Press Super to open window overview and the single-row picker together. The picker is hidden in the Super+A application grid. |
|
|
33
34
|
| Custom shortcuts | Use Super+Alt for halves, quarters, thirds and two-thirds; customize the bindings in settings. |
|
|
34
35
|
| Multiple monitors | Repeat an arrow shortcut to move to the monitor in that direction, including above and below. Picker size adapts to each monitor. |
|
|
35
36
|
| Linked resizing | Drag shared boundaries to resize adjacent tiled windows together. Enabled by default. |
|
|
36
37
|
| Optional snap assist | Choose running app icons inside empty regions to fill the remaining space. Disabled by default. |
|
|
37
38
|
| Size and spacing | Adjust picker sizes and window gaps, including a separate overview picker size. |
|
|
38
39
|
|
|
40
|
+
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.
|
|
41
|
+
|
|
42
|
+
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.
|
|
43
|
+
|
|
39
44
|
## Platform Support
|
|
40
45
|
|
|
41
46
|
| Environment | Status |
|
|
@@ -90,9 +95,9 @@ All runtime tools are copied into the installation. **You can delete the downloa
|
|
|
90
95
|
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.
|
|
91
96
|
3. Release to tile the window. Release over empty space to cancel.
|
|
92
97
|
|
|
93
|
-
Press **Super** to open
|
|
98
|
+
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.
|
|
94
99
|
|
|
95
|
-
Window previews
|
|
100
|
+
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.
|
|
96
101
|
|
|
97
102
|
With snap assist enabled, select an app icon in an empty region to tile its window there. Click the current window or another area, or press Esc, to finish without any additional placements.
|
|
98
103
|
|
|
@@ -184,12 +189,15 @@ Without the CLI, run the installed tool from any directory:
|
|
|
184
189
|
|
|
185
190
|
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.
|
|
186
191
|
|
|
192
|
+
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.
|
|
193
|
+
|
|
187
194
|
The `winubun` path is a stable internal name retained for compatibility with existing settings and pinned launchers.
|
|
188
195
|
|
|
189
196
|
## Notes
|
|
190
197
|
|
|
191
198
|
- If **Ubuntu Tiling Assistant** is enabled, the installer records its state and disables it. `uninstall` restores it. Disabling only Tidy in GNOME's extension manager leaves Tiling Assistant disabled.
|
|
192
199
|
- Application minimum sizes and terminal resize increments can prevent an exact fit. Fullscreen windows and windows that disallow movement or resizing are excluded.
|
|
200
|
+
- An X in the extension manager indicates an extension error. Check `gnome-extensions info tiling-assistant@ubuntu.com` and the Shell logs for its actual state. Duplicate initialization or failed cleanup in Ubuntu Tiling Assistant requires repairing that extension. Keep it disabled while using Tidy.
|
|
193
201
|
- When reporting a problem in [Issues](https://github.com/hojin-v/Tidy/issues), include your GNOME version, Wayland/X11 session, monitor arrangement and reproduction steps.
|
|
194
202
|
|
|
195
203
|
See [Development](DEVELOPMENT.md) for development commands, test coverage and diagnostic paths, and [Releasing](RELEASING.md) for npm publication.
|
package/docs/RELEASING.md
CHANGED
|
@@ -13,7 +13,7 @@ npm run check
|
|
|
13
13
|
npm run test:package
|
|
14
14
|
npm pack --dry-run
|
|
15
15
|
npm pack --pack-destination dist
|
|
16
|
-
node tests/npm-package-smoke.js dist/hnode-tidy-0.
|
|
16
|
+
node tests/npm-package-smoke.js dist/hnode-tidy-0.19.4.tgz
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
`prepack`이 최신 소스로 확장 ZIP을 다시 빌드합니다. 공개 파일은 `package.json`의 `files` 목록으로 제한합니다. 로그, 테스트, `.npmrc`, 캐시가 포함되지 않는지 확인하세요. npm 패키지 설치 자체는 데스크톱 설정을 바꾸지 않으며 `postinstall`은 사용하지 않습니다.
|
|
@@ -24,6 +24,7 @@ node tests/npm-package-smoke.js dist/hnode-tidy-0.18.1.tgz
|
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
/usr/bin/python3 scripts/test-shell.py
|
|
27
|
+
TIDY_TEST_UBUNTU_DOCK=1 /usr/bin/python3 scripts/test-shell.py
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
## Publish
|
|
@@ -33,7 +34,7 @@ node tests/npm-package-smoke.js dist/hnode-tidy-0.18.1.tgz
|
|
|
33
34
|
```bash
|
|
34
35
|
npm login --registry=https://registry.npmjs.org/
|
|
35
36
|
npm whoami --registry=https://registry.npmjs.org/
|
|
36
|
-
npm publish ./dist/hnode-tidy-0.
|
|
37
|
+
npm publish ./dist/hnode-tidy-0.19.4.tgz --access public --tag latest
|
|
37
38
|
npm view @hnode/tidy version dist-tags --json
|
|
38
39
|
```
|
|
39
40
|
|
package/docs/preview.png
CHANGED
|
Binary file
|
package/lib/translations.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"Drag a window to the top of the screen and drop it into a layout. Settings take effect immediately.": "창을 화면 위쪽으로 끌어 원하는 칸에 놓으세요. 모든 설정은 즉시 적용됩니다.",
|
|
7
7
|
"Resize tiled windows together": "타일 창 크기 함께 조절",
|
|
8
8
|
"Drag a shared boundary to resize adjacent windows together. Default: on.": "맞닿은 경계를 드래그하면 이웃 창의 크기도 함께 바뀝니다. 기본값: 켬",
|
|
9
|
-
"Show layouts in the window
|
|
9
|
+
"Show layouts in the window overview": "창 보기에 상단 배치 선택기 표시",
|
|
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": "상단 중앙 배치 선택기",
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
"Manage symlink installations manually: {path}": "심볼릭 링크 설치는 수동으로 관리하세요: {path}",
|
|
95
95
|
"Remove symlink installations manually: {path}": "심볼릭 링크 설치는 수동으로 제거하세요: {path}",
|
|
96
96
|
"Unknown error": "알 수 없는 오류",
|
|
97
|
-
"Press Super to open
|
|
97
|
+
"Press Super to open window overview and layouts together. Drag a window thumbnail onto a layout cell. Layouts are hidden in the Super+A app grid. Default: on.": "Super로 창 보기와 배치 선택기를 함께 엽니다. 창 썸네일을 배치 칸으로 끌어 놓으세요. Super+A 앱 목록에서는 선택기를 숨깁니다. 기본값: 켬",
|
|
98
98
|
"Show running app icons inside empty layout regions. Select an icon to tile its window, or click elsewhere or press Esc to finish. Default: off.": "빈 배치 영역 안에 실행 중인 앱 아이콘을 표시합니다. 아이콘을 선택하면 창을 배치하고, 다른 곳을 클릭하거나 Esc를 누르면 마무리합니다. 기본값: 끔",
|
|
99
99
|
"Layout picker size": "배치 선택기 크기",
|
|
100
|
-
"Overview picker size": "
|
|
100
|
+
"Overview picker size": "창 보기 선택기 크기",
|
|
101
101
|
"Percent of the normal picker size. 100% keeps both the same size.": "일반 선택기 크기에 대한 비율입니다. 100%이면 두 화면에서 같은 크기로 표시합니다.",
|
|
102
102
|
"Percent. Sizes are limited to fit the monitor.": "퍼센트. 모니터에 맞게 최대 크기를 제한합니다.",
|
|
103
103
|
"Adapt picker size to each monitor": "모니터에 맞춰 선택기 크기 자동 조절",
|
|
@@ -115,6 +115,19 @@
|
|
|
115
115
|
"The bundled extension does not match this installer. Download Tidy again.": "확장 설치 파일과 설치 도구의 버전이 다릅니다. Tidy를 다시 다운로드하세요.",
|
|
116
116
|
"Install a prebuilt extension ZIP without writing to the package directory": "패키지 폴더에 파일을 쓰지 않고 미리 빌드한 확장 ZIP으로 설치합니다.",
|
|
117
117
|
"Top half / upper monitor": "위쪽 절반 / 위쪽 모니터",
|
|
118
|
-
"Bottom half / lower monitor": "아래쪽 절반 / 아래쪽 모니터"
|
|
118
|
+
"Bottom half / lower monitor": "아래쪽 절반 / 아래쪽 모니터",
|
|
119
|
+
"Wide center": "가운데 넓게",
|
|
120
|
+
"Left quarter": "왼쪽 ¼",
|
|
121
|
+
"Center half": "가운데 ½",
|
|
122
|
+
"Right quarter": "오른쪽 ¼",
|
|
123
|
+
"Show layouts when hovering over maximize": "최대화 버튼에 마우스를 올리면 배치 선택기 표시",
|
|
124
|
+
"Rest the pointer on a window’s maximize or restore button to choose a layout. Supports titlebars that expose these buttons to accessibility. Default: on.": "창의 최대화·복원 버튼에 마우스를 잠시 올려 배치를 고릅니다. 접근성 정보를 제공하는 제목 표시줄에서 동작합니다. 기본값: 켬",
|
|
125
|
+
"Extension transition failed: {uuid}: {error}": "확장 상태 전환 실패: {uuid}: {error}",
|
|
126
|
+
"Extension transition timed out: {uuid}": "확장 상태 전환 대기 시간 초과: {uuid}",
|
|
127
|
+
"Extension preferences are read-only: {uuid}": "확장 설정을 변경할 수 없습니다: {uuid}",
|
|
128
|
+
"Could not save extension preferences: {uuid}": "확장 설정을 저장하지 못했습니다: {uuid}",
|
|
129
|
+
"The previous extension will be restored at the next login: {uuid}": "기존 확장은 다음 로그인에 복원됩니다: {uuid}",
|
|
130
|
+
"The previous extension is no longer installed; skipping restoration: {uuid}": "기존 확장이 이미 제거되어 복원을 건너뜁니다: {uuid}",
|
|
131
|
+
"GNOME could not remove Tidy.": "GNOME이 Tidy를 제거하지 못했습니다."
|
|
119
132
|
}
|
|
120
133
|
}
|
package/metadata.json
CHANGED
package/package.json
CHANGED
package/scripts/manage.py
CHANGED
|
@@ -47,6 +47,47 @@ def set_enabled(uuid, enabled):
|
|
|
47
47
|
raise RuntimeError(_('GNOME could not find the extension: {uuid}', uuid=uuid))
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
def wait_for_extension(uuid, enabled):
|
|
51
|
+
for attempt in range(50):
|
|
52
|
+
info = extension_info(uuid)
|
|
53
|
+
state = info.get('state')
|
|
54
|
+
if (enabled and state == 1) or (not enabled and (not info or state in (2, 6))):
|
|
55
|
+
return
|
|
56
|
+
if state in (3, 4, 99):
|
|
57
|
+
raise RuntimeError(_('Extension transition failed: {uuid}: {error}',
|
|
58
|
+
uuid=uuid, error=info.get('error') or str(state)))
|
|
59
|
+
time.sleep(0.1)
|
|
60
|
+
raise RuntimeError(_('Extension transition timed out: {uuid}', uuid=uuid))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def extension_installed(uuid):
|
|
64
|
+
directories = [DATA, *(Path(path) for path in GLib.get_system_data_dirs())]
|
|
65
|
+
return any((directory / 'gnome-shell/extensions' / uuid / 'extension.js').is_file()
|
|
66
|
+
for directory in directories)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def enable_after_login(uuid):
|
|
70
|
+
# Removing a user override unregisters the UUID for this session even when
|
|
71
|
+
# a system copy remains. Persist the preference without trying to load JS.
|
|
72
|
+
settings = Gio.Settings.new('org.gnome.shell')
|
|
73
|
+
enabled = settings.get_strv('enabled-extensions')
|
|
74
|
+
disabled = settings.get_strv('disabled-extensions')
|
|
75
|
+
changes = {}
|
|
76
|
+
if uuid not in enabled:
|
|
77
|
+
changes['enabled-extensions'] = [*enabled, uuid]
|
|
78
|
+
if uuid in disabled:
|
|
79
|
+
changes['disabled-extensions'] = [item for item in disabled if item != uuid]
|
|
80
|
+
if any(not settings.is_writable(key) for key in changes):
|
|
81
|
+
raise RuntimeError(_('Extension preferences are read-only: {uuid}', uuid=uuid))
|
|
82
|
+
settings.delay()
|
|
83
|
+
for key, value in changes.items():
|
|
84
|
+
if not settings.set_strv(key, value):
|
|
85
|
+
settings.revert()
|
|
86
|
+
raise RuntimeError(_('Could not save extension preferences: {uuid}', uuid=uuid))
|
|
87
|
+
settings.apply()
|
|
88
|
+
Gio.Settings.sync()
|
|
89
|
+
|
|
90
|
+
|
|
50
91
|
def open_preferences():
|
|
51
92
|
STATE.mkdir(parents=True, exist_ok=True)
|
|
52
93
|
with (STATE / 'preferences.log').open('a') as log:
|
|
@@ -111,7 +152,14 @@ def restore_competitors():
|
|
|
111
152
|
failed = []
|
|
112
153
|
for uuid in pending:
|
|
113
154
|
try:
|
|
114
|
-
|
|
155
|
+
if extension_info(uuid):
|
|
156
|
+
set_enabled(uuid, True)
|
|
157
|
+
wait_for_extension(uuid, True)
|
|
158
|
+
elif extension_installed(uuid):
|
|
159
|
+
enable_after_login(uuid)
|
|
160
|
+
print(_('The previous extension will be restored at the next login: {uuid}', uuid=uuid))
|
|
161
|
+
else:
|
|
162
|
+
print(_('The previous extension is no longer installed; skipping restoration: {uuid}', uuid=uuid))
|
|
115
163
|
except RuntimeError as error:
|
|
116
164
|
failed.append(uuid)
|
|
117
165
|
print(error, file=sys.stderr)
|
|
@@ -173,12 +221,7 @@ def activate():
|
|
|
173
221
|
try:
|
|
174
222
|
for uuid in competitors:
|
|
175
223
|
set_enabled(uuid, False)
|
|
176
|
-
|
|
177
|
-
if all(extension_info(uuid).get('state') != 1 for uuid in competitors):
|
|
178
|
-
break
|
|
179
|
-
time.sleep(0.1)
|
|
180
|
-
else:
|
|
181
|
-
raise RuntimeError(_('The previous tiling extension did not stop.'))
|
|
224
|
+
wait_for_extension(uuid, False)
|
|
182
225
|
set_enabled(UUID, True)
|
|
183
226
|
for attempt in range(50):
|
|
184
227
|
info = extension_info()
|
|
@@ -210,8 +253,10 @@ def apply_update():
|
|
|
210
253
|
def uninstall():
|
|
211
254
|
if DEST.is_symlink():
|
|
212
255
|
raise RuntimeError(_('Remove symlink installations manually: {path}', path=DEST))
|
|
213
|
-
|
|
256
|
+
registered = extension_info()
|
|
257
|
+
if registered:
|
|
214
258
|
set_enabled(UUID, False)
|
|
259
|
+
wait_for_extension(UUID, False)
|
|
215
260
|
elif DEST.exists():
|
|
216
261
|
print(_('The extension is not registered in this session. Checking settings recovery.'))
|
|
217
262
|
# Also recover settings if a Shell crash prevented disable() from running.
|
|
@@ -221,6 +266,9 @@ def uninstall():
|
|
|
221
266
|
subprocess.run(['gjs', '-m', str(DEST / 'scripts/recover.js')], env=env, check=True)
|
|
222
267
|
restore_competitors()
|
|
223
268
|
finish_update()
|
|
269
|
+
if registered:
|
|
270
|
+
if not shell_call('UninstallExtension', '(s)', (UUID,))[0]:
|
|
271
|
+
raise RuntimeError(_('GNOME could not remove Tidy.'))
|
|
224
272
|
if DEST.exists():
|
|
225
273
|
shutil.rmtree(DEST)
|
|
226
274
|
(DATA / 'applications/winubun.desktop').unlink(missing_ok=True)
|