From e31b96f088d9dd669eee9768050986f893e0c571 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 12 Oct 2019 20:44:49 +0300 Subject: [PATCH] docs: update --- Makefile | 2 +- config.h | 15 ++------------- sowm.c | 3 +-- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index d09b051..2420660 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS+= -Wall +CFLAGS+= -std=c99 -Wall -Wno-deprecated-declarations -pedantic LDADD+= -lX11 LDFLAGS= PREFIX?= /usr diff --git a/config.h b/config.h index a3ca5ae..ed2f57c 100644 --- a/config.h +++ b/config.h @@ -1,13 +1,3 @@ - /* - * /\___/\ - * ( o o ) Made by cat... - * ( =^= ) - * ( ) ... for cat! - * ( ) - * ( ))))))________________ - * __________________ - */ - #ifndef CONFIG_H #define CONFIG_H @@ -18,8 +8,8 @@ const char* term[] = {"st", NULL}; const char* scrot[] = {"scr", NULL}; const char* briup[] = {"bri", "10", "+", NULL}; const char* bridown[] = {"bri", "10", "-", NULL}; -const char* voldown[] = {"amixer", "sset", "Master", "5%-", NULL}; -const char* volup[] = {"amixer", "sset", "Master", "5%+", NULL}; +const char* voldown[] = {"amixer", "sset", "Master", "5%-", NULL}; +const char* volup[] = {"amixer", "sset", "Master", "5%+", NULL}; const char* volmute[] = {"amixer", "sset", "Master", "toggle", NULL}; const char* colors[] = {"bud", "/home/goldie/Pictures/Wallpapers", NULL}; @@ -55,4 +45,3 @@ static struct key keys[] = { }; #endif - diff --git a/sowm.c b/sowm.c index afe3bfe..3c20651 100644 --- a/sowm.c +++ b/sowm.c @@ -4,7 +4,6 @@ #include #include -#include #include #include #include @@ -250,7 +249,7 @@ void key_grab() { void key_press(XEvent *e) { XKeyEvent ke = e->xkey; - KeySym keysym = XkbKeycodeToKeysym(dis,ke.keycode,0,0); + KeySym keysym = XKeycodeToKeysym(dis,ke.keycode,0); for(int i=0; i < sizeof(keys)/sizeof(*keys); ++i) { if (keys[i].keysym == keysym && keys[i].mod == ke.state)