The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

dynamic change of status bar setup

asked 2013-07-26 05:04:07 +0000

anonymous user

Anonymous

updated 2013-07-26 05:21:19 +0000

Hi, I've configured two different setups, which I would be able to switch depending on how many monitors are active. Here is the relevant part of my config:

bar {
    output LVDS1
    output LVDS2
    tray_output primary
    status_command i3status
}

bar {
    output VGA1
    output VGA2
}

If I switch off the LVDS output I'd like to see my status bar and tray icons (nm-applet) on VGA and switch them back if both monitors are active again. I tried i3-msg "bar { status_command i3status }", but did not succeed. Can this be achieved (4.5.1)?

Regards,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-27 15:29:51 +0000

Michael gravatar image

The only way to achieve this is to have a little script which will write an i3 config file (depending on your currently connected monitors) and then use the reload command.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-26 05:04:07 +0000

Seen: 236 times

Last updated: Jul 27 '13