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