Skip to content

Instantly share code, notes, and snippets.

@eddy-geek
Last active September 19, 2018 13:43
Show Gist options
  • Save eddy-geek/c8ecb982974db7e0b9d7 to your computer and use it in GitHub Desktop.
Save eddy-geek/c8ecb982974db7e0b9d7 to your computer and use it in GitHub Desktop.
gsettings set org.gnome.shell.keybindings toggle-message-tray "['<Shift><Super>m']" # Free Win+V, Win+M
gsettings set org.gnome.shell.keybindings toggle-application-view "@as []" # Free Win+A
gsettings set org.gnome.shell.keybindings toggle-overview "@as []" # Free Win+S
gsettings set org.gnome.shell.keybindings focus-active-notification "@as []" # Win+N
# remvoed -- gsettings set org.gnome.shell.keybindings panel-main-menu "['<Alt>F1']" # Free Win+S
kpath=/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom
key="org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$kpath"
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "[\
'${kpath}0/', '${kpath}1/', '${kpath}2/', '${kpath}3/', '${kpath}4/',
'${kpath}5/', '${kpath}6/', '${kpath}7/', '${kpath}8/', '${kpath}9/' ]"
for i in $(seq 0 9); do
gsettings set ${key}$i/ name "Win+$i"
#gsettings set ${key}$i/ command "xdotool key super+$i"
#-> does not work on layout with numbers as shift+key
#gsettings set ${key}$i/ command "xdotool key super+KP_$i"
#-> does not work (sends shift too) - https://github.com/jordansissel/xdotool/issues/26
done
gsettings set ${key}1/ command "xdotool key super+KP_End"
gsettings set ${key}2/ command "xdotool key super+KP_Down"
gsettings set ${key}3/ command "xdotool key super+KP_Next"
gsettings set ${key}4/ command "xdotool key super+KP_Left"
gsettings set ${key}5/ command "xdotool key super+KP_Begin"
gsettings set ${key}6/ command "xdotool key super+KP_Right"
gsettings set ${key}7/ command "xdotool key super+KP_Home"
gsettings set ${key}8/ command "xdotool key super+KP_Up"
gsettings set ${key}9/ command "xdotool key super+KP_Prior"
gsettings set ${key}0/ command "xdotool key super+KP_Insert"
gsettings set ${key}1/ binding "<Super>z"
gsettings set ${key}2/ binding "<Super>e"
gsettings set ${key}3/ binding "<Super>f"
gsettings set ${key}4/ binding "<Super>g"
gsettings set ${key}5/ binding "<Super>y"
gsettings set ${key}6/ binding "<Super>n"
gsettings set ${key}7/ binding "<Super>slash"
gsettings set ${key}8/ binding "<Super>m"
gsettings set ${key}9/ binding "<Super>j"
gsettings set ${key}0/ binding "<Super>k"
gsettings set org.gnome.shell favorite-apps "@as ['org.kde.konsole.desktop', 'org.gnome.Nautilus.desktop', 'firefox.desktop', 'google-chrome.desktop', 'pycharm-professional_pycharm-professional.desktop', 'org.kde.kate.desktop', 'vlc.desktop', 'org.remmina.Remmina.desktop', 'code.desktop', 'winaproach.desktop']"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment