From 6bdaee03c0fd3caac390dffdaaf52d54653b1430 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 8 Dec 2022 15:57:36 +0100 Subject: More features implemented. * .manifest.scm: Added libx11 * Makefile: Add x11 to pkg-config calls * main.scm: Add more config, including some keybinding stuff * wm.scm: Add key-from-str function * schewm.c: keysym_from_str() and others implemented/refactored --- wm.scm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wm.scm') diff --git a/wm.scm b/wm.scm index 85a23f4..3241d94 100644 --- a/wm.scm +++ b/wm.scm @@ -16,6 +16,14 @@ (dynamic-func name libschewm) args)) +(define c/key-from-str + (schewm-func uint32 + "keysym_from_str" + (list '*))) + +(define (key-from-str s) + (c/key-from-str (string->pointer s))) + (define c/wm-init (schewm-func int "wm_init" '())) -- cgit v1.2.3