George Vlahavas
9732fec737
Update README.md for fvwm and --max-icon-size
8 years ago
George Vlahavas
80c4320400
Update manpage for Fvwm and --max-icon-size
8 years ago
George Vlahavas
0395fb4a58
Add --max-icon-size option to help text
8 years ago
George Vlahavas
67a173aa34
Add whitespace
Makes it easier to tell functions apart.
8 years ago
George Vlahavas
ab2808fb79
Restrict maximum icon size with --max-icon-size
By using the --max-icon-size option any icons that are larger than the
requested icon size get discarded. This is useful for at least Fvwm,
where the menus can hold icons of any size, with no option to resize to
a maximum size, making for some funny looking menus.
This adds a new dependency on the Pillow library, which is only loaded
if the --max-icon-size option is used.
8 years ago
George Vlahavas
39db10aa58
Add support for Fvwm
Fvwm menus can now be created with -f fvwm.
8 years ago
George Vlahavas
2f5a4761e0
Recurse into xdg directories for .desktop files
Look into all subdirs of xdg directories like /usr/share/applications
etc for .desktop files. This will make applications that put their
.desktop files in places like /usr/share/applications/kde4 visible.
8 years ago
George Vlahavas
e1097cc512
Add a USAGE header
Add a USAGE H1 header and adjust section headers with instructions for
WMs on level deeper.
9 years ago
George Vlahavas
fcefeb5fe6
Update manpage for Python 3
Update manpage dependencies list for compatibility with Python 3.
9 years ago
George Vlahavas
bb7a58714b
Update README.md for python 3
Update dependencies in README.md for Python 3 compatibility.
9 years ago
George Vlahavas
8f730f5a43
Adjust line breaks
Add a few line breaks to keep line lengths below 80 chars.
9 years ago
George Vlahavas
ab19431f3b
Add Python 3 compatibility
Support Python 2 and Python 3 at the same time.
* Make sure modules are loaded with the correct names for each version
* Use a compatibility layer for GTK
* Make sure strings are encoded/decoded properly
9 years ago
George Vlahavas
a01e8e3474
Merge branch 'master' of github.com:gapan/xdgmenumaker
Conflicts:
src/xdgmenumaker
9 years ago
George Vlahavas
7e5e51459a
Apply PEP8 formatting fixes
Fix formatting according to PEP8
9 years ago
George Vlahavas
66eb271433
Use str.format() for string formatting
Replace string concatenation with '+' with str.format()
9 years ago
George Vlahavas
f2860a61b9
Add new tests with icons
Add new tests with icons in the menus for icewm, jwm and pekwm
9 years ago
George Vlahavas
22fe094b44
Apply PEP8 formatting fixes
9 years ago
George Vlahavas
15c68b101d
Fix formatting in manpage (again)
Opening and closing tags should be in the same line to have any effect.
9 years ago
George Vlahavas
c132c354b3
Fix formatting in manpage
Opening and closing tags should be in the same line to have any effect.
9 years ago
George Vlahavas
56225bcbaa
Rename menu creation functions
Remove the menu suffix from menu creation functions.
9 years ago
George Vlahavas
e6695e41a4
Remove "_en" suffix from test files
No need to always specify that language is english. Only specify it when
it's not.
9 years ago
George Vlahavas
c658fd4abb
Fix manpage formatting
Use bold instead of italics for commands.
9 years ago
George Vlahavas
489df54c69
Add $ sign to commands
Add a $ sign in front of commands that need to be run from a shell.
9 years ago
George Vlahavas
ee79146e84
Remove empty line
It causes sections to not be intented well.
9 years ago
George Vlahavas
5bbede96a1
Add test cases for compizboxmenu
9 years ago
George Vlahavas
189331e947
Use applications-other for the main category
Use the applications-other icon as the default for the main category in
compizboxmenu instructions.
9 years ago
George Vlahavas
83ea7c191c
Adjust spacing for compizboxmenu item entries
Add an additional level of spacing for individual menu entries when not
using icons.
9 years ago
George Vlahavas
eda148f75f
Don't use full path for the main menu item
In compizboxmenu, don't use the full path to the "applications" icon in
the main menu item. Compiz boxmenu handles that anyway.
9 years ago
George Vlahavas
56fe1a136e
Add missing parenthesis
Removed by mistake
9 years ago
George Vlahavas
2d0f807207
Revert disallowing compizboxmenu with -n
The --no-submenu option works with compizboxmenu again.
9 years ago
George Vlahavas
c56aad2f17
Edit compizboxmenu section in manpage
Fix minor stuff.
9 years ago
George Vlahavas
515d6783c6
Revert "Always set submenu to False with compizboxmenu"
This reverts commit 469bd16943
.
9 years ago
George Vlahavas
1b0be01194
Move Compiz Boxmenu section
Move the Compiz Boxmenu section towards the top, so that options are
ordered alphabetically.
9 years ago
George Vlahavas
21d2fc3c50
Update manpage for compizboxmenu
9 years ago
George Vlahavas
19768e7652
Update README for compizboxmenu
9 years ago
George Vlahavas
fe6369b379
Adjust --help message for compizboxmenu
Add info about compizboxmenu when running xdgmenumaker -h.
9 years ago
George Vlahavas
469bd16943
Always set submenu to False with compizboxmenu
Since the menu will always show up in a submenu with compizboxmenu,
there's no need to have a nested submenu in there.
9 years ago
George Vlahavas
0e6dbf10d7
Strip icon name for compizboxmenu
This fixes cases when the icon extension would be kept and the icon would
not display in the menu.
9 years ago
George Vlahavas
f1147cf644
Adjust spacing for compizboxmenu
Use spaces instead of tabs for spacing. Also add an additional level of
spacing for each item in the menu.
9 years ago
George Vlahavas
5fec940857
Add separate icon_strip function
This one just strips everything from the icon name. Getting the full
path to the icon according to the gtk theme is now separated.
9 years ago
George Vlahavas
f3b9d0e74e
Revert editing ../desktop-directories location
It won't work when xdgmenumaker is run in place for within the source tree.
9 years ago
George Vlahavas
7af24ed8bd
Merge pull request #5 from ShadowKyogre/compiz-boxmenu
Add support for Compiz Boxmenu
9 years ago
ShadowKyogre
236bae3c2b
Add instructions for Compiz Boxmenu usage
9 years ago
ShadowKyogre
f54bb5e8bf
Don't forget to escape the ampersands. Also, change ../ to
a more direct method of retrieving the desktop-directories relevant
to the source file when run in a portable manner. ../ is dependent
on the current working directory.
9 years ago
ShadowKyogre
d541067a66
Add support for Compiz Boxmenu
9 years ago
George Vlahavas
d6b4773838
Mention XDGMENUMAKERTERM in manpage
9 years ago
George Vlahavas
6aa7487bab
Add TESTS file
Add a TESTS file that explains how icon related tests will FAIL in any
other system but mine.
9 years ago
George Vlahavas
4df9fc00f2
Hardcode xterm as the default terminal for tests
Since the original menus were created with xterm set as the default
terminal emulator, make sure it is also used for testing as well.
9 years ago
George Vlahavas
7034fa1f6c
Use XDGMENUMAKERTERM var to override terminal app
Check if an XDGMENUMAKERTERM environment variable is set. If it is, set
the default terminal emulator to it. This overrides any other setting.
9 years ago
George Vlahavas
ccffdbd6db
Fix typo
9 years ago