sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

netwmicon.sh (286B)


      1 #!/bin/sh
      2 
      3 # Dependencies: imagemagick, inkscape
      4 # Bug: Seems to distort the icon. Probably caused by hexdump.
      5 echo 'unsigned long icon[] = {'
      6 identify -format '%w, %h,\n' "$1" | sed 's/^/	/'
      7 convert -background none "$1" RGBA: | hexdump -ve '"0x%08x, "' | fmt | sed 's/^/	/'
      8 echo "};"