Skip to content

Commit 68a4f69

Browse files
committed
added -misc and -submenu options to deal with groups that have few items
1 parent 72e8f46 commit 68a4f69

File tree

3 files changed

+206
-26
lines changed

3 files changed

+206
-26
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Options
5050
-t [app] terminal app to use for terminal programs, defaults to 'xterm'
5151
-term [app] terminal app to use for terminal programs, defaults to 'xterm'
5252
-dialogs [app] dialog app to use for programs that need additional info. Choices are 'xdialog', 'zenity' or 'qarma'. Defaults to 'no dialogs'. If no dialog app is set then entries for apps requring dialogs will not be added to the menu.
53+
-misc [size] Merge any top-level menus that contain less than <size> items into a single 'miscellaneous' top-level group.
54+
-submenu [size] For any groups that are not top-level and which contain less than <size> items, show the items in the parent group, rather than in a submenu.
5355
5456
```
5557
Multiple 'window manager' arguements can be supplied and can contain the following values:

menubuilder.conf

Lines changed: 78 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
#a list of group names to ignore if they occur in .desktop files
33
ignore-groups GTK,Gtk,Qt,Application,ConsoleOnly,GNOME,SDL
44

5+
#we ignore these by name, not executable (we could use either) because we may have .desktop files
6+
#for e.g. chocolate-doom freedom.wad that will run, whereas chocolate-doom on it's own, wont. But
7+
#if we say 'chocolate-doom' here, both will fail to run. So long as we use a name like 'Freedoom' in
8+
#our desktop file that supplies a wad argument, we can rule out 'naked' doom emulators by the name
9+
#used in their .desktop file
10+
ignore-apps Chocolate Doom,Chocolate Hexen,Chocolate Heretic,Chocolate Strife,Crispy Doom
11+
512
group Audio icons=Speaker,sound,audio-speaker,Music
613
group AudioVideo icons=television,film
714
group Bittorrent icons=bittorrent,torrent,download,server_link,down_arrow,arrow_down
@@ -16,6 +23,7 @@ group EscapeVelocity title="Escape Velocity Clones" parent=Game icons=Spaceship,
1623
group FileManager title="File Managers" icons=folder
1724
group Graphics icons=application-graphics,palette,paintbrush,painting,picture,image
1825
group Music icons=guitar,drums,Music
26+
group Doom parent=Game icons=doom
1927
group RacingGame title="Racing Games" parent=Game icons=ferrari,formula1,sportscar,racecar,car
2028
group StrategyGame title="Strategy Games" parent=Game icons=application-strategy?game,StrategyGame,Knight,Chess
2129
group VerticalShooterGame title="Vertical Shooter Games" parent=Game icons=galaxis,tyrian,galaxians,rocket
@@ -34,12 +42,59 @@ group ConsoleOnly ignore
3442

3543

3644
override Dune2 group=StrategyGame
45+
override AgeOfConquest group=StrategyGame
46+
override AgeOfWonders group=StrategyGame
47+
override FantasyWars group=StrategyGame
48+
override LGeneral group=StrategyGame
49+
override Imperialism group=StrategyGame
50+
override ImperiumGalactica group=StrategyGame
51+
override MasterOfOrion group=StrategyGame
52+
override MasterOfOrion2 group=StrategyGame
53+
override MasterOfMagic group=StrategyGame
54+
override MoonbaseCommander group=StrategyGame
3755
override Sentry group=StrategyGame
56+
override Castles group=StrategyGame
57+
override CrusaderKings group=StrategyGame
58+
override CrimsonFields group=StrategyGame
59+
override Defcon group=StrategyGame
60+
override SpaceCom group=StrategyGame
61+
override SpaceEmpiresDeluxe4 group=StrategyGame
62+
override OffworldResourceBase group=StrategyGame
63+
override freeciv-sdl group=StrategyGame
64+
override freeciv-server group=StrategyGame
65+
66+
override CryptOfTheNecrodancer group=Roguelike
3867
override DwarfFortress group=Roguelike
3968
override DesktopDungeons group=Roguelike
69+
override DarkestDungeon group=Roguelike
70+
override Darklands group=Roguelike
71+
override Battlevoid group=Roguelike
72+
override FTL group=Roguelike
73+
override Nox group=Roguelike
74+
override Hexplore group=Roguelike
75+
override KingsBounty group=Roguelike
76+
override TheWitcherAdventureGame group=Roguelike
77+
78+
override Invaders95 group=ArcadeClassics
79+
override LBreakout2 group=ArcadeClassics
80+
override LTris group=ArcadeClassics
81+
override JphJoust3 group=ArcadeClassics
82+
83+
override BattleChess group=BoardGame
84+
override ChineseChess group=BoardGame
85+
override FreeAwale group=BoardGame
86+
87+
override FreeDoomPhase1 group=Doom
88+
override FreeDoomPhase2 group=Doom
89+
override Doom:Requiem group=Doom
90+
override Doom:Scythe group=Doom
91+
4092
override GemSwap group=Puzzle
4193
override SegaSwirl group=Puzzle
42-
override Invaders95 group=ArcadeClassics
94+
override PipeWalker group=Puzzle
95+
96+
override Flatout group=RacingGame
97+
override etr group=RacingGame
4398

4499
override Helm,PHASEX,IanniX,QMidiArp,Qtractor,drumkv1,samplv1,padthv1,synthv1,amsynth group=Music
45100
override Cutegram,Quaternion,nheko,KVIrc group=Chat
@@ -51,6 +106,24 @@ override HTop group=System termapp
51106
override Galculator group=Calculator
52107
override QupZilla group=WebBrowser
53108

109+
override FeedRoller group=WebBrowser
110+
override yoDownet group=WebBrowser
111+
112+
113+
app fbzx group=Emulator
114+
app fuse group=Emulator
115+
app dgen group=Emulator
116+
app gngeo group=Emulator
117+
app emudore group=Emulator
118+
app zesarux group=Emulator
119+
override Raine group=Emulator
120+
override NeoRaine group=Emulator
121+
override Hatari group=Emulator
122+
override Hatariui group=Emulator
123+
override Stella group=Emulator
124+
override Scummvm group=Emulator
125+
126+
54127
#this app is triggered off a shortcut key, not by being run as normal, but it has a .desktop file
55128
#so we ignore it
56129
override Stjerm ignore
@@ -376,6 +449,10 @@ app Maelstrom group=ArcadeClassics icon=games title="Maelstrom"
376449
app missile group=ArcadeClassics icon=games title="Missile Command"
377450
app xgalaga group=ArcadeClassics icon=games title="X Galaga"
378451
app xgalaga++ group=ArcadeClassics icon=games title="X Galaga++"
452+
app xinv3d group=ArcadeClassics title="X Invaders 3D"
453+
app xsc group=ArcadeClassics title="X Star Castle"
454+
app xblast group=ArcadeClassics title="X Star Castle"
455+
379456

380457
app frogatto group=Game icon=games
381458
app neverball group=Game icon=games
@@ -392,10 +469,6 @@ app sopwith group=Game icon=games title="Sopwith"
392469
app triplane group=Game icon=games title="Triplane"
393470
app toppler group=Game icon=games title="Nebulous (tower toppler)"
394471
app xkoules group=Game icon=koules title="Koules!"
395-
app xinv3d group=Game icon=games title="X Invaders 3D"
396-
app xsc group=Game icon=games title="X Star Castle"
397-
app xblast group=Game icon=games title="X Star Castle"
398-
399472
app alienarena group=Game icon=games title="Alien Arena"
400473
app nexuiz group=Game icon=games
401474
app bomberclone group=Game icon=games

0 commit comments

Comments
 (0)