xwindows 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #------------------------------------------------------------------------------
  2. # $File: xwindows,v 1.13 2022/03/24 15:48:58 christos Exp $
  3. # xwindows: file(1) magic for various X/Window system file formats.
  4. # Compiled X Keymap
  5. # XKM (compiled X keymap) files (including version and byte ordering)
  6. 1 string mkx Compiled XKB Keymap: lsb,
  7. >0 byte >0 version %d
  8. >0 byte =0 obsolete
  9. 0 string xkm Compiled XKB Keymap: msb,
  10. >3 byte >0 version %d
  11. >3 byte =0 obsolete
  12. # xfsdump archive
  13. 0 string xFSdump0 xfsdump archive
  14. >8 belong x (version %d)
  15. # Jaleo XFS files
  16. 0 long 395726 Jaleo XFS file
  17. >4 long x - version %d
  18. >8 long x - [%d -
  19. >20 long x \b%dx
  20. >24 long x \b%dx
  21. >28 long 1008 \bYUV422]
  22. >28 long 1000 \bRGB24]
  23. # Xcursor data
  24. # X11 mouse cursor format defined in libXcursor, see
  25. # https://www.x.org/archive/X11R6.8.1/doc/Xcursor.3.html
  26. # https://cgit.freedesktop.org/xorg/lib/libXcursor/tree/include/X11/Xcursor/Xcursor.h
  27. 0 string Xcur Xcursor data
  28. !:mime image/x-xcursor
  29. >10 leshort x version %d
  30. >>8 leshort x \b.%d
  31. # X bitmap https://en.wikipedia.org/wiki/X_BitMap
  32. 0 search/2048 #define\040
  33. >&0 regex [a-zA-Z0-9]+_width\040 xbm image
  34. >>&0 regex [0-9]+ (%sx
  35. >>>&0 string \n#define\040
  36. >>>>&0 regex [a-zA-Z0-9]+_height\040
  37. >>>>>&0 regex [0-9]+ \b%s)