summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.suckless/dwm/config.h94
-rwxr-xr-x.suckless/dwm/dwmbin67328 -> 68176 bytes
-rw-r--r--.suckless/dwm/dwm.obin58424 -> 61240 bytes
3 files changed, 53 insertions, 41 deletions
diff --git a/.suckless/dwm/config.h b/.suckless/dwm/config.h
index b3ea0c7..f28f472 100644
--- a/.suckless/dwm/config.h
+++ b/.suckless/dwm/config.h
@@ -12,7 +12,7 @@ static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
-static const char col_cyan[] = "#005577";
+static const char col_cyan[] = "#00A86B";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
@@ -20,7 +20,7 @@ static const char *colors[][3] = {
};
/* tagging */
-static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
+static const char *tags[] = { "一", "二", "三", "四", "五", "六", "七", "八", "九" };
static const Rule rules[] = {
/* xprop(1):
@@ -57,51 +57,63 @@ static const Layout layouts[] = {
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
#include "shiftview.c"
+#include <X11/XF86keysym.h>
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL };
static const Key keys[] = {
- /* modifier key function argument */
- { MODKEY, XK_p, spawn, {.v = dmenucmd } },
- { MODKEY, XK_Return, spawn, {.v = termcmd } },
- { MODKEY, XK_b, togglebar, {0} },
- { MODKEY, XK_j, focusstack, {.i = +1 } },
- { MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY, XK_i, incnmaster, {.i = +1 } },
- { MODKEY, XK_d, incnmaster, {.i = -1 } },
- { MODKEY, XK_h, setmfact, {.f = -0.05} },
- { MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY, XK_Return, zoom, {0} },
- { MODKEY, XK_Tab, view, {0} },
- { MODKEY, XK_q, killclient, {0} },
- { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
- { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
- { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
- { MODKEY, XK_space, setlayout, {0} },
- { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
- { MODKEY, XK_0, view, {.ui = ~0 } },
- { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
- { MODKEY, XK_comma, focusmon, {.i = -1 } },
- { MODKEY, XK_period, focusmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
- { MODKEY, XK_Right, shiftview, {.i = +1 } },
- { MODKEY, XK_Left, shiftview, {.i = -1 } },
- { MODKEY, XK_minus, setgaps, {.i = -1 } },
- { MODKEY, XK_equal, setgaps, {.i = +1 } },
- { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
- TAGKEYS( XK_1, 0)
- TAGKEYS( XK_2, 1)
- TAGKEYS( XK_3, 2)
- TAGKEYS( XK_4, 3)
- TAGKEYS( XK_5, 4)
- TAGKEYS( XK_6, 5)
- TAGKEYS( XK_7, 6)
- TAGKEYS( XK_8, 7)
- TAGKEYS( XK_9, 8)
- { MODKEY|ShiftMask, XK_q, quit, {0} },
+/* modifier key function argument */
+{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
+{ MODKEY, XK_Return, spawn, {.v = termcmd } },
+{ MODKEY, XK_b, togglebar, {0} },
+{ MODKEY, XK_j, focusstack, {.i = +1 } },
+{ MODKEY, XK_k, focusstack, {.i = -1 } },
+{ MODKEY, XK_i, incnmaster, {.i = +1 } },
+{ MODKEY, XK_d, incnmaster, {.i = -1 } },
+{ MODKEY, XK_h, setmfact, {.f = -0.05} },
+{ MODKEY, XK_l, setmfact, {.f = +0.05} },
+{ MODKEY, XK_Return, zoom, {0} },
+{ MODKEY, XK_Tab, view, {0} },
+{ MODKEY, XK_q, killclient, {0} },
+{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
+{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
+{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
+{ MODKEY, XK_space, setlayout, {0} },
+{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
+{ MODKEY, XK_0, view, {.ui = ~0 } },
+{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
+{ MODKEY, XK_comma, focusmon, {.i = -1 } },
+{ MODKEY, XK_period, focusmon, {.i = +1 } },
+{ 0, XF86XK_AudioMute, spawn, SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44 $(pidof dwmblocks)") },
+{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%- && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%+; kill -44 $(pidof dwmblocks)") },
+{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%+ && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%-; kill -44 $(pidof dwmblocks)") },
+{ 0, XF86XK_AudioPrev, spawn, {.v = (const char*[]){ "mpc", "prev", NULL } } },
+{ 0, XF86XK_AudioNext, spawn, {.v = (const char*[]){ "mpc", "next", NULL } } },
+{ 0, XF86XK_AudioPause, spawn, {.v = (const char*[]){ "mpc", "pause", NULL } } },
+{ 0, XF86XK_AudioPlay, spawn, {.v = (const char*[]){ "mpc", "play", NULL } } },
+{ 0, XF86XK_AudioStop, spawn, {.v = (const char*[]){ "mpc", "stop", NULL } } },
+{ 0, XF86XK_AudioRewind, spawn, {.v = (const char*[]){ "mpc", "seek", "-10", NULL } } },
+{ 0, XF86XK_AudioForward, spawn, {.v = (const char*[]){ "mpc", "seek", "+10", NULL } } },
+{ 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") },
+{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
+{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
+{ MODKEY, XK_Right, shiftview, {.i = +1 } },
+{ MODKEY, XK_Left, shiftview, {.i = -1 } },
+{ MODKEY, XK_minus, setgaps, {.i = -1 } },
+{ MODKEY, XK_equal, setgaps, {.i = +1 } },
+{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
+{ MODKEY|ShiftMask, XK_q, quit, {0} },
+ TAGKEYS( XK_1, 0)
+ TAGKEYS( XK_2, 1)
+ TAGKEYS( XK_3, 2)
+ TAGKEYS( XK_4, 3)
+ TAGKEYS( XK_5, 4)
+ TAGKEYS( XK_6, 5)
+ TAGKEYS( XK_7, 6)
+ TAGKEYS( XK_8, 7)
+ TAGKEYS( XK_9, 8)
};
/* button definitions */
diff --git a/.suckless/dwm/dwm b/.suckless/dwm/dwm
index 582d273..8aa8556 100755
--- a/.suckless/dwm/dwm
+++ b/.suckless/dwm/dwm
Binary files differ
diff --git a/.suckless/dwm/dwm.o b/.suckless/dwm/dwm.o
index 325b4e4..74a8293 100644
--- a/.suckless/dwm/dwm.o
+++ b/.suckless/dwm/dwm.o
Binary files differ