Add tab support for surf and st
This commit is contained in:
@@ -67,9 +67,10 @@ static const char *mutevol[] = { "/usr/bin/wpctl", "set-mute", "@DEFAULT_
|
||||
/* commands */
|
||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
||||
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL };
|
||||
static const char *termcmd[] = { "st", NULL };
|
||||
static const char *termcmd[] = { "tabbed", "-r", "2", "st", "-w", "''", NULL };
|
||||
static const char *slockcmd[] = { "slock", NULL };
|
||||
static const char *screenshotcmd[] = { "scrot", "--select", "--line", "mode=edge", NULL };
|
||||
static const char *surfcmd[] = { "tabbed", "-c", "-r", "2", "surf", "-e", "ID", ".homepage.html" };
|
||||
|
||||
static const Key keys[] = {
|
||||
/* Volume keys support */
|
||||
@@ -82,6 +83,7 @@ static const Key keys[] = {
|
||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
|
||||
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } },
|
||||
{ MODKEY, XK_w, spawn, {.v = surfcmd } },
|
||||
{ MODKEY, XK_b, togglebar, {0} },
|
||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||
|
||||
@@ -67,9 +67,10 @@ static const char *mutevol[] = { "/usr/bin/wpctl", "set-mute", "@DEFAULT_
|
||||
/* commands */
|
||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
||||
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL };
|
||||
static const char *termcmd[] = { "st", NULL };
|
||||
static const char *termcmd[] = { "tabbed", "-r", "2", "st", "-w", "''", NULL };
|
||||
static const char *slockcmd[] = { "slock", NULL };
|
||||
static const char *screenshotcmd[] = { "scrot", "--select", "--line", "mode=edge", NULL };
|
||||
static const char *surfcmd[] = { "tabbed", "-c", "-r", "2", "surf", "-e", "ID", ".homepage.html" };
|
||||
|
||||
static const Key keys[] = {
|
||||
/* Volume keys support */
|
||||
@@ -82,6 +83,7 @@ static const Key keys[] = {
|
||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
|
||||
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } },
|
||||
{ MODKEY, XK_w, spawn, {.v = surfcmd } },
|
||||
{ MODKEY, XK_b, togglebar, {0} },
|
||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||
|
||||
BIN
programs/dwm/dwm
BIN
programs/dwm/dwm
Binary file not shown.
Reference in New Issue
Block a user