0

I am using tmux 2.1 on Ubuntu 16.04.  I would like to have the background have some transparency.  A lot of times I need to reference something at the same time I use the terminal. 

I have looked at http://man.openbsd.org/OpenBSD-current/man1/tmux.1  and Reset background to transparent with tmux?  this seemed to suggest that setting bg=default would do it but it gives me the default solid purple. I tried using a hex code of #80FFFFFF which tmux rejected.

edit: The old post noted above does not explain how to set the transparency in tmux- at least not to me :(

Help greatly appreciated.

RGB
  • 5
  • @ThomasDickey I did look at that post. He does say setting bg to default resulted in a transparent status bar but when I tried bg=default it did not work for me. Also, he is using tmux-powerline. I was hoping to get a more direct answer to my sito. One of those little things that would make my life much easier. – RGB Aug 19 '17 at 14:47
  • Current tmux is >2.5 (May 2017), and the documentation with the obscure clues doesn't apply to 2.1 (that was October 2015). – Thomas Dickey Aug 19 '17 at 14:47

1 Answers1

0

The transparency preferences is not part from tmux, you need to change your profile preferences from your terminal

Edit > Profile preferences > Colors

uncheck Use transparency from system theme and

check Use transparent background

configure the level of opacity and that's it

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232
  • Which terminal emulator are you referring to? The instructions look very specific. – chepner Aug 19 '17 at 18:05
  • I'm refering to the terminal application that ubuntu has as default because @RGB said that "A lot of times I need to reference something at the same time I use the terminal." Seems to be a terminal problem rather than tmux – Christopher Díaz Riveros Aug 19 '17 at 18:08
  • The OP didn't really mention which terminal emulator they are using (although it is perhaps a valid assumption the OP is using the one you reference). It is definitely a terminal issue, rather than something tmux can do itself. – chepner Aug 19 '17 at 18:12
  • yep :) my assumption based on the distro, configs, and desires from the user... I hope to be right with this, but @RGB will have the last word :) – Christopher Díaz Riveros Aug 19 '17 at 18:15
  • @ChristopherDíazRiveros yes thank you, that is what I was looking for- somehow I thought it was a tmux issue. Also, although I sain 'when I use terminal' I really meant tmux but this answer solved it. – RGB Aug 20 '17 at 00:51
  • tmux use RGB color style by default. If you are using a customized theme in tmux there is a chance the theme is overlapping the terminal colors. You can comment out your custom theme or comment the set -g window-style and set -g window-active-style from your ~/.tmux.conf to see if the terminal transparency start to work. If so, you can start to customize your tmux color scheme to have it in the way you want. – isca Dec 05 '22 at 23:00