You are not logged in.

#1 2014-11-09 17:36:07

nbb
Member
Registered: 2014-06-01
Posts: 11

[SOLVED] tray icons in i3

Hi!
I just installed i3 and I'm happy, I customized my i3bar with conky.. and I noticed, that I don't have tray icons. I tried stalonetray, but I would like have it integrated with my main bar.
There are my current config files, there is screenshot in the same repo.
I've read that i3bar or i3status have tray out-of-the-box, but I'm not able to restore/configure it. Any advice?

Last edited by nbb (2014-11-09 18:54:10)

Offline

#2 2014-11-09 17:56:24

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] tray icons in i3

You must set tray_output to "primary" or the output name from xrandr.
http://i3wm.org/docs/userguide.html#_tray_output
If you want to use stalonetray, set tray_output to none.

Last edited by progandy (2014-11-09 17:57:07)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2014-11-09 18:19:45

nbb
Member
Registered: 2014-06-01
Posts: 11

Re: [SOLVED] tray icons in i3

It's not so easy, I tried it earlier.
Right now my bar section looks like that:

bar {
status_command         ~/.i3/conky-i3bar
strip_workspace_numbers no
  position               bottom
  workspace_buttons      yes
tray_output primary
  font                   pango:Consolas 9
  colors {
    separator            #666666
    background           #222222
    statusline           #dddddd
    focused_workspace    #0088CC #0088CC #ffffff
    active_workspace     #333333 #333333 #ffffff
    inactive_workspace   #333333 #333333 #888888
    urgent_workspace     #2f343a #900000 #ffffff
  }
}

Still no tray (in stalonetray icons show up, so there is problem with i3bar.

Offline

#4 2014-11-09 18:34:41

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] tray icons in i3

Did you read the documentation I linked? If you use "tray_output primary" you might have to set your output as primary with an xrandr command. You can also try to remove all tray_output commands from your config, then i3bar chooses the first output it finds without settings primary. At least it worked for me this way.

Edit: And you must not run stalonetray at the same time since it steals the tray from i3.
Edit: What did you do after changing the configuration? Did you reload the configuration or restart i3?

Last edited by progandy (2014-11-09 18:39:27)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2014-11-09 18:53:44

nbb
Member
Registered: 2014-06-01
Posts: 11

Re: [SOLVED] tray icons in i3

progandy wrote:

Did you read the documentation I linked? If you use "tray_output primary" you might have to set your output as primary with an xrandr command. You can also try to remove all tray_output commands from your config, then i3bar chooses the first output it finds without settings primary. At least it worked for me this way.

Indeed. The solution is to remove any tray_output.
Thank you very much smile

Offline

Board footer

Powered by FluxBB