From 6cb9d3eef852670a2252db8156d2d51ad8e8b26a Mon Sep 17 00:00:00 2001 From: bd Date: Tue, 4 Jun 2024 15:06:02 -0600 Subject: gpg timeout increase, xss-lock to auto-lock --- .config/guix/modules/dwm/config.def.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to '.config/guix/modules/dwm/config.def.h') diff --git a/.config/guix/modules/dwm/config.def.h b/.config/guix/modules/dwm/config.def.h index defcde5..821998d 100644 --- a/.config/guix/modules/dwm/config.def.h +++ b/.config/guix/modules/dwm/config.def.h @@ -74,7 +74,6 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ /* tools */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_black, "-sf", col_gray4, NULL }; -static const char *slockcmd[] = { "slock", NULL }; /* brightness control */ static const char *lowerbgt[] = { "brightnessctl", "set", "5%-", NULL }; static const char *upperbgt[] = { "brightnessctl", "set", "5%+", NULL }; @@ -91,17 +90,17 @@ static const char *flameall[] = { "flameshot", "full", NULL }; /* other applications */ static const char *icecmd[] = { "icecat", NULL }; static const char *wolfcmd[] = { "librewolf", NULL }; -static const char *emacscmd[] = { "emacsclient", "-nc", NULL }; +static const char *termcmd[] = { "emacsclient", "-nc", NULL }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_x, spawn, {.v = dmenucmd } }, - { MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } }, - { MODKEY|ShiftMask, XK_Return, spawn, {.v = emacscmd } }, + { MODKEY|ShiftMask, XK_l, spawn, SHCMD("xset s activate; slock") }, + { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY|ShiftMask, XK_b, spawn, {.v = icecmd } }, { MODKEY|ShiftMask, XK_c, spawn, {.v = wolfcmd } }, - { MODKEY|ShiftMask, XK_o, spawn, SHCMD("ydotool type $(grep -v '^#' /home/bdunahu/.local/bin/bookmarks.txt | dmenu -i -l 4 | awk '{print $NF}')") }, + { MODKEY|ShiftMask, XK_o, spawn, SHCMD("xdotool type $(grep -v '^#' /home/bdunahu/.local/bin/bookmarks.txt | dmenu -i -l 4 | awk '{print $NF}')") }, { MODKEY|ShiftMask, XK_p, spawn, SHCMD("passmenu --type") }, { 0, XK_F2, spawn, {.v = lowerbgt } }, { 0, XK_F3, spawn, {.v = upperbgt } }, -- cgit v1.2.3