Skip to content

Instantly share code, notes, and snippets.

@migerh
Last active December 17, 2015 04:08
Show Gist options
  • Save migerh/5548034 to your computer and use it in GitHub Desktop.
Save migerh/5548034 to your computer and use it in GitHub Desktop.
A collection of Debian/GNOME3 extension and tweaks I find very useful

Change the height of the windows title bar

  • Open /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
  • Search for title_vertical_pad
  • Change its values; There are multiple title_vertical_pad settings, for e.g. maximized windows, modal windows and "small" windows.

Use titleheight2zero.sh to set all title_vertical_pad values to zero.

Software

Config

  • sudo dpkg --add-architecture i386

Install Steam

Source: http://crunchbang.org/forums/viewtopic.php?id=24711

So after a while of searching for the simplest way to do this I think I have found it.

  • If on a 64bit machine enable multiarch

    sudo dpkg --add-architecture i386 sudo apt-get update

  • Make an empty folder, download this script to that folder, and make it executable.

    mkdir ~/steaminstall/ cd ~/steaminstall/ wget https://gist.github.com/grindars/4231563/raw/80d36cc7739fb1f101d7e043c5e92101118d98b2/steam_bootstrap.sh chmod +x steam_bootstrap.sh

  • Run the script as normal user (not as root because it installs everything to your home folder and makes an alias in .bashrc that launches it correctly.)

    ./steam_bootstrap.sh

  • Let the script do it's thing

  • Now before you run steam you need to install the i386 package that provides libgl.so.1 and matches your graphics card. If on a 64bit system:

    sudo apt-get install libgl1-nvidia-glx:i386

(This is just for nvida. If you find a package that matches your card just leave a comment below. If on 32bit (untested):

sudo apt-get install libgl1-nvidia-glx
  • Run steam, let it download the client, and you should then be presented with the login screen.
  • Enjoy!
#!/bin/bash
sudo cp /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml.bak
sudo sed -i "/title_vertical_pad/s/value=\"[0-9]\{1,2\}\"/value=\"0\"/g" /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment