Skip to content

Commit

Permalink
Convert general elementary keymap to Pantheon
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBearAK committed Nov 30, 2024
1 parent 03b21c9 commit a3ee05e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions default-toshy-config/toshy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4266,15 +4266,6 @@ def getDK():

# Overrides to General Terminals shortcuts for specific distros (or are they really just desktop environments?)

if DISTRO_ID == 'elementary':
keymap("GenTerms overrides: elementary OS", {
C("LC-Right"): [bind,C("Super-Right")], # SL - Change workspace (elementary)
C("LC-Left"): [bind,C("Super-Left")], # SL - Change workspace (elementary)
}, when = lambda ctx:
cnfg.screen_has_focus and
matchProps(clas=termStr)(ctx)
)

if DISTRO_ID in ['fedora', 'almalinux'] and DESKTOP_ENV == 'gnome':
keymap("GenTerms overrides: Fedora GNOME", {
C("RC-H"): C("Super-h"), # Hide Window/Minimize app (gnome/fedora)
Expand Down Expand Up @@ -4352,6 +4343,15 @@ def getDK():
matchProps(clas=termStr)(ctx)
)

if DESKTOP_ENV == 'pantheon':
keymap("GenTerms overrides: elementary OS", {
C("LC-Right"): [bind,C("Super-Right")], # SL - Change workspace (elementary)
C("LC-Left"): [bind,C("Super-Left")], # SL - Change workspace (elementary)
}, when = lambda ctx:
cnfg.screen_has_focus and
matchProps(clas=termStr)(ctx)
)

if DESKTOP_ENV == 'sway':
keymap("GenTerms overrides: swaywm", {
C("RC-Q"): C("Shift-C-Q"), # Override sway GenGUI Cmd+Q
Expand Down

0 comments on commit a3ee05e

Please sign in to comment.