Skip to content

Commit 7c72fa5

Browse files
committed
Updated ordering and simplified description (this type of behaviour is
generally referred to as "wrap around" in PaperWM).
1 parent e785ef1 commit 7c72fa5

3 files changed

Lines changed: 35 additions & 35 deletions

File tree

keybindings.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,22 +162,23 @@ export function setupActions(settings) {
162162
registerNavigatorAction('take-window', Tiling.takeWindow);
163163

164164
registerMinimapAction("switch-next", (mw, space) => space.switchLinear(1, false));
165-
registerMinimapAction("switch-next-loop", (mw, space) => space.switchLinear(1, true));
166165
registerMinimapAction("switch-previous", (mw, space) => space.switchLinear(-1, false));
166+
registerMinimapAction("switch-next-loop", (mw, space) => space.switchLinear(1, true));
167167
registerMinimapAction("switch-previous-loop", (mw, space) => space.switchLinear(-1, true));
168168

169-
registerMinimapAction("switch-first", Tiling.activateFirstWindow);
170-
registerMinimapAction("switch-last", Tiling.activateLastWindow);
171-
172169
registerMinimapAction("switch-right", (mw, space) => space.switchRight(false));
173-
registerMinimapAction("switch-right-loop", (mw, space) => space.switchRight(true));
174170
registerMinimapAction("switch-left", (mw, space) => space.switchLeft(false));
175-
registerMinimapAction("switch-left-loop", (mw, space) => space.switchLeft(true));
176171
registerMinimapAction("switch-up", (mw, space) => space.switchUp(false));
177-
registerMinimapAction("switch-up-loop", (mw, space) => space.switchUp(true));
178172
registerMinimapAction("switch-down", (mw, space) => space.switchDown(false));
173+
174+
registerMinimapAction("switch-right-loop", (mw, space) => space.switchRight(true));
175+
registerMinimapAction("switch-left-loop", (mw, space) => space.switchLeft(true));
176+
registerMinimapAction("switch-up-loop", (mw, space) => space.switchUp(true));
179177
registerMinimapAction("switch-down-loop", (mw, space) => space.switchDown(true));
180178

179+
registerMinimapAction("switch-first", Tiling.activateFirstWindow);
180+
registerMinimapAction("switch-last", Tiling.activateLastWindow);
181+
181182
registerMinimapAction("switch-global-right", (mw, space) => space.switchGlobalRight());
182183
registerMinimapAction("switch-global-left", (mw, space) => space.switchGlobalLeft());
183184
registerMinimapAction("switch-global-up", (mw, space) => space.switchGlobalUp());

prefsKeybinding.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ const actions = {
2222
'new-window',
2323
'close-window',
2424
'switch-next',
25-
'switch-next-loop',
2625
'switch-previous',
27-
'switch-previous-loop',
2826
'switch-left',
29-
'switch-left-loop',
3027
'switch-right',
31-
'switch-right-loop',
3228
'switch-up',
33-
'switch-up-loop',
3429
'switch-down',
30+
'switch-next-loop',
31+
'switch-previous-loop',
32+
'switch-left-loop',
33+
'switch-right-loop',
34+
'switch-up-loop',
3535
'switch-down-loop',
3636
'switch-global-left',
3737
'switch-global-right',

schemas/org.gnome.shell.extensions.paperwm.gschema.xml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -154,51 +154,50 @@
154154
<default><![CDATA[['<Super>period']]]></default>
155155
<summary>Switch to the next window</summary>
156156
</key>
157-
<key type="as" name="switch-next-loop">
158-
<default><![CDATA[['']]]></default>
159-
<summary>Switch to the next window and loop around to the first window</summary>
160-
</key>
161157
<key type="as" name="switch-previous">
162158
<default><![CDATA[['<Super>comma']]]></default>
163159
<summary>Switch to the previous window</summary>
164160
</key>
165-
<key type="as" name="switch-previous-loop">
166-
<default><![CDATA[['']]]></default>
167-
<summary>Switch to the previous window and loop around to the last window</summary>
168-
</key>
169-
170161
<key type="as" name="switch-right">
171162
<default><![CDATA[['<Super>Right']]]></default>
172163
<summary>Switch to the right window</summary>
173164
</key>
174-
<key type="as" name="switch-right-loop">
175-
<default><![CDATA[['']]]></default>
176-
<summary>Switch to the right window and loop around to the left-most window</summary>
177-
</key>
178165
<key type="as" name="switch-left">
179166
<default><![CDATA[['<Super>Left']]]></default>
180167
<summary>Switch to the left window</summary>
181168
</key>
182-
<key type="as" name="switch-left-loop">
183-
<default><![CDATA[['']]]></default>
184-
<summary>Switch to the left window and loop around to the right-most window</summary>
185-
</key>
186-
187169
<key type="as" name="switch-up">
188170
<default><![CDATA[['<Super>Up']]]></default>
189171
<summary>Switch to the window above</summary>
190172
</key>
191-
<key type="as" name="switch-up-loop">
192-
<default><![CDATA[['']]]></default>
193-
<summary>Switch to the window above and loop around to the bottom-most window</summary>
194-
</key>
195173
<key type="as" name="switch-down">
196174
<default><![CDATA[['<Super>Down']]]></default>
197175
<summary>Switch to the window below</summary>
198176
</key>
177+
178+
<key type="as" name="switch-next-loop">
179+
<default><![CDATA[['']]]></default>
180+
<summary>Switch to the next window (with wrap-around)</summary>
181+
</key>
182+
<key type="as" name="switch-previous-loop">
183+
<default><![CDATA[['']]]></default>
184+
<summary>Switch to the previous window (with wrap-around)</summary>
185+
</key>
186+
<key type="as" name="switch-right-loop">
187+
<default><![CDATA[['']]]></default>
188+
<summary>Switch to the right window (with wrap-around)</summary>
189+
</key>
190+
<key type="as" name="switch-left-loop">
191+
<default><![CDATA[['']]]></default>
192+
<summary>Switch to the left window (with wrap-around)</summary>
193+
</key>
194+
<key type="as" name="switch-up-loop">
195+
<default><![CDATA[['']]]></default>
196+
<summary>Switch to the window above (with wrap-around)</summary>
197+
</key>
199198
<key type="as" name="switch-down-loop">
200199
<default><![CDATA[['']]]></default>
201-
<summary>Switch to the window below and loop back to the top-most window</summary>
200+
<summary>Switch to the window below (with wrap-around)</summary>
202201
</key>
203202

204203
<key type="as" name="switch-global-right">

0 commit comments

Comments
 (0)