Jump to content

CDE: Difference between revisions

185 bytes added ,  17 May 2020
no edit summary
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. Save icons under ~/.dt/icons
Use Desktop_Apps/Create Action tool. Save actions under ~/.dt/appmanager


The icons must be in XPM or XBM format and they need to be in three sizes: 48x48, 32x32 and 16x16. Create three separate icons as each will be "consumed" when you use them in Create Action. I used The Gimp to create the three icons I needed. Examples are under ${pkgs.cdesktopenv}/opt/dt/appconfig/icons/C
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 ==
Anonymous user