This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // based on code of CaitCatDev : https://gist.github.com/CaitCatDev/93a53cd8b452d6c6bfe9bbb2c7e8b606 | |
| // To actually works you need to give access to all host in x11 using 'host +' command because no authentication is dont in code otherwise it will panic | |
| // To run the code just use 'zig run main.zig' it will open a window with grey background | |
| // Keymaps | |
| const X_KEYCODE_Q = 24; | |
| const X_EV_KEY_PRESS = 2; | |
| // X protocol type defines | |
| const CARD8 = u8; |