HARDCODE-TRAY(1)

NAME
hardcode-tray - Fixes hardcoded tray icons

SYNOPSIS
hardcode-tray --apply [--change-color ``#COLOR #NEWCOLOR'' ...] [--conversion-tool TOOL] [--theme THEME] [--light-theme THEME --dark-theme THEME] [--only APP, ... [--path PATH]] [--size SIZE]
hardcode-tray --revert
hardcode-tray --version
hardcode-tray --clear-cache

DESCRIPTION
hardcode-tray is a python utility that fetches theme icons for application tray icons and replace the hardcoded onces, usually packaged with Qt or Electron applications. The script will automatically detect your default theme, the correct icon size, the hard-coded applications, the correct icons for each indicator and fix them. All that with the possibility to revert to the original icons.

OPTIONS

--apply
    Applies the selected THEME onto tray icons, instead of launching in interactive mode.

--revert
    Reverts the original icons from backup instead of launching in interactive mode.

--change-color ''#COLOR #NEWCOLOR'' ...
    In THEME icon, change #COLOR to #NEWCOLOR.

--clear-cache
    Clears the backup cache folder.

--conversion-tool TOOL
    By default, the conversion tool is detected form installed applications. The user can choose to override htis by providing a tool, where TOOL is one of {Inkscape, CairoSVG, RSVGConvert, ImageMagick, SVGExport}.

--dark-theme THEME --light-theme THEME
    Useful for applications with different sets of icons for light and dark themes. THEME is respectively set as the dark and light theme. Supercedes --theme.

--only APP, ...
    Choose to only apply given applications instead of all of them.

--path PATH
    Give an alternate application path. Use with --only.

--size SIZE
    Force hardcode-tray to use a certain icon size, where SIZE is one of {16,22,24}.

--version
    Prints the version of hardcode-tray

FILES
hardcode-tray uses a JSON configuration file at ~/.config/hardcode-tray.json, is it exists. The file supports the following options:

blacklist
    List applications whose tray icons will never be patched.

conversion_tool
    Default tool to be used. Supercedes autodetection.

icons
    Object containing the theme and size of the icon to be used.

backup_ignore
    Boolean setting wether to ignore backing up the original icon.

scaling_factor
    Widgets scaling factor, autodetected in GNOME, KDE and Cinnamon.