Skip to content

Instantly share code, notes, and snippets.

@scottjbarr
Created February 11, 2019 06:16
Show Gist options
  • Save scottjbarr/15d776d04eca5038c045262b344c257a to your computer and use it in GitHub Desktop.
Save scottjbarr/15d776d04eca5038c045262b344c257a to your computer and use it in GitHub Desktop.
Shell script to set up Gnome config.
#!/bin/bash
#
# Collection of custom Gnome settings.
#
# Author : Scott Barr
# Date : 9 Jul 2018
#
# alt-tab only cycles current workspace
gsettings set org.gnome.shell.app-switcher current-workspace-only true
# disable caps-lock
dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:none']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-1 "['<Primary>1']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-2 "['<Primary>2']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-2 "['<Primary>3']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-3 "['<Primary>4']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-5 "['<Primary>5']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-6 "['<Primary>6']"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment