aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwells46 <tom@wellsth.com>2026-04-06 08:10:14 -0500
committertwells46 <tom@wellsth.com>2026-04-06 08:10:14 -0500
commit5e25a53e09db1081c07688bfef98399b3ce8a6b2 (patch)
tree3d4af789e2fdbdabb73b4734c75850777f77186b
parent63e748e18d5a632ca010e706647c9e5f6237e8b3 (diff)
UpdatesHEADmain
-rw-r--r--config.h30
-rw-r--r--config.mk2
2 files changed, 19 insertions, 13 deletions
diff --git a/config.h b/config.h
index 68323f3..3e2c9bf 100644
--- a/config.h
+++ b/config.h
@@ -5,8 +5,8 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static const char *fonts[] = { "Liberation Mono:size=10" };
-static const char dmenufont[] = "Liberation Mono:size=10";
+static const char *fonts[] = { "CommitMono Nerd Font Mono:size=9" };
+static const char dmenufont[] = "CommitMono Nerd Font Mono:size=9";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
@@ -64,6 +64,8 @@ static const char *termcmd[] = { "st", "/usr/bin/fish", NULL };
static const Key keys[] = {
/* modifier key function argument */
+ { MODKEY, XK_grave, spawn, {.v = (const char*[]){"slock", NULL } } },
+ { MODKEY|ShiftMask, XK_grave, togglebar, {0} },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
@@ -80,10 +82,10 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_e, quit, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
/* { MODKEY, XK_i, incnmaster, {.i = +1 } }, */
- { MODKEY, XK_o, spawn, {.v = (const char*[]){"gousermenu", "-t", NULL } } },
- { MODKEY|ShiftMask, XK_o, spawn, {.v = (const char*[]){"gousermenu", NULL } } },
- { MODKEY, XK_p, spawn, {.v = (const char*[]){"gopassmenu", "-t", NULL } } },
- { MODKEY|ShiftMask, XK_p, spawn, {.v = (const char*[]){"gopassmenu", NULL } } },
+ { MODKEY, XK_o, spawn, {.v = (const char*[]){"passmenu", "-u", "-t", NULL } } },
+ { MODKEY|ShiftMask, XK_o, spawn, {.v = (const char*[]){"passmenu","-u", NULL } } },
+ { MODKEY, XK_p, spawn, {.v = (const char*[]){"passmenu", "-t", NULL } } },
+ { MODKEY|ShiftMask, XK_p, spawn, {.v = (const char*[]){"passmenu", NULL } } },
{ MODKEY, XK_bracketleft, spawn, {.v = (const char*[]){"mpc", "seek", "0", NULL } } },
{ MODKEY|ShiftMask, XK_bracketleft, spawn, {.v = (const char*[]){"mpc", "prev", NULL } } },
{ MODKEY, XK_bracketright, spawn, {.v = (const char*[]){"mpc", "next", NULL } } },
@@ -98,18 +100,22 @@ static const Key keys[] = {
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_Return, zoom, {0} },
- { MODKEY, XK_b, togglebar, {0} },
- { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
- { MODKEY, XK_x, spawn, {.v = (const char*[]){"librewolf", NULL } } },
- { MODKEY|ShiftMask, XK_x, spawn, {.v = (const char*[]){"librewolf", "--private-window", NULL } } },
- { MODKEY, XK_c, spawn, {.v = (const char*[]){"surf", "duckduckgo.com/html", NULL } } },
- { MODKEY|ShiftMask, XK_c, spawn, {.v = (const char*[]){"surf","-i", "duckduckgo.com/html", NULL } } },
+ { MODKEY, XK_z, spawn, {.v = (const char*[]){"firfox", NULL } } },
+ { MODKEY|ShiftMask, XK_z, spawn, {.v = (const char*[]){"firfox", "--private-window", NULL } } },
+ { MODKEY, XK_x, spawn, {.v = (const char*[]){"secure_browser", NULL } } },
+ { MODKEY|ShiftMask, XK_x, spawn, {.v = (const char*[]){"secure_browser", "--private-window", NULL } } },
+ { MODKEY, XK_c, spawn, {.v = (const char*[]){"surf", "https://lite.duckduckgo.com/lite", NULL } } },
+ { MODKEY|ShiftMask, XK_c, spawn, {.v = (const char*[]){"surf","-p", "https://lite.duckduckgo.com/lite", NULL } } },
+ { MODKEY, XK_b, spawn, SHCMD("get-bookmark | xdotool type --clearmodifiers --file -") },
+ { MODKEY|ShiftMask, XK_b, spawn, SHCMD("get-bookmark | xsel -ib") },
+ { MODKEY, XK_n, spawn, SHCMD("xsel -ob | save-bookmark") },
+ { MODKEY, XK_m, spawn, SHCMD("xsel -ob | linkmenu") },
{ 0, XF86XK_AudioMute, spawn, {.v = (const char*[]){"wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle", NULL} } },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = (const char*[]){"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "0.05-", NULL} } },
diff --git a/config.mk b/config.mk
index 0a228bf..2bb7455 100644
--- a/config.mk
+++ b/config.mk
@@ -28,7 +28,7 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -O2 -march=native ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -O2 -march=native -pipe ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
# Solaris