The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

Transparency and saved window layout, is it possible?

asked 2014-06-20 08:29:26 +0000

PokaLXIV gravatar image

Is it possible to have transparent terminal windows when I use the restore window layout script?

edit retag flag offensive close merge delete



Do you mean the "placeholder" windows? If so you should get the window details (name, class, role) with xprop and instruct your compositor (compton?) to recognize them and make transparent. I haven't yet used the restore layout feature but from what I have seen the placeholde windows aren't terms

Man from Mars gravatar imageMan from Mars ( 2014-06-24 12:37:35 +0000 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-07-03 22:49:55 +0000

Michael Rose gravatar image

What you can do is make every terminal window have the same transparency by automatically setting it transparent when its started.


transset -i windowid .numbernumber will set window id to numbernumber percent transperent

so a shell function called trans that runs transset -i on the result of xdotool getactivewindow and the argument to the function

in fish shell transset -i (xdotool getactivewindow) .{$argv}

is sufficient to enable you to run trans numbernumber and change the transparency of the current application

In your i3config then you may add a line like so

for_window [class="Lxterminal"] exec "trans .80"

with the proper window class for your application and the desired transparency

This means for every window which matches the window class run the desired command or command.

edit flag offensive delete link more


You absolutely cannot restore anything about the windows. The layout functionality merely creates placeholders to be replaced by your windows as you create them. Its your responsibility to open the windows and do whatever needs to be done to them.

Michael Rose gravatar imageMichael Rose ( 2014-07-04 19:10:27 +0000 )edit

You are better off configuring this in your compton config if you use compton see

Michael Rose gravatar imageMichael Rose ( 2015-10-02 21:22:52 +0000 )edit

Question Tools


Asked: 2014-06-20 08:29:26 +0000

Seen: 797 times

Last updated: Jul 03 '14