Skip to content

Instantly share code, notes, and snippets.

@eiiches
Created November 15, 2010 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eiiches/700003 to your computer and use it in GitHub Desktop.
Save eiiches/700003 to your computer and use it in GitHub Desktop.
a script for changing gnome-terminal's background transparency from the command line.
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: $0 (darkness in 0.0 - 1.0)" 1>&2
fi
tmpfile=`mktemp`
gnome-terminal --save-config="$tmpfile"
profile=`grep "^ProfileID=" "$tmpfile" | cut -c 11-`
rm -f "$tmpfile"
if [ -n "$profile" ] && [ -n "$1" ]; then
gconftool-2 --type float --set "/apps/gnome-terminal/profiles/$profile/background_darkness" "$1"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment