diff --git a/setup.py b/setup.py index 978a3b9..87835ae 100755 --- a/setup.py +++ b/setup.py @@ -110,7 +110,7 @@ def setShortcuts(): addhotkeys = yn_choice("\nDo you want to apply system level shortcuts?") if(addhotkeys): distro = distro.lower() - if dename == "gnome": + if dename == "gnome" or dename == "mate": cmdline('dconf dump /org/gnome/desktop/wm/keybindings/ > keybindings_`date +"%Y.%m.%d-%s"`.conf') cmdline('dconf dump /org/gnome/mutter/keybindings/ > mutter_`date +"%Y.%m.%d-%s"`.conf') if(kintotype == 1): @@ -121,9 +121,10 @@ def setShortcuts(): cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward \"['F14','F14','Tab']\"") cmdline("gsettings set org.gnome.desktop.wm.keybindings minimize \"['h','F9']\"") cmdline("gsettings set org.gnome.desktop.wm.keybindings panel-main-menu \"['Space','Space']\"") - cmdline("gsettings set org.gnome.mutter overlay-key ''") cmdline("gsettings set org.gnome.shell.keybindings toggle-application-view \"['LaunchB']\"") - if distro == "ubuntu" and dename == "gnome": + if dename != "mate": + cmdline("gsettings set org.gnome.mutter overlay-key ''") + if (distro == "ubuntu" and dename == "gnome") or (distro == "linux" and dename == "mate") or (distro == "ubuntu" and dename == "mate"): cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up \"['Up','Left']\"") cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down \"['Down','Right']\"") cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left ['']") diff --git a/xkeysnail-config/kinto.py b/xkeysnail-config/kinto.py index 3951e1c..e7885a5 100644 --- a/xkeysnail-config/kinto.py +++ b/xkeysnail-config/kinto.py @@ -3,6 +3,9 @@ import re from xkeysnail.transform import * +# Use the following for testing terminal keymaps +# terminals = [ "", ... ] +# xbindkeys -mk terminals = ["gnome-terminal","konsole","io.elementary.terminal","terminator","sakura","guake","tilda","xterm","eterm","kitty","alacritty","mate-terminal","tilix","xfce4-terminal"] terminals = [term.casefold() for term in terminals] termStr = "|".join(str(x) for x in terminals) @@ -84,8 +87,10 @@ define_keymap(None,{ # Wordwise K("RC-Left"): K("Home"), # Beginning of Line + K("Super-a"): K("Home"), # Beginning of Line K("RC-Shift-Left"): K("Shift-Home"), # Select all to Beginning of Line K("RC-Right"): K("End"), # End of Line + K("Super-e"): K("End"), # End of Line K("RC-Shift-Right"): K("Shift-End"), # Select all to End of Line # K("RC-Left"): K("C-LEFT_BRACE"), # Firefox-nw - Back # K("RC-Right"): K("C-RIGHT_BRACE"), # Firefox-nw - Forward diff --git a/xkeysnail_service.sh b/xkeysnail_service.sh index c1d7340..228fb6b 100755 --- a/xkeysnail_service.sh +++ b/xkeysnail_service.sh @@ -173,12 +173,12 @@ if [[ $1 == "1" || $1 == "2" || $1 == "3" || $1 == "winmac" || $1 == "mac" || $1 sudo ./system-config/unipkg.sh python3-pip fi if ! [ -x "$(command -v python3-config)" ]; then - if [ "$distro" == "ubuntu" ] || [ "$distro" == "debian" ]; then + if [ "$distro" == "ubuntu" ] || [ "$distro" == "debian" ] || [ "$distro" == '"linux mint"' ]; then pydev="python3-dev" elif [ "$distro" == "fedora" ]; then pydev="python3-devel" fi - if [ "$distro" == "gnome" ] || [ "$distro" == "fedora" ] || [ "$distro" == "debian" ]; then + if [ "$distro" == "gnome" ] || [ "$distro" == "fedora" ] || [ "$distro" == "debian" ] || [ "$distro" == '"linux mint"' ]; then echo "Will need to install $pydev..." sudo ./system-config/unipkg.sh "$pydev" fi @@ -188,6 +188,9 @@ if [[ $1 == "1" || $1 == "2" || $1 == "3" || $1 == "winmac" || $1 == "mac" || $1 sudo ./system-config/unipkg.sh "xorg-xhost gcc" fi fi + if [ "$distro" == '"linux mint"' ]; then + pip3 install setuptools + fi # echo "Transferring files..." mkdir -p ~/.config/kinto