|
|
@ -64,9 +64,9 @@ static const Layout layouts[] = {
|
|
|
|
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
|
|
|
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
|
|
|
|
|
|
|
|
|
|
|
/* commands */
|
|
|
|
/* commands */
|
|
|
|
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
|
|
|
static char dmenumon[2] = "0"; /* component of applications, manipulated in spawn() */
|
|
|
|
static const char *dmenucmd[] = { "dmenu_run", "-c", "-g", "4", "-l", "15", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_purple, "-sf", col_black, NULL };
|
|
|
|
static const char *dmenucmd[] = { "dmenu_run", "-c", "-g", "4", "-l", "15", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_purple, "-sf", col_black, NULL };
|
|
|
|
static const char *termcmd[] = { "/usr/local/bin/st", NULL };
|
|
|
|
static const char *terminal[] = { "/usr/local/bin/st", NULL };
|
|
|
|
static const char *browsecmd[] = { "/usr/bin/librewolf", "-p", "browsing", NULL };
|
|
|
|
static const char *browsecmd[] = { "/usr/bin/librewolf", "-p", "browsing", NULL };
|
|
|
|
static const char *acccmd[] = { "/usr/bin/librewolf", "-p", "accounts", NULL };
|
|
|
|
static const char *acccmd[] = { "/usr/bin/librewolf", "-p", "accounts", NULL };
|
|
|
|
static const char *filebrowse[] = { "/usr/local/bin/st", "-e", "/usr/bin/vifmrun", NULL };
|
|
|
|
static const char *filebrowse[] = { "/usr/local/bin/st", "-e", "/usr/bin/vifmrun", NULL };
|
|
|
@ -75,9 +75,9 @@ static const char *cmdcmd[] = { "bash", "/home/sufyaan/docs/sys/gits/personal/d
|
|
|
|
static const char *volup[] = { "bash", "/home/sufyaan/docs/sys/gits/personal/dots/scripts/system/volume", "up", "nord", NULL };
|
|
|
|
static const char *volup[] = { "bash", "/home/sufyaan/docs/sys/gits/personal/dots/scripts/system/volume", "up", "nord", NULL };
|
|
|
|
static const char *voldown[] = { "bash", "/home/sufyaan/docs/sys/gits/personal/dots/scripts/system/volume", "down", "nord", NULL };
|
|
|
|
static const char *voldown[] = { "bash", "/home/sufyaan/docs/sys/gits/personal/dots/scripts/system/volume", "down", "nord", NULL };
|
|
|
|
static const char *volmute[] = { "bash", "/home/sufyaan/docs/sys/gits/personal/dots/scripts/system/volume", "mute", "nord", NULL };
|
|
|
|
static const char *volmute[] = { "bash", "/home/sufyaan/docs/sys/gits/personal/dots/scripts/system/volume", "mute", "nord", NULL };
|
|
|
|
static const char *lockcmd[] = { "slock", NULL };
|
|
|
|
static const char *lock[] = { "slock", NULL };
|
|
|
|
static const char *powercmd[] = { "bash", "/home/sufyaan/docs/sys/gits/personal/dots/scripts/system/power", NULL };
|
|
|
|
static const char *power[] = { "bash", "/home/sufyaan/docs/sys/gits/personal/dots/scripts/system/power", NULL };
|
|
|
|
static const char *screenshotcmd[] = { "flameshot", "gui", NULL };
|
|
|
|
static const char *screenshot[] = { "flameshot", "gui", NULL };
|
|
|
|
|
|
|
|
|
|
|
|
static const Key keys[] = {
|
|
|
|
static const Key keys[] = {
|
|
|
|
/* modifier key function argument */
|
|
|
|
/* modifier key function argument */
|
|
|
@ -85,14 +85,14 @@ static const Key keys[] = {
|
|
|
|
{ MODKEY, XK_e, spawn, {.v = filebrowse } },
|
|
|
|
{ MODKEY, XK_e, spawn, {.v = filebrowse } },
|
|
|
|
{ MODKEY, XK_c, spawn, {.v = cmdcmd } },
|
|
|
|
{ MODKEY, XK_c, spawn, {.v = cmdcmd } },
|
|
|
|
{ MODKEY, XK_z, spawn, {.v = bmcmd } },
|
|
|
|
{ MODKEY, XK_z, spawn, {.v = bmcmd } },
|
|
|
|
{ MODKEY, XK_Delete, spawn, {.v = powercmd } },
|
|
|
|
{ MODKEY, XK_Delete, spawn, {.v = power } },
|
|
|
|
{ MODKEY, XK_F9, spawn, {.v = volmute } },
|
|
|
|
{ MODKEY, XK_F9, spawn, {.v = volmute } },
|
|
|
|
{ MODKEY, XK_F10, spawn, {.v = voldown } },
|
|
|
|
{ MODKEY, XK_F10, spawn, {.v = voldown } },
|
|
|
|
{ MODKEY, XK_F11, spawn, {.v = volup } },
|
|
|
|
{ MODKEY, XK_F11, spawn, {.v = volup } },
|
|
|
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
|
|
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = terminal } },
|
|
|
|
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } },
|
|
|
|
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lock } },
|
|
|
|
{ MODKEY|ShiftMask, XK_w, spawn, {.v = acccmd } },
|
|
|
|
{ MODKEY|ShiftMask, XK_w, spawn, {.v = acccmd } },
|
|
|
|
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } },
|
|
|
|
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshot } },
|
|
|
|
{ MODKEY, XK_b, togglebar, {0} },
|
|
|
|
{ MODKEY, XK_b, togglebar, {0} },
|
|
|
|
{ MODKEY, XK_w, spawn, {.v = browsecmd } },
|
|
|
|
{ MODKEY, XK_w, spawn, {.v = browsecmd } },
|
|
|
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
|
|
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
|
|
@ -134,7 +134,7 @@ static const Button buttons[] = {
|
|
|
|
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
|
|
|
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
|
|
|
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
|
|
|
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
|
|
|
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
|
|
|
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
|
|
|
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
|
|
|
|
{ ClkStatusText, 0, Button2, spawn, {.v = terminal } },
|
|
|
|
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
|
|
|
|
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
|
|
|
|
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
|
|
|
|
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
|
|
|
|
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
|
|
|
|
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
|
|
|
|