mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-07-26 09:41:59 -07:00
docs: update
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,4 +1,4 @@
|
|||||||
CFLAGS+= -Wall
|
CFLAGS+= -std=c99 -Wall -Wno-deprecated-declarations -pedantic
|
||||||
LDADD+= -lX11
|
LDADD+= -lX11
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
PREFIX?= /usr
|
PREFIX?= /usr
|
||||||
|
15
config.h
15
config.h
@@ -1,13 +1,3 @@
|
|||||||
/*
|
|
||||||
* /\___/\
|
|
||||||
* ( o o ) Made by cat...
|
|
||||||
* ( =^= )
|
|
||||||
* ( ) ... for cat!
|
|
||||||
* ( )
|
|
||||||
* ( ))))))________________
|
|
||||||
* __________________
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CONFIG_H
|
#ifndef CONFIG_H
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
@@ -18,8 +8,8 @@ const char* term[] = {"st", NULL};
|
|||||||
const char* scrot[] = {"scr", NULL};
|
const char* scrot[] = {"scr", NULL};
|
||||||
const char* briup[] = {"bri", "10", "+", NULL};
|
const char* briup[] = {"bri", "10", "+", NULL};
|
||||||
const char* bridown[] = {"bri", "10", "-", NULL};
|
const char* bridown[] = {"bri", "10", "-", NULL};
|
||||||
const char* voldown[] = {"amixer", "sset", "Master", "5%-", NULL};
|
const char* voldown[] = {"amixer", "sset", "Master", "5%-", NULL};
|
||||||
const char* volup[] = {"amixer", "sset", "Master", "5%+", NULL};
|
const char* volup[] = {"amixer", "sset", "Master", "5%+", NULL};
|
||||||
const char* volmute[] = {"amixer", "sset", "Master", "toggle", NULL};
|
const char* volmute[] = {"amixer", "sset", "Master", "toggle", NULL};
|
||||||
const char* colors[] = {"bud", "/home/goldie/Pictures/Wallpapers", NULL};
|
const char* colors[] = {"bud", "/home/goldie/Pictures/Wallpapers", NULL};
|
||||||
|
|
||||||
@@ -55,4 +45,3 @@ static struct key keys[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
3
sowm.c
3
sowm.c
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/XF86keysym.h>
|
#include <X11/XF86keysym.h>
|
||||||
#include <X11/XKBlib.h>
|
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@@ -250,7 +249,7 @@ void key_grab() {
|
|||||||
|
|
||||||
void key_press(XEvent *e) {
|
void key_press(XEvent *e) {
|
||||||
XKeyEvent ke = e->xkey;
|
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) {
|
for(int i=0; i < sizeof(keys)/sizeof(*keys); ++i) {
|
||||||
if (keys[i].keysym == keysym && keys[i].mod == ke.state)
|
if (keys[i].keysym == keysym && keys[i].mod == ke.state)
|
||||||
|
Reference in New Issue
Block a user