From 577ee09ce9a992373eaf803324d7750c213a75ba Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Fri, 4 Oct 2024 22:21:12 -0400 Subject: shift+F1 now launches a private browser window --- config.def.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index 03079c4..84bccfb 100644 --- a/config.def.h +++ b/config.def.h @@ -169,11 +169,13 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, static const char *termcmd[] = { "tabbed", "-c", "-n", "tabbed_st", "-r", "2", D_TERM, "-w", "''", NULL}; //"''", "-e", "tmux", "-u", NULL }; static const char *termcmd_tmux[] = { "tabbed", "-c", "-n", "tabbed_st", "-r", "2", D_TERM, "-w", "''", "-e", "tmux", "-u", NULL }; -static const char *browsercmd1[] = {"tabbed", "-c", D_BROWSER, "-e", NULL}; -static const char *browsercmd2[] = {"qutebrowser", NULL}; +static const char *browsercmd2[] = {"firefox", "--private-window", NULL}; +static const char *browsercmd1[] = {"firefox", NULL}; static const char *vpncmd1[] = { "vpn-connect", NULL}; +static const char *suspendcmd[] = { "systemctl", "suspend" }; + static const char *screenshotcmd1[] = {"maim", "-sl", "-c", ".27,.5214,.5333,.8", "~/pictures/screenshots/$(date +%s).png", NULL}; static const char *screenshotcmd2[] = {"maim", "~/pictures/screenshots/$(date +%s).png", NULL}; @@ -302,7 +304,7 @@ static Key keys[] = { { MODKEY, XK_i, setlayout, {.v = &layouts[11]} }, { MODKEY, XK_o, setlayout, {.v = &layouts[7]} }, { MODKEY, XK_p, spawn, SHCMD("toggle-picom") }, - { MODKEY, XK_bracketleft, spawn, SHCMD("st -e search -y") }, + { MODKEY, XK_bracketleft, spawn, SHCMD(D_TERM " -e search -y") }, //{ MODKEY, XK_bracketright, , {} }, //{ MODKEY, XK_backslash, , {} }, @@ -430,6 +432,7 @@ static Key keys[] = { { 0|ShiftMask, XF86XK_AudioLowerVolume, spawn, {.v = sndinput_down }}, { 0|ShiftMask, XF86XK_AudioLowerVolume, spawn, {.v = snd_update_bar }}, + { 0, XF86XK_Sleep, spawn, {.v = suspendcmd }}, /* { 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev") }, { 0, XF86XK_AudioNext, spawn, SHCMD("mpc next") }, -- cgit v1.2.3