docs: update

This commit is contained in:
Dylan Araps
2019-10-12 20:44:49 +03:00
parent bdc6cf84c8
commit e31b96f088
3 changed files with 4 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
CFLAGS+= -Wall
CFLAGS+= -std=c99 -Wall -Wno-deprecated-declarations -pedantic
LDADD+= -lX11
LDFLAGS=
PREFIX?= /usr

View File

@@ -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

3
sowm.c
View File

@@ -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)