commit 8a0db67b67da312326c31633d86a36ff43a414d1
parent 963fa54ec52697153efc818eaff330321084b050
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Sat, 12 Oct 2019 11:07:11 +0300
docs: update
Diffstat:
2 files changed, 26 insertions(+), 19 deletions(-)
diff --git a/README.md b/README.md
@@ -42,15 +42,17 @@ An itsy bitsy floating window manager with roots in `catwm`.
**Programs**
-| combo | action | program |
-| ----------------------- | ---------------- | -------------- |
-| `MOD4` + `Return` | terminal | `st` |
-| `MOD4` + `d` | dmenu | `dmenu_run` |
-| `MOD4` + `p` | scrot | `scr` |
-| `MOD4` + `w` | wallpaper cycler | `bud` |
-| `XF86_AudioLowerVolume` | volume down | `amixer` |
-| `XF86_AudioRaiseVolume` | volume up | `amixer` |
-| `XF86XK_AudioMute` | volume toggle | `amixer` |
+| combo | action | program |
+| ------------------------ | ---------------- | -------------- |
+| `MOD4` + `Return` | terminal | `st` |
+| `MOD4` + `d` | dmenu | `dmenu_run` |
+| `MOD4` + `p` | scrot | `scr` |
+| `MOD4` + `w` | wallpaper cycler | `bud` |
+| `XF86_AudioLowerVolume` | volume down | `amixer` |
+| `XF86_AudioRaiseVolume` | volume up | `amixer` |
+| `XF86_AudioMute` | volume toggle | `amixer` |
+| `XF86_MonBrightnessUp` | brightness up | `bri` |
+| `XF86_MonBrightnessDown` | brightness down | `bri` |
## Dependencies
diff --git a/config.h b/config.h
@@ -13,9 +13,11 @@
#define MOD Mod4Mask
-const char* menu[] = {"dmenu_run", NULL};
-const char* term[] = {"st", NULL};
-const char* scrot[] = {"scr", NULL};
+const char* menu[] = {"dmenu_run", NULL};
+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* volmute[] = {"amixer", "sset", "Master", "toggle", NULL};
@@ -31,13 +33,16 @@ static struct key keys[] = {
{MOD, XK_f, win_fs, {NULL}},
{Mod1Mask, XK_Tab, win_next, {NULL}},
- {MOD, XK_d, run, {.com = menu}},
- {MOD, XK_w, run, {.com = colors}},
- {MOD, XK_p, run, {.com = scrot}},
- {MOD, XK_Return, run, {.com = term}},
- {0, XF86XK_AudioLowerVolume, run, {.com = voldown}},
- {0, XF86XK_AudioRaiseVolume, run, {.com = volup}},
- {0, XF86XK_AudioMute, run, {.com = volmute}},
+ {MOD, XK_d, run, {.com = menu}},
+ {MOD, XK_w, run, {.com = colors}},
+ {MOD, XK_p, run, {.com = scrot}},
+ {MOD, XK_Return, run, {.com = term}},
+
+ {0, XF86XK_AudioLowerVolume, run, {.com = voldown}},
+ {0, XF86XK_AudioRaiseVolume, run, {.com = volup}},
+ {0, XF86XK_AudioMute, run, {.com = volmute}},
+ {0, XF86XK_MonBrightnessUp, run, {.com = briup}},
+ {0, XF86XK_MonBrightnessDown, run, {.com = bridown}},
DESKTOP( XK_0, 0)
DESKTOP( XK_1, 1)