- Updated files for fedora and gnome compatibility

This commit is contained in:
Ben Reaves
2020-03-02 03:20:31 -06:00
parent c8ab5eb4ba
commit 4078094e33
3 changed files with 20 additions and 15 deletions

View File

@@ -162,7 +162,8 @@ default partial xkb_symbols "mac_levelssym" {
Left, Left,
Left, Left,
NoSymbol, NoSymbol,
NoSymbol NoSymbol,
Left
], ],
actions[Group1]= [ actions[Group1]= [
NoAction(), NoAction(),
@@ -173,6 +174,8 @@ default partial xkb_symbols "mac_levelssym" {
RedirectKey(key=<HOME>,clearmods=Control), RedirectKey(key=<HOME>,clearmods=Control),
RedirectKey(key=<HOME>,clearmods=Control), RedirectKey(key=<HOME>,clearmods=Control),
// Change workspace // Change workspace
NoAction(),
// Super - Change workspace
NoAction() NoAction()
] ]
}; };

View File

@@ -147,16 +147,14 @@ partial xkb_symbols "mac_global" {
symbols[Group1]= [ symbols[Group1]= [
Left, Left,
Left, Left,
NoSymbol // Default NoSymbol,
// Left // Elementary Left
// Left // Elementary
], ],
actions[Group1]= [ actions[Group1]= [
NoAction(), NoAction(),
NoAction(), NoAction(),
RedirectKey(key=<HOME>,clearmods=Shift+Control) // Default RedirectKey(key=<HOME>,clearmods=Shift+Control),
// Left // Elementary RedirectKey(key=<LEFT>,mods=Super,clearmods=Control)
// RedirectKey(key=<LEFT>,mods=Super,clearmods=Control) // Elementary
] ]
}; };
// END // END
@@ -165,16 +163,14 @@ partial xkb_symbols "mac_global" {
symbols[Group1]= [ symbols[Group1]= [
Right, Right,
Right, Right,
NoSymbol // Default NoSymbol,
// Right, // Elementary Right
// Right // Elementary
], ],
actions[Group1]= [ actions[Group1]= [
NoAction(), NoAction(),
NoAction(), NoAction(),
RedirectKey(key=<END>,clearmods=Shift+Control) // Default RedirectKey(key=<END>,clearmods=Shift+Control),
// NoAction(), // Elementary RedirectKey(key=<RGHT>,mods=Super,clearmods=Control)
// RedirectKey(key=<RGHT>,mods=Super,clearmods=Control) // Elementary
] ]
}; };
// Full Print Screen // Full Print Screen

View File

@@ -113,10 +113,16 @@ def setShortcuts():
print(' xfconf-query --channel xfce4-keyboard-shortcuts --property "/xfwm4/custom/<Primary><Alt>Right" --create --type string --set "move_window_next_workspace_key"\n') print(' xfconf-query --channel xfce4-keyboard-shortcuts --property "/xfwm4/custom/<Primary><Alt>Right" --create --type string --set "move_window_next_workspace_key"\n')
elif distro == "fedora" and dename == "gnome": elif distro == "fedora" and dename == "gnome":
cmdline("gsettings set org.gnome.desktop.wm.keybindings show-desktop \"['<Super>d']\"") cmdline("gsettings set org.gnome.desktop.wm.keybindings show-desktop \"['<Super>d']\"")
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left \"['<Primary><Alt>Left','<Super>Left']\"")
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right \"['<Primary><Alt>Right','<Super>Right']\"")
cmdline("gsettings set org.gnome.desktop.wm.keybindings minimize \"['<Super>h','<Alt>F9']\"") cmdline("gsettings set org.gnome.desktop.wm.keybindings minimize \"['<Super>h','<Alt>F9']\"")
cmdline("gsettings set org.gnome.desktop.wm.keybindings panel-main-menu \"['<Primary><Shift>Space','<Primary>Space']\"") cmdline("gsettings set org.gnome.desktop.wm.keybindings panel-main-menu \"['<Primary><Shift>Space','<Primary>Space']\"")
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up \"['<Super>Page_Up','<Super>Left']\"")
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down \"['<Super>Page_Down','<Super>Right']\"")
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left ['']")
cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right ['']")
cmdline("gsettings set org.gnome.mutter.keybindings toggle-tiled-right \"['<Super><Alt>Right']\"")
cmdline("gsettings set org.gnome.mutter.keybindings toggle-tiled-left \"['<Super><Alt>Left']\"")
# org.gnome.mutter.keybindings toggle-tiled-right ['<Super>Right']
# org.gnome.mutter.keybindings toggle-tiled-left ['<Super>Left']
elif distro == "manjaro linux" and dename == "kde": elif distro == "manjaro linux" and dename == "kde":
cmdline('kwriteconfig5 --file "$HOME/.config/kglobalshortcutsrc" --group "kwin" --key "Maximize Window" "Alt+F10,Meta+PgUp,Maximize Window"') cmdline('kwriteconfig5 --file "$HOME/.config/kglobalshortcutsrc" --group "kwin" --key "Maximize Window" "Alt+F10,Meta+PgUp,Maximize Window"')
cmdline('kwriteconfig5 --file "$HOME/.config/kglobalshortcutsrc" --group "kwin" --key "Minimize Window" "Meta+h,Meta+PgDown,Minimize Window"') cmdline('kwriteconfig5 --file "$HOME/.config/kglobalshortcutsrc" --group "kwin" --key "Minimize Window" "Meta+h,Meta+PgDown,Minimize Window"')