I am using the Fluxbox-Rox combination
I can see config filesfor both menu amd toolbar in antiX Control Center under both"Edit Fluxbox Settings" and"EditIceWM Settings", which is confusing by itself, but the the entries in files are not too obvious, and I have not found a place that describes how to work with them.
Thanks, Nick
15 posts
• Page 1 of 1
-
Posts: 13
- Joined: 16 Oct 2011
#1
Last edited by gurfle on 21 Oct 2011, 04:56, edited 1 time in total.
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#2
Not sure what you mean here, Nick.
-
Posts: 1,028
- Joined: 21 Aug 2011
#3
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.icewm.org/FAQ/IceWM-FAQ-4.html"
linktext was:"http://www.icewm.org/FAQ/IceWM-FAQ-4.html"
====================================
The entries in the toolbar file starting with # are commented. Remove the # from say the Streamtuner entry in the quick launch button section, save the file and restart IceWM and a button will appear.
I'll take a guess...If you are asking for the form of the entries perhaps section 4.3 of this page might help:gurfle wrote:...the entries in files are not too obvious, and I have not found a place that describes how to work with them.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.icewm.org/FAQ/IceWM-FAQ-4.html"
linktext was:"http://www.icewm.org/FAQ/IceWM-FAQ-4.html"
====================================
The entries in the toolbar file starting with # are commented. Remove the # from say the Streamtuner entry in the quick launch button section, save the file and restart IceWM and a button will appear.
-
Posts: 2,238
- Joined: 16 Dec 2007
#4
Here's a link for editing the menu in fluxbox. Its not hard once you understand the syntax of the text file.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://fluxbox-wiki.org/index.php?title=Editing_the_menu"
linktext was:"http://fluxbox-wiki.org/index.php?title ... g_the_menu"
====================================
The reason there are menu entries in both the icewm-settings and fluxbox-settings buttons for the control centre is because both icewm and fluxbox have menus, and they are not cross-compatible, so there are two files.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://fluxbox-wiki.org/index.php?title=Editing_the_menu"
linktext was:"http://fluxbox-wiki.org/index.php?title ... g_the_menu"
====================================
The reason there are menu entries in both the icewm-settings and fluxbox-settings buttons for the control centre is because both icewm and fluxbox have menus, and they are not cross-compatible, so there are two files.
-
Posts: 13
- Joined: 16 Oct 2011
#5
Thanks, all. Just the simple references to key fodlers and files was all it took. Thanks anti, too, for pointing me to how to ungarble a startup config file problem.
One serious problem, though re. the Applicatins sub-menu: After I go and edit these lines in ~/.icewm/application
prog"Root Terminal""/usr/share/icons/Buuf-Deuce/128x128/apps/gksu-root-terminal.png" gksu /usr/bin/x-terminal-emulator
prog"ROXTerm""/usr/share/pixmaps/roxterm.xpm" roxterm
to the following
prog"Root Terminal""/usr/share/icons/Buuf-Deuce/128x128/apps/gksu-root-terminal.png" gksu"/usr/bin/x-terminal-emulator --geometry +0+0"
prog"ROXTerm""/usr/share/pixmaps/roxterm.xpm" roxterm --geometry +0+0
I get the change to work (always opening terminals in upper left corner of screen) for the current session. However . . . as soon as I log out and back in, the change wiped out. The file ~/.icewm/application gets recreated everytime IceWM restarts.
Would the fact that /usr/local/bin/auto-icewm-menu.sh or /usr/local/bin/icewm-xdg-menu appear to get run have anything to do with this? I can't quite follow what's going on here.
Thanks for your help, |\|
One serious problem, though re. the Applicatins sub-menu: After I go and edit these lines in ~/.icewm/application
prog"Root Terminal""/usr/share/icons/Buuf-Deuce/128x128/apps/gksu-root-terminal.png" gksu /usr/bin/x-terminal-emulator
prog"ROXTerm""/usr/share/pixmaps/roxterm.xpm" roxterm
to the following
prog"Root Terminal""/usr/share/icons/Buuf-Deuce/128x128/apps/gksu-root-terminal.png" gksu"/usr/bin/x-terminal-emulator --geometry +0+0"
prog"ROXTerm""/usr/share/pixmaps/roxterm.xpm" roxterm --geometry +0+0
I get the change to work (always opening terminals in upper left corner of screen) for the current session. However . . . as soon as I log out and back in, the change wiped out. The file ~/.icewm/application gets recreated everytime IceWM restarts.
Would the fact that /usr/local/bin/auto-icewm-menu.sh or /usr/local/bin/icewm-xdg-menu appear to get run have anything to do with this? I can't quite follow what's going on here.
Thanks for your help, |\|
-
Posts: 1,028
- Joined: 21 Aug 2011
#6
Perhaps you might try something like this as root:
Edit /usr/share/applications/roxterm.desktop
Add your additional settings to the end of the lines"TryExec=roxterm" and"Exec=roxterm"
Save the file
To test:
Menu->Desktop->IceWM->Update Menu (Auto)
Then open a roxterm using the menu entry
Not sure if this is the"approved" antiX way, but I deal with matters like this by editing the underlying program_name.desktop file.gurfle wrote:One serious problem, though re. the Applicatins sub-menu: After I go and edit these lines in ~/.icewm/application
prog"Root Terminal""/usr/share/icons/Buuf-Deuce/128x128/apps/gksu-root-terminal.png" gksu /usr/bin/x-terminal-emulator
prog"ROXTerm""/usr/share/pixmaps/roxterm.xpm" roxterm
to the following
prog"Root Terminal""/usr/share/icons/Buuf-Deuce/128x128/apps/gksu-root-terminal.png" gksu"/usr/bin/x-terminal-emulator --geometry +0+0"
prog"ROXTerm""/usr/share/pixmaps/roxterm.xpm" roxterm --geometry +0+0
I get the change to work (always opening terminals in upper left corner of screen) for the current session. However . . . as soon as I log out and back in, the change wiped out. The file ~/.icewm/application gets recreated everytime IceWM restarts.
Would the fact that /usr/local/bin/auto-icewm-menu.sh or /usr/local/bin/icewm-xdg-menu appear to get run have anything to do with this? I can't quite follow what's going on here.|\|
Perhaps you might try something like this as root:
Edit /usr/share/applications/roxterm.desktop
Add your additional settings to the end of the lines"TryExec=roxterm" and"Exec=roxterm"
Save the file
To test:
Menu->Desktop->IceWM->Update Menu (Auto)
Then open a roxterm using the menu entry
-
Posts: 13
- Joined: 16 Oct 2011
#7
Thanks for the suggestion, @SamK. After adding the options as you suggest, and running auto-icewm-menu.sh (which is all that"Menu->Desktop->IceWM->Update Menu (Auto)" really is) as you suggest, the roxterm menu item goes away __{{emoticon}}__
Also, I was really looking for a more generally applicable approach that would allow me to add arbitrary new items to the menu.
Whatever auto-icewm-menu.sh and /usr/local/bin/icewm-xdg-menu do, is by no means clear.
There has to be something a little more intuitive and easier to use.
Also, I was really looking for a more generally applicable approach that would allow me to add arbitrary new items to the menu.
Whatever auto-icewm-menu.sh and /usr/local/bin/icewm-xdg-menu do, is by no means clear.
There has to be something a little more intuitive and easier to use.
-
Posts: 1,028
- Joined: 21 Aug 2011
#8
This survives the IceWM update and also a reboot.
This is different to the behaviour seen here. A single entry (rather than a double) was used in roxterm.desktop as follows:gurfle wrote:After adding the options as you suggest, and running auto-icewm-menu.sh (which is all that"Menu->Desktop->IceWM->Update Menu (Auto)" really is) as you suggest, the roxterm menu item goes away __{{emoticon}}__
Code: Select all
...
TryExec=roxterm
Exec=roxterm --geometry +0+0
Icon=roxterm
Type=Application
Categories=GTK;Utility;TerminalEmulator;
Try adding the wanted items outside the applications section. For example add them directly to ~/.icewm/menu. This method is also used here and is unaffected by an update/reboot.gurfle wrote:Also, I was really looking for a more generally applicable approach that would allow me to add arbitrary new items to the menu.
-
Posts: 13
- Joined: 16 Oct 2011
#9
I am not at the machine at the moment, but when I return in about 12 hours, I can and if it still fails then, I will post a full list of packages installed on the off chance that someone can spot some messed up combination. In the meantime, @SamK, are you using AntiX M-11 as I am? I installed it from a liveCD downloaded mid August, but then of course a bunch of other things I needed have involved getting stuff at various times from the moving target Debian Testing and that makes me a little nervous . . .
The behaviour for me is that the edits (on both lines, anyway) to /usr/share/applications/roxterm.desktop stick there, but cause ~/.icewm/application to get reconstructed without the (non-root) Roxterm entry.
Thanks, Nick
I see you only put the geometry option on the"EXEC" line, not the"TryExec" line, as I did following your previous post. I can't check now to see if that makes a difference, since . . .SamK wrote:This survives the IceWM update and also a reboot.Code: Select all
... TryExec=roxterm Exec=roxterm --geometry +0+0 Icon=roxterm Type=Application Categories=GTK;Utility;TerminalEmulator;
I am not at the machine at the moment, but when I return in about 12 hours, I can and if it still fails then, I will post a full list of packages installed on the off chance that someone can spot some messed up combination. In the meantime, @SamK, are you using AntiX M-11 as I am? I installed it from a liveCD downloaded mid August, but then of course a bunch of other things I needed have involved getting stuff at various times from the moving target Debian Testing and that makes me a little nervous . . .
The behaviour for me is that the edits (on both lines, anyway) to /usr/share/applications/roxterm.desktop stick there, but cause ~/.icewm/application to get reconstructed without the (non-root) Roxterm entry.
Can one add customized submenus in a manner similar to the premade"application" one (except that they don't succumb to uncontrolled modifications)?SamK wrote:Try adding the wanted items outside the applications section. For example add them directly to ~/.icewm/menu. This method is also used here and is unaffected by an update/reboot.
Thanks, Nick
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#10
Customized submenus need to be made to the menu file in ~/icewm (or fluxbox). The applications file gets updated everytime you login, reboot, restart the 'desktop' or update the menu. This was requested so any newly installed applications would show up, rather then user having to add entries manuallt.
Also, antiX applications menu is based on lxde menu (the original Debian menu was seen to be too cluttered), so if a newly installed app doesn't have a .desktop file then it will not appear in the menu.
Also, antiX applications menu is based on lxde menu (the original Debian menu was seen to be too cluttered), so if a newly installed app doesn't have a .desktop file then it will not appear in the menu.
-
Posts: 1,028
- Joined: 21 Aug 2011
#11
Yes.gurfle wrote:...are you using AntiX M-11 as I am?
Yes, see the link in post #3 and have a look at the entries already in ~/.icewm/menu for the way in which they are stuctured.gurfle wrote:Can one add customized submenus
Not sure what you mean by either of these.gurfle wrote:in a manner similar to the premade"application" one...
...(except that they don't succumb to uncontrolled modifications)?
-
Posts: 13
- Joined: 16 Oct 2011
#12
I renamed the constantly - by some mysterious process - recreated"application" menu file to something like"Applications", made the changes to Roxterm options or anything else there, and then referenced this file, instead of the"application" file, from the"menu" file. All changes stick now after running the menu update script.
Thanks for keeping the discussion going on this. It's been an intersting learning experience, which I can now put to good use in configuring my system. __{{emoticon}}__
Nick
P.S. If anyone can explain what the point of the constant rebuilding of the"application" menu file is, and how to get control of the process in a reasonably simple manner, I would certainly appreciate hearing it.
Well, the answer to my question, and the problem posed in the thread is YES:SamK wrote:Not sure what you mean by either of these.gurfle wrote:in a manner similar to the premade"application" one...
...(except that they don't succumb to uncontrolled modifications)?
I renamed the constantly - by some mysterious process - recreated"application" menu file to something like"Applications", made the changes to Roxterm options or anything else there, and then referenced this file, instead of the"application" file, from the"menu" file. All changes stick now after running the menu update script.
Thanks for keeping the discussion going on this. It's been an intersting learning experience, which I can now put to good use in configuring my system. __{{emoticon}}__
Nick
P.S. If anyone can explain what the point of the constant rebuilding of the"application" menu file is, and how to get control of the process in a reasonably simple manner, I would certainly appreciate hearing it.
-
Posts: 1,028
- Joined: 21 Aug 2011
#13
IceWM and Fluxbox probably adhere to different standards. In such a case, a translation mechanism will be required in order for the menu to be displayed. Add to this the previously described desire for new apps to be added to the menu in a (semi) automated manner and a potential explanation of the two files you mentioned begins to emerge.
The"mysterious process" is a result of design, based on a desire for antiX to offer choice and convenience.
Of course someone who was around when the decisions were made might offer a different explanation.
In addition to the previous explanation provided by anticapitalista, I would offer the following which is superficial, unresearched, and based entirely on supposition.gurfle wrote:P.S. If anyone can explain what the point of the constant rebuilding of the"application" menu file is...
IceWM and Fluxbox probably adhere to different standards. In such a case, a translation mechanism will be required in order for the menu to be displayed. Add to this the previously described desire for new apps to be added to the menu in a (semi) automated manner and a potential explanation of the two files you mentioned begins to emerge.
The"mysterious process" is a result of design, based on a desire for antiX to offer choice and convenience.
Of course someone who was around when the decisions were made might offer a different explanation.
-
Posts: 13
- Joined: 16 Oct 2011
#14
Thanks for so patiently sharing this. Suppositions are always interesting too! I was so focused on getting a working solution, that I only saw your last couple of posts and missed anti's preceding one __{{emoticon}}__ . Together they are very helpful. The motivations both of you give make perfect sense, and give me added confidence in AntiX __{{emoticon}}__SamK wrote:In addition to the previous explanation provided by anticapitalista, I would offer the following which is superficial, unresearched, and based entirely on supposition.