xref: /freebsd/contrib/file/magic/Magdir/xwindows (revision e949ce9dc0e6fff26e83904f1008b76d36ba0a37)
1
2#------------------------------------------------------------------------------
3# $File: xwindows,v 1.14 2025/04/06 19:18:03 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
33>4	lelong		<64		Xcursor data
34!:mime	image/x-xcursor
35>>10	leshort		x		version %d
36>>>8	leshort		x		\b.%d
37
38# X bitmap https://en.wikipedia.org/wiki/X_BitMap
390	search/2048	#define\040
40>&0	regex		[a-zA-Z0-9]+_width\040	xbm image
41>>&0	regex		[0-9]+			(%sx
42>>>&0	string		\n#define\040
43>>>>&0	regex		[a-zA-Z0-9]+_height\040
44>>>>>&0	regex		[0-9]+			\b%s)
45