by Morgan Aldridge morgant@makkintosshu.com
This is a small utility to generate MLVWM application styles (specifically mlvwmrc
) for Firefox SSBs (Site-Specific Browsers) which have been created using Sebastian Appler's ffssb
.
Important: This utility is in early testing. Please back up your data, especially your ~/.mlvwm/
configs, before using this!
ffssb2mlvwmrc
generates an ~/.mlvwm/apps/ffssb/
directory containing:
- One application styles file per FFSSB, especially:
- The FFSSB's name
- The FFSSB's icon or the Firefox icon
- The Firefox menus and other styles
- An
.AppsManifest
which includes aRead
command for each of the aforementioned FFSSB-specific files - An
.AppsMenu
which contains aMenu...END
configuration block with menu items for all of the FFSSBs
It will also:
- Confirm that the generated
~/mlvwm/apps/ffssb/.AppsManifest
file is included in your main~/mlvwm/apps/.AppsManifest
file - Output basic instructions for including the generated
~/.mlvwm/apps/ffssb/.AppsMenu
and adding aSubMenu ...
configuration line to one of yourMenu...END
blocks
make install
You must have created at least one FFSSB using ffssb
. You can confirm this by listing your FFSSBs:
ffssb list
If you've never used ffssb2mlvwmrc
before and don't have any ~/.mlvwm/apps/ffsb/
or ~/.mlvwm/pixmap/ffssb/
directories, you can:
- Execute
ffssb2mlvwmrc
to create FFSSB application styles, icons, and a manifest file:ffssb2mlvwmrc
- Add your newly created FFSSB applications manifest to your main
mlvwmrc
applications manifest file. You can do this by editing~/.mlvwm/apps/.AppsManifest
and adding the following line:Read .mlvwm/apps/ffssb/.AppsManifest
- Restart
mlvwm
to reload your configurations & application styles
If you've previously used ffssb2mlvwmrc
to create FFSSB application styles et al, but you've since updated your FFSSBs, I suggest updating them as follows:
- Move your existing
~/.mlvwm/apps/ffssb/
directory aside:mv ~/.mlvwm/apps/ffssb{,.$(date +%Y%m%d-%H%M%S)}
- Execute
ffssb2mlvwmrc
to create new applications, styles, icons, and manifest file in~/.mlvwm/apps/ffssb/
:ffssb2mlvwmrc
- Restart
mlvwm
to reload your configurations & application styles
After generating/regenerating FFSSBs application styles by executing ffssb2mlvwmrc
(see above), you can also insert a submenu into the menu of your choice, listing all your FFSSBs, for quick launch. For example, you might add it to your theme/*
files as follows:
- Back up your existing
~/.mlvwm/themes/
directory:cp -R ~/.mlvwm/themes{,.$(date +%Y%m%d-%H%M%S)}
- Edit one of the
~/.mlvwm/themes/*
files (for example,System7
) - Above the line containing
Menu Apple, ...
, add the following line:Read .mlvwm/apps/ffssb/.AppsMenu
- After the line containing
Menu Apple, ...
and before the nearest line containingEND
, add the following line:"FFSSBs" SubMenu FFSSB-FFSSBs, Icon folder.xpm
- Save your changes
- Restart
mlvwm
to reload your configurations & application styles
Released under the MIT License.