From 577ba06877f68ba269f35778d1a1349437eb0b7a Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 23 Apr 2023 21:27:31 +0200 Subject: passmenu bindings --- build | 2 ++ config/dwm.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build b/build index 667eac5..a343d17 100755 --- a/build +++ b/build @@ -78,4 +78,6 @@ ln -s "$RC_DIR/.gnupg/gpg-agent.conf" "$HOME/.gnupg/" ln -s "$RC_DIR/.gnupg/pinentry-dmenu.conf" "$HOME/.gnupg/" ln -s "$RC_DIR/scripts/pinentry-auto" "$HOME/bin" +ln -s "$RC_DIR/scripts/passotpmenu" "$HOME/bin" + echo "use gpg --list-secret-keys --with-keygrip, write the [A] keygrip to .gnupg/sshcontrol" diff --git a/config/dwm.h b/config/dwm.h index 0847dd8..6b314b6 100644 --- a/config/dwm.h +++ b/config/dwm.h @@ -59,6 +59,7 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col, "-sf", col_gray4, NULL }; static const char *passmenucmd[] = { "passmenu", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col, "-sf", col_gray4, NULL }; +static const char *passotpmenucmd[] = { "passotpmenu", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col, "-sf", col_gray4, NULL }; static const char *volumeupcmd[] = { "amixer", "sset", "Master", "5%+", NULL }; static const char *volumedowncmd[] = { "amixer", "sset", "Master", "5%-", NULL }; static const char *termcmd[] = { "st", NULL }; @@ -68,6 +69,7 @@ static Key keys[] = { { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_c, spawn, {.v = passmenucmd } }, + { MODKEY, XK_x, spawn, {.v = passotpmenucmd } }, { MODKEY, XK_equal, spawn, {.v = volumeupcmd } }, { MODKEY, XK_minus, spawn, {.v = volumedowncmd } }, -- cgit v1.2.3