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