switching DE/WM without killing X
hello guys i have been using fluxbox and openbox in slackware and i have seen that the fluxbox menu by default it has a menu entry that lets tyou switch from fluxbox to openbox,twm,kde and so on with a simple click. i was wondering if there is a way of adding an option like that in openbox menu. the flusbox menu entryes for switching WM/DE look like this:
Code:
[submenu] (Window Managers) |
Looks like it is possible. Have a look at openbox's wiki.
Restart section of Openbox's wiki. Code:
Restart |
so to start another WM like fluxbox from openbox? what would the command be
|
Quote:
Code:
[restart] (twm) {twm} Code:
<keybind key="W-F11"> Code:
<menu> <Edit> Yep, that's it. Just add something like that into the menu xml file in ~/.config/openbox, or wherever else your configurations might be. |
<item label="FluxBox">
<action name="Restart"> <command> fluxbox </command> </action> this is what i tryed and nothing happens when i click on it |
<menu>
<item label="fluxbox"> <action name="Restart"><command>fluxbox</command></action> </item> </menu> both of these didnt work |
Huh. Odd. I tried it with...
Code:
<item label="Start Echinus Window Manager"> Try adding the path and see if that works. For Slackware on my system it would be something like... Code:
<item label="Start Echinus Window Manager"> |
ok i have tryed that and it actually loads fluxbox but it loads it on top of openbox so i still have the openbox tint2 panel loaded.
|
Quote:
Might be possible to run a script instead. One that would kill tint2's process. Code:
# kill $(ps -C tint2 -o pid=) |
Ok, I wrote a script for only killing the process (using lxpanel rather than tint2, but I'm sure it should work as well). Then I added in two commands instead of only one.
Code:
<item label="Start Echinus Window Manager"> The second <action> then exits openbox and restarts into echinus. Here's the script I wrote. (Again, I'm no expert with kill and ps, so be sure to read and understand the man pages before attempting this. If anyone who is experienced with running ps and kill in this way and happens to be reading this, please chime in with some helpful hints). Code:
#!/bin/bash Code:
#!/bin/bash |
All times are GMT -5. The time now is 12:13 AM. |