0

I recently installed lxpnael for having a all open windows list. It shows up by default only on one of my monitors can I show it also on my other monitor?

also can I also do it this way - the lxpanel on any monitor only shows the windows open on that monitor?

1 Answer 1

4

Source: http://ubuntuforums.org/showthread.php?t=2004985

Anyhow, try this:

I created two scripts in the .screenlayout/ directory with the help of ARandR:

~/.screenlayout$ cat single.sh 
#!/bin/sh
xrandr --output LVDS1 --mode 1024x600 --pos 0x0 --rotate normal --output VGA1 --off
lxpanelctl restart

~/.screenlayout$ cat dual.sh 
#!/bin/sh
xrandr --output LVDS1 --mode 1024x600 --pos 0x0 --rotate normal --output VGA1 --mode 1920x1080 --pos 1024x0 --rotate normal
lxpanelctl restart

adding the string "lxpanelctl restart" by hand (ARandR doesn't do it). Then, in the file ~/.config/openbox/lxde-ec.xml I added the following lines between two lines:

  </keybind>
  <keybind key="W-2">
  <action name="Execute">
  <command>sh ~/.screenlayout/dual.sh</command>
  </action>
  </keybind>
  <keybind key="W-1">
  <action name="Execute">
  <command>sh ~/.screenlayout/single.sh</command>
  </action>
</keybind>

so that using <1> and <2> I can switch between single and dual monitor configuration.

2
  • This does nothing for me: lxpanel stays visible only on the first monitor.
    – Calmarius
    Apr 6, 2023 at 7:50
  • This is almost literally an answer that is 10 years old. I would guess that the config has changed during that time so could be that the answer is outdated
    – Noosrep
    Apr 11, 2023 at 14:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .