summaryrefslogtreecommitdiff
path: root/wm.scm
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2022-12-08 15:57:36 +0100
committerSamuel Fadel <samuel@nihil.ws>2022-12-08 15:57:36 +0100
commit6bdaee03c0fd3caac390dffdaaf52d54653b1430 (patch)
treed6e6d725f0c46aa4acf89ceb2bc1cf3f714d9760 /wm.scm
parenta6051a3146da4d99788905c0805890d78ab004da (diff)
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
Diffstat (limited to 'wm.scm')
-rw-r--r--wm.scm8
1 files changed, 8 insertions, 0 deletions
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" '()))