mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add keysymdef generator.
This commit is contained in:
parent
c129c99a36
commit
5c05d1009b
2498
internal/desktop/xorg/keysymdef.go
Normal file
2498
internal/desktop/xorg/keysymdef.go
Normal file
File diff suppressed because it is too large
Load Diff
6
internal/desktop/xorg/keysymdef.sh
Executable file
6
internal/desktop/xorg/keysymdef.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
wget https://cgit.freedesktop.org/xorg/proto/x11proto/plain/keysymdef.h
|
||||||
|
sed -i -E 's/\#define (XK_[a-zA-Z_0-9]+\s+)(0x[0-9a-f]+)/const \1 = \2/g' keysymdef.h
|
||||||
|
sed -i -E 's/^\#/\/\//g' keysymdef.h
|
||||||
|
echo "package xorg" | cat - keysymdef.h > keysymdef.go && rm keysymdef.h
|
@ -19,6 +19,8 @@ import (
|
|||||||
"demodesk/neko/internal/types"
|
"demodesk/neko/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//go:generate ./keysymdef.sh
|
||||||
|
|
||||||
type KbdMod uint8
|
type KbdMod uint8
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
Reference in New Issue
Block a user