DTBMFILE(4)
πΈ dtbmfile β the special file page for X11 bitmap desktop icons πΈ
okay so this is the dtbmfile(special file) manual page, and itβs literally all about format of X11 bitmap format desktop icon files β bestie, we are in icon-file territory now. π
π NAME π
format of X11 bitmap format desktop icon files β thatβs the assignment, and yes, thatβs the whole name. Icon file format main character energy. β¨
β¨ SYNOPSIS β¨
the shape of this file is giving C preprocessor defines plus a byte array, and it looks exactly like this:
#define name_width width
#define name_height height
#define name_x_hot x
#define name_y_hot y
static unsigned char name_bits[] = {0xN,...}
π¦ DESCRIPTION π¦
X Bitmap (XBM) files are used for monochrome icons in the CDE. XBM icons specify background and foreground color only β thatβs the whole palette situation. They would be black and white on a black and white display. On a color display, they could be any two colors. And no, XBM files are not used exclusively for black and white icons, okay?
The CDE icon editor component can be used to create or modify a bitmap icon. A bitmap file is an ASCII file, but because the data is simply a binary representation of the icon, it is not realistic to edit this file by hand. X Bitmap files can be included directly in C source code, so the file data is in the form of a bitmap structure variable. The X version 11 bitmap file format is the only icon file format officially supported as part of the X Window System at this time. Periodt. π
π RETURN VALUE π
None. Thatβs it β no return value, no drama, just None. π
π EXAMPLES π
The following is an example of a bitmap file named julie.bm:
#define julie.bm_width 18
#define julie.bm_height 22
#define julie.bm_x_hot 0
#define julie.bm_y_hot 0
static char julie.bm_bits[] = {
0xff, 0xff, 0x03, 0x81, 0xc3, 0x02,
0xf1, 0x98, 0x03, 0x19, 0x18, 0x02,
0x05, 0x59, 0x02, 0x07, 0xdb, 0x02,
0x01, 0xdb, 0x02, 0x01, 0xdb, 0x02,
0x01, 0xdb, 0x02, 0x01, 0xdf, 0x02,
0x01, 0xff, 0x02, 0x01, 0xfe, 0x02,
0x01, 0x7c, 0x02, 0x01, 0x38, 0x02,
0x01, 0x38, 0x02, 0x01, 0x38, 0x02,
0x01, 0x38, 0x02, 0x01, 0x3f, 0x02,
0xe1, 0x33, 0x02, 0xb9, 0x31, 0x02,
0xcf, 0x1c, 0x02, 0xff, 0xff, 0x03};
π APPLICATION USAGE π
For a description of icon location, usage, design, etc. within the CDE, refer to dticonfile(4) β go read that one too, bestie. π«Ά
π SEE ALSO π
X11WindowSystemdocumentationdtpmfile(4)dticonfile(4)dticon(1)
and thatβs the whole page, bestie β footer energy is just dtbmfile(special file), so no extra source/version/date tea to spill πβ¨
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms