Add tab support for surf and st

This commit is contained in:
2024-06-08 14:18:15 +01:00
parent 537322564c
commit 957a94a10f
4 changed files with 7 additions and 2 deletions

1
dotfiles/.homepage.html Normal file
View File

@@ -0,0 +1 @@
TEST HOMEPAGE

View File

@@ -67,9 +67,10 @@ static const char *mutevol[] = { "/usr/bin/wpctl", "set-mute", "@DEFAULT_
/* commands */ /* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL }; 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 *slockcmd[] = { "slock", NULL };
static const char *screenshotcmd[] = { "scrot", "--select", "--line", "mode=edge", 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[] = { static const Key keys[] = {
/* Volume keys support */ /* Volume keys support */
@@ -82,6 +83,7 @@ static const Key keys[] = {
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } }, { MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } },
{ MODKEY, XK_w, spawn, {.v = surfcmd } },
{ MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } },

View File

@@ -67,9 +67,10 @@ static const char *mutevol[] = { "/usr/bin/wpctl", "set-mute", "@DEFAULT_
/* commands */ /* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL }; 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 *slockcmd[] = { "slock", NULL };
static const char *screenshotcmd[] = { "scrot", "--select", "--line", "mode=edge", 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[] = { static const Key keys[] = {
/* Volume keys support */ /* Volume keys support */
@@ -82,6 +83,7 @@ static const Key keys[] = {
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } }, { MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } },
{ MODKEY, XK_w, spawn, {.v = surfcmd } },
{ MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } },

Binary file not shown.