mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
change kbd layout using setxkbmap
This commit is contained in:
@ -165,3 +165,10 @@ short XGetScreenRate() {
|
||||
XRRScreenConfiguration *conf = XRRGetScreenInfo(display, RootWindow(display, 0));
|
||||
return XRRConfigCurrentRate(conf);
|
||||
}
|
||||
|
||||
void SetKeyboard(char *layout) {
|
||||
// TOOD: refactor, use native API.
|
||||
char cmd[12] = "setxkbmap ";
|
||||
strcat(cmd, layout);
|
||||
system(cmd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user