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

Fix COSMIC maximize shortcut, detect cosmic-comp #421

Merged
merged 2 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 9 additions & 0 deletions default-toshy-config/toshy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4302,6 +4302,14 @@ def getDK():
matchProps(clas=termStr)(ctx)
)

if DESKTOP_ENV == 'cosmic':
keymap("GenTerms overrides: COSMIC", {
C("LC-RC-F"): C("Super-M"), # Maximize window toggle (overrides General terminals)
}, when = lambda ctx:
cnfg.screen_has_focus and
matchProps(clas=termStr)(ctx)
)

if DESKTOP_ENV == 'gnome':
keymap("GenTerms overrides: GNOME", {
### Keyboard input source (language/layout) switching in GNOME
Expand Down Expand Up @@ -4588,6 +4596,7 @@ def getDK():
# so we can't "fix" this during Toshy install to not use the Meta/Super key.
C("RC-Space"): [Key.LEFT_META,iEF2NT()], # Launcher or Workspaces or Applications (user choice)
C("RC-Q"): C("Super-Q"), # Close window/Quit (overrides Alt+F4 from General GUI)
C("Super-RC-F"): C("Super-M"), # Maximize window toggle (overrides General GUI)
}, when = lambda ctx:
cnfg.screen_has_focus and
matchProps(not_clas=remoteStr)(ctx)
Expand Down
1 change: 1 addition & 0 deletions lib/env_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ def get_window_manager(self):
],

'awesome': 'awesome',
'cosmic': 'cosmic-comp',
'dwm': 'dwm',
'i3': 'i3',
'i3-gaps': 'i3',
Expand Down