add layout for american keyboards
This commit is contained in:
parent
2f59721165
commit
dd2339acd1
|
@ -0,0 +1,342 @@
|
||||||
|
/* See LICENSE file for copyright and license details. */
|
||||||
|
|
||||||
|
#define BROWSER "librewolf"
|
||||||
|
#define TERMINAL "kitty"
|
||||||
|
|
||||||
|
/* appearance */
|
||||||
|
static unsigned int borderpx = 2; /* border pixel of windows */
|
||||||
|
static unsigned int snap = 20; /* snap pixel */
|
||||||
|
static unsigned int gappih = 10; /* horiz inner gap between windows */
|
||||||
|
static unsigned int gappiv = 10; /* vert inner gap between windows */
|
||||||
|
static unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
|
||||||
|
static unsigned int gappov = 10; /* vert outer gap between windows and screen edge */
|
||||||
|
static int smartgaps = 0; /* 1 means no outer gap when there is only one window */
|
||||||
|
static int swallowfloating = 0; /* 1 means swallow floating windows by default */
|
||||||
|
static int showbar = 1; /* 0 means no bar */
|
||||||
|
static int topbar = 1; /* 0 means bottom bar */
|
||||||
|
static const char *fonts[] = { "monospace:size=10", "monospace:size=14", "monospace:size=20", "NotoColorEmoji:pixelsize=10:antialias=true:autohint=true" };
|
||||||
|
|
||||||
|
static char color0[] = "#000000";
|
||||||
|
static char color1[] = "#7f0000";
|
||||||
|
static char color2[] = "#007f00";
|
||||||
|
static char color3[] = "#7f7f00";
|
||||||
|
static char color4[] = "#00007f";
|
||||||
|
static char color5[] = "#7f007f";
|
||||||
|
static char color6[] = "#007f7f";
|
||||||
|
static char color7[] = "#cccccc";
|
||||||
|
static char color8[] = "#333333";
|
||||||
|
static char color9[] = "#ff0000";
|
||||||
|
static char color10[] = "#00ff00";
|
||||||
|
static char color11[] = "#ffff00";
|
||||||
|
static char color12[] = "#0000ff";
|
||||||
|
static char color13[] = "#ff00ff";
|
||||||
|
static char color14[] = "#00ffff";
|
||||||
|
static char color15[] = "#ffffff";
|
||||||
|
static char bordernorm[] = "#222222";
|
||||||
|
static char bordersel[] = "#444444";
|
||||||
|
static char *colors[][3] = {
|
||||||
|
/* fg bg border */
|
||||||
|
[SchemeNorm] = { color15, color0, bordernorm },
|
||||||
|
[SchemeSel] = { color15, color4, bordersel },
|
||||||
|
[SchemeStatus] = { color7, color0, "#000000" }, // Statusbar right
|
||||||
|
[SchemeTagsSel] = { color0, color4, "#000000" }, // Tagbar left selected
|
||||||
|
[SchemeTagsNorm] = { color7, color0, "#000000" }, // Tagbar left unselected
|
||||||
|
[SchemeInfoSel] = { color7, color0, "#000000" }, // infobar middle selected
|
||||||
|
[SchemeInfoNorm] = { color7, color0, "#000000" }, // infobar middle unselected
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Colors for SGR escapes */
|
||||||
|
static const char *barcolors[] = {
|
||||||
|
color0,
|
||||||
|
color1,
|
||||||
|
color2,
|
||||||
|
color3,
|
||||||
|
color4,
|
||||||
|
color5,
|
||||||
|
color6,
|
||||||
|
color7,
|
||||||
|
color8,
|
||||||
|
color9,
|
||||||
|
color10,
|
||||||
|
color11,
|
||||||
|
color12,
|
||||||
|
color13,
|
||||||
|
color14,
|
||||||
|
color15,
|
||||||
|
};
|
||||||
|
|
||||||
|
/* tagging */
|
||||||
|
static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||||
|
|
||||||
|
static const Rule rules[] = {
|
||||||
|
/* xprop(1):
|
||||||
|
* WM_CLASS(STRING) = instance, class
|
||||||
|
* WM_NAME(STRING) = title
|
||||||
|
*/
|
||||||
|
/* class instance title scratch key tags mask isfloating isterminal noswallow x, y, w, h floatborderpx monitor */
|
||||||
|
{ "Gimp", NULL, NULL, 0, 0, 1, 0, 0, -1, -1, -1, -1, -1, -1},
|
||||||
|
{ "Qalculate-gtk", NULL, NULL, 'q', 0, 1, 0, 0, .5, .5, 722, 512, -1, -1},
|
||||||
|
{ NULL, "dropterm", NULL, 'd', 0, 1, 0, 0, 0, 0, 1, 1, 0, 1},
|
||||||
|
{ NULL, "splf", NULL, 'l', 0, 1, 0, 0, .5, .5, .5, .5, -1, -1},
|
||||||
|
{ NULL, "sphtop", NULL, 'h', 0, 1, 0, 0, .5, .5, .5, .5, -1, -1},
|
||||||
|
{ NULL, NULL, "Event Tester", 0, 0, 0, 0, 1, -1, -1, -1, -1, -1, -1},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
/* layout(s) */
|
||||||
|
static float mfact = 0.55; /* factor of master area size [0.05..0.95] */
|
||||||
|
static int nmaster = 1; /* number of clients in master area */
|
||||||
|
static int resizehints = 1; /* 1 means respect size hints in tiled resizals */
|
||||||
|
static int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
|
||||||
|
|
||||||
|
#define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */
|
||||||
|
#include "vanitygaps.c"
|
||||||
|
|
||||||
|
static const Layout layouts[] = {
|
||||||
|
/* symbol arrange function */
|
||||||
|
{ "[]=", tile }, /* first entry is default */
|
||||||
|
{ "[M]", monocle },
|
||||||
|
{ "[@]", spiral },
|
||||||
|
{ "[\\]", dwindle },
|
||||||
|
{ "H[]", deck },
|
||||||
|
{ "TTT", bstack },
|
||||||
|
{ "===", bstackhoriz },
|
||||||
|
{ "HHH", grid },
|
||||||
|
{ "###", nrowgrid },
|
||||||
|
{ "---", horizgrid },
|
||||||
|
{ ":::", gaplessgrid },
|
||||||
|
{ "|M|", centeredmaster },
|
||||||
|
{ ">M>", centeredfloatingmaster },
|
||||||
|
{ "><>", NULL }, /* no layout function means floating behavior */
|
||||||
|
{ NULL, NULL },
|
||||||
|
};
|
||||||
|
|
||||||
|
/* key definitions */
|
||||||
|
#define MODKEY Mod4Mask
|
||||||
|
#define TAGKEYS(KEY,TAG) \
|
||||||
|
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
||||||
|
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
||||||
|
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
|
||||||
|
#define STACKKEYS(MOD,ACTION) \
|
||||||
|
{MOD, XK_j, ACTION##stack, {.i = INC(+1)}}, \
|
||||||
|
{MOD, XK_k, ACTION##stack, {.i = INC(-1)}}, \
|
||||||
|
{MOD, XK_v, ACTION##stack, {.i = 0}}, \
|
||||||
|
/*{MOD, XK_grave, ACTION##stack, {.i = PREVSEL}}, \ */
|
||||||
|
/*{MOD, XK_a, ACTION##stack, {.i = 1}}, \ */
|
||||||
|
/*{MOD, XK_z, ACTION##stack, {.i = 2}}, \ */
|
||||||
|
/*{MOD, XK_x, ACTION##stack, {.i = -1}}, */
|
||||||
|
|
||||||
|
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||||
|
#define SHCMD(cmd) { .v = (const char*[]){"/bin/sh", "-c", cmd, NULL} }
|
||||||
|
|
||||||
|
/* commands */
|
||||||
|
static const char *spqalc[] = { "q", "qalculate-gtk", NULL };
|
||||||
|
static const char *splf[] = { "l", "kitty", "--name", "splf", "-d", "~", "-e", "lf", NULL };
|
||||||
|
static const char *sphtop[] = { "h", "kitty", "--name", "sphtop", "-e", "htop", NULL };
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Xresources preferences to load at startup
|
||||||
|
*/
|
||||||
|
ResourcePref resources[] = {
|
||||||
|
{ "color0", STRING, &color0 },
|
||||||
|
{ "color1", STRING, &color1 },
|
||||||
|
{ "color2", STRING, &color2 },
|
||||||
|
{ "color3", STRING, &color3 },
|
||||||
|
{ "color4", STRING, &color4 },
|
||||||
|
{ "color5", STRING, &color5 },
|
||||||
|
{ "color6", STRING, &color6 },
|
||||||
|
{ "color7", STRING, &color7 },
|
||||||
|
{ "color8", STRING, &color8 },
|
||||||
|
{ "color9", STRING, &color9 },
|
||||||
|
{ "color10", STRING, &color10 },
|
||||||
|
{ "color11", STRING, &color11 },
|
||||||
|
{ "color12", STRING, &color12 },
|
||||||
|
{ "color13", STRING, &color13 },
|
||||||
|
{ "color14", STRING, &color14 },
|
||||||
|
{ "color15", STRING, &color15 },
|
||||||
|
{ "bordernorm", STRING, &bordernorm },
|
||||||
|
{ "bordersel", STRING, &bordersel },
|
||||||
|
};
|
||||||
|
|
||||||
|
#include <X11/XF86keysym.h>
|
||||||
|
|
||||||
|
static Key keys[] = {
|
||||||
|
STACKKEYS(MODKEY, focus) STACKKEYS(MODKEY | ShiftMask, push)
|
||||||
|
/* modifier key function argument */
|
||||||
|
{ MODKEY, XK_F1, spawn, SHCMD("groff -mom /usr/local/share/dwm/keybinds.mom -Tpdf | zathura -") },
|
||||||
|
{ MODKEY, XK_F2, spawn, {.v = (const char *[]){TERMINAL, "-e", "deluge-console"}} },
|
||||||
|
{ MODKEY, XK_F3, spawn, SHCMD(TERMINAL "-e pulsemixer; kill -44 $(pidof dwmblocks)") },
|
||||||
|
/*{ MODKEY, XK_F4, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_F5, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_F6, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_F7, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_F8, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_F9, spawn, {.v = (const char *[]){"dmenumount", NULL}} },
|
||||||
|
{ MODKEY, XK_F10, spawn, {.v = (const char *[]){"dmenuumount", NULL}} },
|
||||||
|
/*{ MODKEY, XK_F11, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_F12, spawn, {.v = (const char *[]){"remaps", NULL}} },
|
||||||
|
{ MODKEY, XK_grave, spawn, {.v = (const char *[]){"dmenuunicode", NULL}} },
|
||||||
|
/*{ MODKEY | ShiftMask, XK_grave, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
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, XK_0, view, {.ui = ~0} },
|
||||||
|
{ MODKEY | ShiftMask, XK_0, tag, {.ui = ~0} },
|
||||||
|
{ MODKEY, XK_minus, spawn, SHCMD("pamixer --allow-boost -d 5; kill -44 $(pidof dwmblocks)") },
|
||||||
|
{ MODKEY | ShiftMask, XK_minus, spawn, SHCMD("pamixer --allow-boost -d 15; kill -44 $(pidof dwmblocks)") },
|
||||||
|
{ MODKEY, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 5; kill -44 $(pidof dwmblocks)") },
|
||||||
|
{ MODKEY | ShiftMask, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 15; kill -44 $(pidof dwmblocks)") },
|
||||||
|
{ MODKEY, XK_BackSpace, spawn, {.v = (const char *[]){"sysact", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_BackSpace, spawn, {.v = (const char *[]){"sysact", NULL}} },
|
||||||
|
{ MODKEY, XK_Tab, view, {0} },
|
||||||
|
/*{ MODKEY|ShiftMask, XK_Tab, spawn, {.v = (const char *[]){NULL}}},*/
|
||||||
|
{ MODKEY, XK_q, killclient, {0} },
|
||||||
|
{ MODKEY | ShiftMask, XK_q, spawn, {.v = (const char *[]){"sysact", NULL}} },
|
||||||
|
{ MODKEY, XK_w, spawn, {.v = (const char *[]){BROWSER, NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_w, spawn, {.v = (const char *[]){TERMINAL, "-e", "sudo", "nmtui", NULL}} },
|
||||||
|
{ MODKEY, XK_e, togglescratch, {.v = splf} },
|
||||||
|
/*{ MODKEY | ShiftMask, XK_e, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_r, togglescratch, {.v = sphtop} },
|
||||||
|
{ MODKEY | ShiftMask, XK_r, spawn, {.v = (const char *[]){TERMINAL, "-e", "htop", NULL}} },
|
||||||
|
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, /* tile */
|
||||||
|
{ MODKEY | ShiftMask, XK_t, setlayout, {.v = &layouts[1]} }, /* bstack */
|
||||||
|
{ MODKEY, XK_y, setlayout, {.v = &layouts[2]} }, /* spiral */
|
||||||
|
{ MODKEY | ShiftMask, XK_y, setlayout, {.v = &layouts[3]} }, /* dwindle */
|
||||||
|
{ MODKEY, XK_u, setlayout, {.v = &layouts[4]} }, /* deck */
|
||||||
|
{ MODKEY | ShiftMask, XK_u, setlayout, {.v = &layouts[5]} }, /* monocle */
|
||||||
|
{ MODKEY, XK_i, setlayout, {.v = &layouts[6]} }, /* centeredmaster */
|
||||||
|
{ MODKEY | ShiftMask, XK_i, setlayout, {.v = &layouts[7]} }, /* centeredfloatingmaster */
|
||||||
|
{ MODKEY, XK_o, incnmaster, {.i = +1} },
|
||||||
|
{ MODKEY | ShiftMask, XK_o, incnmaster, {.i = -1} },
|
||||||
|
{ MODKEY, XK_p, spawn, {.v = (const char *[]){"mpc", "toggle", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_p, spawn, SHCMD("mpc pause ; pauseallmpv") },
|
||||||
|
{ MODKEY, XK_bracketleft, spawn, {.v = (const char *[]){"mpc", "seek", "-10", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_bracketleft, spawn, {.v = (const char *[]){"mpc", "seek", "-60", NULL}} },
|
||||||
|
{ MODKEY, XK_bracketright, spawn, {.v = (const char *[]){"mpc", "seek", "+10", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_bracketright, spawn, {.v = (const char *[]){"mpc", "seek", "+60", NULL}} },
|
||||||
|
{ MODKEY, XK_a, togglegaps, {0} },
|
||||||
|
{ MODKEY | ShiftMask, XK_a, defaultgaps, {0} },
|
||||||
|
/*{ MODKEY, XK_s, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_s, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_d, spawn, {.v = (const char *[]){"dmenu_run", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_d, spawn, {.v = (const char *[]){"passmenu", NULL}} },
|
||||||
|
{ MODKEY, XK_f, togglefullscr, {0} },
|
||||||
|
{ MODKEY | ShiftMask, XK_f, setlayout, {.v = &layouts[8]} }, /* floating */
|
||||||
|
/*{ MODKEY, XK_g, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_g, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
||||||
|
/*{ MODKEY | ShiftMask, XK_h, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/* J and K are automatically bound above in STACKEYS */
|
||||||
|
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
||||||
|
/*{ MODKEY | ShiftMask, XK_l, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_semicolon, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_semicolon, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_apostrophe, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_apostrophe, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_backslash, togglescratch, {.v = spqalc} },
|
||||||
|
/*{ MODKEY | ShiftMask, XK_backslash, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_Return, spawn, {.v = (const char *[]){TERMINAL, "-d", "~", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_Return, spawnsshaware, {.v = (const char *[]){TERMINAL, "-d", "~", NULL}} },
|
||||||
|
/*{ MODKEY, XK_z, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_z, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_x, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_x, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_c, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_c, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/* V is automatically bound above in STACKKEYS */
|
||||||
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
|
/*{ MODKEY | ShiftMask, XK_b, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_n, spawn, {.v = (const char *[]){TERMINAL, "-e", "nvim", "-c", "VimwikiIndex", NULL}} },
|
||||||
|
/*{ MODKEY | ShiftMask, XK_n, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_m, spawn, {.v = (const char *[]){TERMINAL, "-e", "ncmpcpp", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_m, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)") },
|
||||||
|
{ MODKEY, XK_comma, spawn, {.v = (const char *[]){"mpc", "prev", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_comma, spawn, {.v = (const char *[]){"mpc", "seek", "0%", NULL}} },
|
||||||
|
{ MODKEY, XK_period, spawn, {.v = (const char *[]){"mpc", "next", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_period, spawn, {.v = (const char *[]){"mpc", "repeat", NULL}} },
|
||||||
|
/*{ MODKEY, XK_slash, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_slash, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_space, zoom, {0} },
|
||||||
|
{ MODKEY | ShiftMask, XK_space, togglefloating, {0} },
|
||||||
|
{ 0, XK_Print, spawn, SHCMD("maim ~/Photos/Screenshots/pic-full-$(date '+%y%m%d-%H%M-%S').png") },
|
||||||
|
{ ShiftMask, XK_Print, spawn, {.v = (const char *[]){"maimpick", NULL}} },
|
||||||
|
{ MODKEY, XK_Print, spawn, {.v = (const char *[]){"dmenurecord", NULL}} },
|
||||||
|
{ MODKEY | ShiftMask, XK_Print, spawn, {.v = (const char *[]){"dmenurecord", "kill", NULL}} },
|
||||||
|
/*{ MODKEY, XK_Scroll_Lock, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_Scroll_Lock, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_Pause, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_Pause, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_Insert, spawn, SHCMD("xdotool type $(grep -v '^#' ~/.local/share/snippets | dmenu -i -l " "50 | cut -d' ' -f1)") },
|
||||||
|
/*{ MODKEY | ShiftMask, XK_Insert, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_Home, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_Home, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_Delete, spawn, {.v = (const char *[]){"dmenurecord", "kill", NULL}} },
|
||||||
|
/*{ MODKEY | ShiftMask, XK_Delete, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_End, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY | ShiftMask, XK_End, quit, {0} },
|
||||||
|
/*{ MODKEY, XK_Page_Up, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_Page_Up, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_Page_Down, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_Page_Down, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
{ MODKEY, XK_Left, focusmon, {.i = -1} },
|
||||||
|
{ MODKEY | ShiftMask, XK_Left, tagmon, {.i = -1} },
|
||||||
|
{ MODKEY, XK_Right, focusmon, {.i = +1} },
|
||||||
|
{ MODKEY | ShiftMask, XK_Right, tagmon, {.i = +1} },
|
||||||
|
/*{ MODKEY, XK_Up, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_Up, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY, XK_Down, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
/*{ MODKEY | ShiftMask, XK_Down, spawn, {.v = (const char *[]){NULL}} },*/
|
||||||
|
|
||||||
|
{ 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)") },
|
||||||
|
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 3; kill -44 $(pidof dwmblocks)") },
|
||||||
|
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 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_AudioMedia, spawn, {.v = (const char *[]){TERMINAL, "-e", "ncmpcpp", NULL}} },
|
||||||
|
{ 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") },
|
||||||
|
{ 0, XF86XK_PowerOff, spawn, {.v = (const char *[]){"sysact", NULL}} },
|
||||||
|
{ 0, XF86XK_Calculator, spawn, {.v = (const char *[]){TERMINAL, "-e", "bc", "-l", NULL}} },
|
||||||
|
{ 0, XF86XK_Sleep, spawn, {.v = (const char *[]){"sudo", "-A", "zzz", NULL}} },
|
||||||
|
{ 0, XF86XK_WWW, spawn, {.v = (const char *[]){BROWSER, NULL}} },
|
||||||
|
{ 0, XF86XK_DOS, spawn, {.v = (const char *[]){TERMINAL, NULL}} },
|
||||||
|
{ 0, XF86XK_ScreenSaver, spawn, SHCMD("xset s activate & mpc pause & pauseallmpv") },
|
||||||
|
{ 0, XF86XK_TaskPane, spawn, {.v = (const char *[]){TERMINAL, "-e", "htop", NULL}} },
|
||||||
|
{ 0, XF86XK_Mail, spawn, SHCMD("kitty -e neomutt; pkill -RTMIN+12 dwmblocks") },
|
||||||
|
{ 0, XF86XK_MyComputer, spawn, {.v = (const char *[]){TERMINAL, "-e", "lfub", "/", NULL}} },
|
||||||
|
/*{ 0, XF86XK_Battery, spawn, {.v = (const char *[]){NULL}} }, */
|
||||||
|
{ 0, XF86XK_Launch1, spawn, {.v = (const char *[]){"xset", "dpms", "force", "off", NULL}} },
|
||||||
|
{ 0, XF86XK_TouchpadToggle, spawn, SHCMD("(synclient | grep 'TouchpadOff.*1' && synclient TouchpadOff=0) || " "synclient TouchpadOff=1") },
|
||||||
|
{ 0, XF86XK_TouchpadOff, spawn, {.v = (const char *[]){"synclient", "TouchpadOff=1", NULL}} },
|
||||||
|
{ 0, XF86XK_TouchpadOn, spawn, {.v = (const char *[]){"synclient", "TouchpadOff=0", NULL}} },
|
||||||
|
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = (const char *[]){"xbacklight", "-inc", "15", NULL}} },
|
||||||
|
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = (const char *[]){"xbacklight", "-dec", "15", NULL}} },
|
||||||
|
};
|
||||||
|
|
||||||
|
/* button definitions */
|
||||||
|
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
||||||
|
static Button buttons[] = {
|
||||||
|
/* click event mask button function argument */
|
||||||
|
// { ClkLtSymbol, 0, Button1, setlayout, {0} },
|
||||||
|
// { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
||||||
|
// { ClkWinTitle, 0, Button2, zoom, {0} },
|
||||||
|
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
|
||||||
|
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
|
||||||
|
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
|
||||||
|
// { ClkTagBar, 0, Button1, view, {0} },
|
||||||
|
// { ClkTagBar, 0, Button3, toggleview, {0} },
|
||||||
|
// { ClkTagBar, MODKEY, Button1, tag, {0} },
|
||||||
|
// { ClkTagBar, MODKEY, Button3, toggletag, {0} },
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue