Skip to content

Instantly share code, notes, and snippets.

@skfarhat
Last active October 31, 2017 16:37
Show Gist options
  • Save skfarhat/deb9e75ef57a6f9904495cd565d1f289 to your computer and use it in GitHub Desktop.
Save skfarhat/deb9e75ef57a6f9904495cd565d1f289 to your computer and use it in GitHub Desktop.

Packages to install:

  • gnome-tweak-tool
  • dconf-editor
  • gconf-editor

Change Alt-tab to default: gnome-tweak-tool --> AlternateTab

Useful for editting settings: gconf-editor, dconf-editor

We can use gsettings too, which is convenient :

gsettings set org.gnome.desktop.interface enable-animations false

Change workspace shortcuts

Run dconf-editor

  • Change /org/gnome/desktop/wm/keybindings/switch-to-workspace-up to ['F1', 'Up']

  • Change /org/gnome/desktop/wm/keybindings/switch-to-workspace-down to ['F2', 'Down']

  • Change /org/gnome/desktop/wm/keybindings/move-to-workspace-up to ['F1', 'Up']

  • Change /org/gnome/desktop/wm/keybindings/move-to-workspace-down to ['F2', 'Down']

Reduce titlebar size in Gnome

Add this in ~/.config/gtk-3.0/gtk.css

/* shrink headerbars (don't forget semicolons after each property) */
headerbar {
    min-height: 0px;
    padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
    padding-right: 2px;
}

headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
    margin-top: 0px; /* same as headerbar side padding for nicer proportions */
    margin-bottom: 0px;
}

/* shrink ssd titlebars */
.default-decoration {
    min-height: 0; /* let the entry and button drive the titlebar size */
    padding: 0px;
}

.default-decoration .titlebutton {
    min-height: 0px; /* tweak these two props to reduce button size */
    min-width: 0px;
}

window.ssd headerbar.titlebar {
    padding-top: 3px;
    padding-bottom: 3px;
    min-height: 0;
}

window.ssd headerbar.titlebar button.titlebutton {
    padding-top: 3px;
    padding-bottom:3px;
    min-height: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment