CDE: Difference between revisions
imported>User No edit summary |
imported>User No edit summary |
||
Line 67: | Line 67: | ||
== Creating an own program icon == | == Creating an own program icon == | ||
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 script to convert from png icons | |||
{{file|~/.dt/convert.sh|bash|<nowiki> | |||
#!/usr/bin/env nix-shell | |||
#!nix-shell -i bash -p imagemagick | |||
file=`basename ${1%.*}` | |||
convert $1 -resize 48x48 ~/.dt/icons/$file.l.pm | |||
convert $1 -resize 32x32 ~/.dt/icons/$file.m.pm | |||
convert $1 -resize 24x24 ~/.dt/icons/$file.s.pm | |||
convert $1 -resize 16x16 ~/.dt/icons/$file.t.pm | |||
</nowiki>}} | |||
For example | |||
~/.dt/convert.sh /run/current-system/sw/share/icons/hicolor/512x512/apps/qutebrowser.png | |||
== Setting icons on minimized programs == | == Setting icons on minimized programs == |