commit e31b96f088d9dd669eee9768050986f893e0c571
parent bdc6cf84c8164ba2cd34925771ae80a1da73da59
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Sat, 12 Oct 2019 20:44:49 +0300
docs: update
Diffstat:
3 files changed, 4 insertions(+), 16 deletions(-)
diff --git 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
@@ -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
@@ -4,7 +4,6 @@
#include <X11/Xlib.h>
#include <X11/XF86keysym.h>
-#include <X11/XKBlib.h>
#include <X11/keysym.h>
#include <stdlib.h>
#include <signal.h>
@@ -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)