Created
November 15, 2010 03:32
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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