Skip to content

Commit

Permalink
Merge pull request #421 from RedBearAK/dev_beta
Browse files Browse the repository at this point in the history
Fix COSMIC maximize shortcut, detect cosmic-comp
  • Loading branch information
RedBearAK authored Oct 12, 2024
2 parents 8abccb0 + 36c43b6 commit f126a8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit f126a8f

Please sign in to comment.