CDE: Difference between revisions
imported>User No edit summary |
imported>User No edit summary |
||
Line 69: | Line 69: | ||
Use Desktop_Apps/Create Action tool. Save actions under ~/.dt/appmanager | Use Desktop_Apps/Create Action tool. Save actions under ~/.dt/appmanager | ||
Icons should be in XPM or XBM format. Use the following | Icons should be in XPM or XBM format. Use the following configuration to convert from png icons | ||
{{file| | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
let | |||
cde-icons = pkgs.writeShellScriptBin "cde-icons" '' | |||
file=`basename ''${1%.*}` | |||
${pkgs.imagemagick}/bin/convert $1 -resize 48x48 ~/.dt/icons/$file.l.pm | |||
${pkgs.imagemagick}/bin/convert $1 -resize 32x32 ~/.dt/icons/$file.m.pm | |||
convert $1 -resize 48x48 ~/.dt/icons/$file.l.pm | ${pkgs.imagemagick}/bin/convert $1 -resize 24x24 ~/.dt/icons/$file.s.pm | ||
convert $1 -resize 32x32 ~/.dt/icons/$file.m.pm | ${pkgs.imagemagick}/bin/convert $1 -resize 16x16 ~/.dt/icons/$file.t.pm | ||
convert $1 -resize 24x24 ~/.dt/icons/$file.s.pm | ''; | ||
convert $1 -resize 16x16 ~/.dt/icons/$file.t.pm | in { | ||
services.xserver.desktopManager.cde.extraPackages = with pkgs; | |||
options.services.xserver.desktopManager.cde.extraPackages.default ++ [ | |||
cde-icons | |||
]; | |||
} | |||
</nowiki>}} | </nowiki>}} | ||
For example | For example | ||
cde-icons /run/current-system/sw/share/icons/hicolor/512x512/apps/qutebrowser.png | |||
== Setting icons on minimized programs == | == Setting icons on minimized programs == |