- /* modifier key function argument */
- { MODKEY, XK_p, spawn, {.v = dmenucmd } },
- { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
- { MODKEY, XK_b, togglebar, {0} },
- { MODKEY, XK_j, focusstack, {.i = +1 } },
- { MODKEY, XK_k, focusstack, {.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|ShiftMask, XK_c, 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 } },
- 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 */
+ {0, XK_Scroll_Lock, spawn, ARGS("pulseaudio-set-sink", "toggle")},
+ {ControlMask, XK_Scroll_Lock, spawn, ARGS("pulseaudio-set-sink", "headphones")},
+ {ShiftMask, XK_Scroll_Lock, spawn, ARGS("pulseaudio-set-sink", "speakers")},
+ {0, XK_Pause, spawn, ARGS("black", "0.2")},
+ {0, XK_F3, spawn, ARGS("vol", "down")},
+ {0, XF86XK_AudioLowerVolume, spawn, ARGS("vol", "down")},
+ {0, XK_F4, spawn, ARGS("vol", "up")},
+ {0, XF86XK_AudioRaiseVolume, spawn, ARGS("vol", "up")},
+ {0, XF86XK_AudioPrev, spawn, ARGS("sayremote", "back")},
+ {0, XK_F5, spawn, ARGS("sayremote", "back")},
+ {MODKEY, XK_F5, spawn, ARGS("sayremote", "slower")},
+ {0, XF86XK_AudioNext, spawn, ARGS("sayremote", "forward")},
+ {0, XK_F6, spawn, ARGS("sayremote", "forward")},
+ {MODKEY, XK_F6, spawn, ARGS("sayremote", "faster")},
+ {0, XK_F7, spawn, ARGS("sayremote", "pause")},
+ {0, XF86XK_AudioPause, spawn, ARGS("sayremote", "pause")},
+ {0, XF86XK_AudioStop, spawn, ARGS("sayremote", "stop")},
+ {0, XK_F8, spawn, ARGS("sayremote", "stop")},
+ {MODKEY, XK_F8, spawn, ARGS("sayremote", "reset")},
+ {0, XK_F10, spawn, ARGS("sayclip")},
+ {ControlMask, XK_Return, spawn, ARGS("default-browser-clipboard")},
+ {MODKEY, XK_Return, spawn, ARGS("default-browser-debian-bug")},
+ {0, XK_F1, kbspawn, ARGS("run-dialog")},
+ {MODKEY, XK_l, view, {.ui = 1 << 1}},
+ {MODKEY, XK_l, focusstack, {.i = 0}},
+ {MODKEY, XK_l, kbspawn, ARGS("url-dialog")},
+ {0, XK_F2, kbspawn, {.v = termcmd}},
+ {MODKEY, XK_b, togglebar, {0}},
+ {MODKEY, XK_n, focusstack, {.i = +1}},
+ {MODKEY, XK_h, focusstack, {.i = 0}},
+ {MODKEY, XK_c, focusstack, {.i = -1}},
+// {MODKEY, XK_i, incnmaster, {.i = +1}},
+// {MODKEY, XK_d, incnmaster, {.i = -1}},
+ {MODKEY|ControlMask, XK_h, setmfact, {.f = -0.05}},
+ {MODKEY|ControlMask, XK_n, setmfact, {.f = +0.05}},
+ {MODKEY|ShiftMask, XK_h, zoom, {0}},
+ {MODKEY, XK_Tab, view, {0}},
+ {MODKEY, XK_w, killclient, {0}},
+ {MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[0]}},
+ {MODKEY, XK_f, 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|ShiftMask, XK_q, quit, {0}},
+ TAGKEYS( XK_grave, 0),
+ TAGKEYS( XK_1, 1),
+ TAGKEYS( XK_2, 2),
+ TAGKEYS( XK_3, 3),
+ TAGKEYS( XK_4, 4),
+ TAGKEYS( XK_5, 5),
+ TAGKEYS( XK_6, 6),
+ TAGKEYS( XK_7, 7),
+ TAGKEYS( XK_8, 8),
+ TAGKEYS( XK_9, 9),
+ TAGKEYS( XK_0, 10),
+ TAGKEYS( XK_bracketleft, 11),
+ TAGKEYS( XK_bracketright, 12),