Skip to content

Instantly share code, notes, and snippets.

@dcat
Last active March 25, 2017 00:35
Show Gist options
  • Save dcat/dd80fe04383ce0954f6c to your computer and use it in GitHub Desktop.
Save dcat/dd80fe04383ce0954f6c to your computer and use it in GitHub Desktop.
Aqua cursor port for X11
#define cursor_mask_width 11
#define cursor_mask_height 17
static unsigned char cursor_mask_bits[] = {
0x01, 0x00, 0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3f, 0x00,
0x7f, 0x00, 0xff, 0x00, 0xff, 0x01, 0xff, 0x03, 0xff, 0x07, 0x7f, 0x00,
0xf7, 0x00, 0xf3, 0x00, 0xe1, 0x01, 0xe0, 0x01, 0xc0, 0x00 };
#define cursor_width 11
#define cursor_height 17
#define cursor_x_hot 0
#define cursor_y_hot 0
static unsigned char cursor_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x0e, 0x00, 0x1e, 0x00,
0x3e, 0x00, 0x7e, 0x00, 0xfe, 0x00, 0xfe, 0x01, 0x3e, 0x00, 0x36, 0x00,
0x62, 0x00, 0x60, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0x00, 0x00 };
@dcat
Copy link
Author

dcat commented Oct 29, 2014

xsetroot -cursor cursor.xbm cursor-mask.xbm

add -fg and -bg flags as you please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment