Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a fifth screen #1627

Merged
merged 2 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Amethyst/Events/HotKeyManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class HotKeyManager<Application: ApplicationType>: NSObject {
}
}

(1...4).forEach { screenNumber in
(1...5).forEach { screenNumber in
let focusCommandKey = "\(CommandKey.focusScreenPrefix.rawValue)-\(screenNumber)"
let throwCommandKey = "\(CommandKey.throwScreenPrefix.rawValue)-\(screenNumber)"

Expand Down Expand Up @@ -392,7 +392,7 @@ class HotKeyManager<Application: ApplicationType>: NSObject {
hotKeyNameToDefaultsKey.append([name, "\(CommandKey.throwSpacePrefix.rawValue)-\(spaceNumber)"])
}

(1...4).forEach { screenNumber in
(1...5).forEach { screenNumber in
let focusCommandName = "Focus screen \(screenNumber)"
let throwCommandName = "Throw focused window to screen \(screenNumber)"
let focusCommandKey = "\(CommandKey.focusScreenPrefix.rawValue)-\(screenNumber)"
Expand Down
8 changes: 8 additions & 0 deletions Amethyst/default.amethyst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
"mod": "mod1",
"key": "q"
},
"focus-screen-5": {
"mod": "mod1",
"key": "g"
Copy link
Contributor Author

@x-ji x-ji Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just assigned a random new key that I see has not been assigned to any other action yet.

},
"throw-screen-1": {
"mod": "mod2",
"key": "w"
Expand All @@ -78,6 +82,10 @@
"mod": "mod2",
"key": "q"
},
"throw-screen-5": {
"mod": "mod2",
"key": "g"
},
"shrink-main": {
"mod": "mod1",
"key": "h"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ And defines the following commands, mostly a mapping to xmonad key combinations.
| `mod2 + r` | Throw focused window to screen 3 |
| `mod1 + q` | Focus Screen 4 |
| `mod2 + q` | Throw focused window to screen 4 |
| `mod1 + g` | Focus Screen 5 |
| `mod2 + g` | Throw focused window to screen 5 |
| `mod1 + t` | Toggle float for focused window |
| `mod1 + i` | Display current layout |
| `mod2 + t` | Toggle global tiling |
Expand Down