Skip to content

KEYBOARD_SHORTCUTS #LX-CFG #DCONF

the dconf tool is like a key-value register management tool
standard linux ?

you can create aliases that enable/disable hotkeys

alias disableKeyboardShortcuts='
    dconf write /org/mate/marco/global-keybindings/switch-to-workspace-right "\"\""
    dconf write /org/mate/marco/global-keybindings/switch-to-workspace-left "\"\""
    dconf write /org/mate/marco/global-keybindings/switch-to-workspace-down "\"\""
    dconf write /org/mate/marco/global-keybindings/switch-to-workspace-up "\"\""

    dconf write /org/mate/marco/window-keybindings/move-to-workspace-right "\"\""
    dconf write /org/mate/marco/window-keybindings/move-to-workspace-left "\"\""
    dconf write /org/mate/marco/window-keybindings/move-to-workspace-down "\"\""
    dconf write /org/mate/marco/window-keybindings/move-to-workspace-up "\"\""
'

alias enableKeyboardShortcuts='
    dconf write /org/mate/marco/global-keybindings/switch-to-workspace-right "\"<Primary><Alt>Right\""
    dconf write /org/mate/marco/global-keybindings/switch-to-workspace-left "\"<Primary><Alt>Left\""
    dconf write /org/mate/marco/global-keybindings/switch-to-workspace-down "\"<Primary><Alt>Down\""
    dconf write /org/mate/marco/global-keybindings/switch-to-workspace-up "\"<Primary><Alt>Up\""

    dconf write /org/mate/marco/window-keybindings/move-to-workspace-right "\"<Primary><Shift><Alt>Right\""
    dconf write /org/mate/marco/window-keybindings/move-to-workspace-left "\"<Primary><Shift><Alt>Left\""
    dconf write /org/mate/marco/window-keybindings/move-to-workspace-down "\"<Primary><Shift><Alt>Down\""
    dconf write /org/mate/marco/window-keybindings/move-to-workspace-up "\"<Primary><Shift><Alt>Up\""