Skip to content

prurigro/gnome-catgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gnome-catgen

A Gnome 3 Folder Category Configuration Tool

Installation

The package can be installed by running the command: make install, and can later be removed with: make uninstall.

The following environment variables can be set to configure the location of various things:

  • $DESTDIR: The base under root (default: /)
  • $PREFIX: The prefix that will be used under other folders (default: /usr)
  • $MANDIR: The folder (starting at $PREFIX) to install the man page.
  • $VIMDIR: The folder (starting at $PREFIX) to install the Vim filetype config.

Configuration

Interactive Category Selection

While configuration is done primarily by hand, it's possible to iterate through the list of applications that aren't already in a folder category and select a category for each by running: gnome-catgen -c

In this mode you can do the following:

  • Enter the name of a folder category to add the current application.
  • Enter a blank line to skip the current application.
  • Press ctrl-c to quit at any time.

Once all the applications without a folder have been cycled through, gnome-catgen will offer to apply the updated configuration. Choosing not to apply the changes at this time will simply exit the program, and the changes can then be applied later by running: gnome-catgen -s

Configure Category Files

You can manually configure a given folder category by running: gnome-catgen -e "Category Name"

This will create (if it doesn't already exist) and open (with the editor set by $EDITOR, or vi if nothing is set) the .category file in ~/.local/share/applications-categories for the provided category name. In this file, you can now add one application's '.desktop' filename per line. After all the desired applications have been added, you can then run: gnome-catgen -s to apply your configuration.

Notes on Category Files

  • Blank lines are ignored.
  • Lines where the first non-whitespace character is a # considered commented and are ignored.

Commands

Read

  • gnome-catgen -f | --get-folders: list current folders
  • gnome-catgen -a | --get-apps: list current apps in each folder category
  • gnome-catgen -r | --get-remaining: list apps without a folder category

Edit

  • gnome-catgen -c | --choose-remaining: assign folder categories to unassigned apps
  • gnome-catgen -e [CAT] | --edit-category [CAT]: edit the .category file of the folder category for [CAT].

Write

  • gnome-catgen -s | --set: apply current folder configuration
  • gnome-catgen -x | --clear: remove applied folder configuration

Information

  • gnome-catgen -d | --desktop-file-check: check that configured desktop exist and are enabled
  • gnome-catgen -h | --help: display this help

General Notes

  • If there are still uncategorized apps and gnome-catgen -c doesn't list them, there may be something unexpected in ~/.local/share/applications-categories, and an easy fix is to delete/backup and start again.
  • It may be necessary to delete/backup ~/.local/share/applications-categories when upgrading from Gnome 3.12 to 3.14 for reasons related to the note above.

CREDITS

Written by Kevin MacMartin:

Contributors

LICENSE

Released under the MIT license.

About

A Gnome 3 application-overview folder configuration tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published