Fun with DCOP and compositing in X
September 29th, 2005
Want to set your terminal window’s opacity from the command line? Ok, here’s a X11/KDE one-liner to do it.. If you have your compositing set up in X11 (too lazy to link to a howto)…, do this:
$ alias tz='dcop kwin KWinInterface setOpacity $WINDOWID'
then
$ tz 75
will bring your terminal to 75% opacity. 100 will do 100% and so on. Throw it in your .bashrc for fun.
I’d like to figure out a way to do this for the current focused window (ie get that window’s id), but that may be a bit too much work. That is a 5 line script…