Created
October 28, 2010 08:06
-
-
Save t9md/650883 to your computer and use it in GitHub Desktop.
set iTerm transparency via command
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'appscript' | |
num = ARGV[0] | |
unless num | |
puts " #{File.basename($0)} 0-10" | |
exit 2 | |
end | |
iTerm = Appscript.app('iTerm') | |
iTerm.current_terminal.current_session.transparency.set((num.to_i / 10.0)) | |
# p iTerm.current_terminal.current_session.transparency.get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment