Skip to content

Commit

Permalink
Merge branch 'develop' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaala committed May 10, 2024
2 parents 4deb4f7 + b93f0a5 commit 3f30622
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 3 deletions.
12 changes: 12 additions & 0 deletions keybindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,18 @@ export function setupActions(settings) {
registerNavigatorAction("switch-down-or-else-workspace", Tiling.switchDownOrElseWorkspace);

registerMinimapAction("switch-first", Tiling.activateFirstWindow);

registerMinimapAction("switch-second", (mw, space) => Tiling.activateNthWindow(1, space));
registerMinimapAction("switch-third", (mw, space) => Tiling.activateNthWindow(2, space));
registerMinimapAction("switch-fourth", (mw, space) => Tiling.activateNthWindow(3, space));
registerMinimapAction("switch-fifth", (mw, space) => Tiling.activateNthWindow(4, space));
registerMinimapAction("switch-sixth", (mw, space) => Tiling.activateNthWindow(5, space));
registerMinimapAction("switch-seventh", (mw, space) => Tiling.activateNthWindow(6, space));
registerMinimapAction("switch-eighth", (mw, space) => Tiling.activateNthWindow(7, space));
registerMinimapAction("switch-ninth", (mw, space) => Tiling.activateNthWindow(8, space));
registerMinimapAction("switch-tenth", (mw, space) => Tiling.activateNthWindow(9, space));
registerMinimapAction("switch-eleventh", (mw, space) => Tiling.activateNthWindow(10, space));

registerMinimapAction("switch-last", Tiling.activateLastWindow);

registerMinimapAction("switch-global-right", (mw, space) => space.switchGlobalRight());
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/paperwm/PaperWM",
"settings-schema": "org.gnome.shell.extensions.paperwm",
"shell-version": [ "45", "46" ],
"version-name": "46.8.1",
"version-name": "46.9.0",
"donations": {
"buymeacoffee": "jaytaala",
"patreon": "valpackett"
Expand Down
10 changes: 10 additions & 0 deletions prefsKeybinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ const actions = {
'switch-up-or-else-workspace',
'switch-down-or-else-workspace',
'switch-first',
'switch-second',
'switch-third',
'switch-fourth',
'switch-fifth',
'switch-sixth',
'switch-seventh',
'switch-eighth',
'switch-ninth',
'switch-tenth',
'switch-eleventh',
'switch-last',
'live-alt-tab',
'live-alt-tab-backward',
Expand Down
Binary file modified schemas/gschemas.compiled
Binary file not shown.
42 changes: 42 additions & 0 deletions schemas/org.gnome.shell.extensions.paperwm.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,48 @@
<default><![CDATA[['<Super>Home']]]></default>
<summary>Switch to the first window</summary>
</key>

<key type="as" name="switch-second">
<default><![CDATA[[]]]></default>
<summary>Switch to the second window</summary>
</key>
<key type="as" name="switch-third">
<default><![CDATA[[]]]></default>
<summary>Switch to the third window</summary>
</key>
<key type="as" name="switch-fourth">
<default><![CDATA[[]]]></default>
<summary>Switch to the fourth window</summary>
</key>
<key type="as" name="switch-fifth">
<default><![CDATA[[]]]></default>
<summary>Switch to the fifth window</summary>
</key>
<key type="as" name="switch-sixth">
<default><![CDATA[[]]]></default>
<summary>Switch to the sixth window</summary>
</key>
<key type="as" name="switch-seventh">
<default><![CDATA[[]]]></default>
<summary>Switch to the seventh window</summary>
</key>
<key type="as" name="switch-eighth">
<default><![CDATA[[]]]></default>
<summary>Switch to the eighth window</summary>
</key>
<key type="as" name="switch-ninth">
<default><![CDATA[[]]]></default>
<summary>Switch to the ninth window</summary>
</key>
<key type="as" name="switch-tenth">
<default><![CDATA[[]]]></default>
<summary>Switch to the tenth window</summary>
</key>
<key type="as" name="switch-eleventh">
<default><![CDATA[[]]]></default>
<summary>Switch to the eleventh window</summary>
</key>

<key type="as" name="switch-last">
<default><![CDATA[['<Super>End']]]></default>
<summary>Switch to the last window</summary>
Expand Down
4 changes: 2 additions & 2 deletions tiling.js
Original file line number Diff line number Diff line change
Expand Up @@ -4635,12 +4635,12 @@ export function activateNthWindow(n, space) {
ensureViewport(nth, space);
}

export function activateFirstWindow(mw, space) {
export function activateFirstWindow(_mw, space) {
space = space || spaces.activeSpace;
activateNthWindow(0, space);
}

export function activateLastWindow(mw, space) {
export function activateLastWindow(_mw, space) {
space = space || spaces.activeSpace;
activateNthWindow(space.length - 1, space);
}
Expand Down

0 comments on commit 3f30622

Please sign in to comment.