From 75889d83f7bb747ed56f1ec5c3cb9a30a9fd0440 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Fri, 16 Aug 2024 14:38:35 +0200 Subject: [PATCH] Add keepassxc scratchpad --- config.def.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index ca4dff4..42f04d7 100644 --- a/config.def.h +++ b/config.def.h @@ -70,12 +70,14 @@ const char *spcmd3[] = {"bitwarden", NULL }; #else const char *spcmd3[] = {"bitwarden-desktop", NULL }; #endif +const char *spcmd4[] = {"/home/slococo/.local/bin/keepass", NULL }; static Sp scratchpads[] = { /* name cmd */ {"spterm", spcmd1}, {"spranger", spcmd2}, //{"sppcmanfm", spcmd2}, {"bitwarden", spcmd3}, + {"keepassxc", spcmd4}, }; /* tagging */ @@ -89,9 +91,10 @@ static const Rule rules[] = { /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, - { NULL, "spterm", NULL, SPTAG(0), 1, -1 }, - { NULL, "spranger", NULL, SPTAG(1), 1, -1 }, - { NULL, "bitwarden", NULL, SPTAG(2), 1, -1 }, + { NULL, "spterm", NULL, SPTAG(0), 1, -1 }, + { NULL, "spranger", NULL, SPTAG(1), 1, -1 }, + { NULL, "bitwarden", NULL, SPTAG(2), 1, -1 }, + { NULL, "keepassxc", NULL, SPTAG(3), 1, -1 }, }; /* layout(s) */ @@ -226,6 +229,7 @@ static Key keys[] = { { MODKEY, XK_x, togglescratch, {.ui = 0 } }, { MODKEY, XK_y, togglescratch, {.ui = 1 } }, { MODKEY, XK_u, togglescratch, {.ui = 2 } }, + { MODKEY, XK_i, togglescratch, {.ui = 3 } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2)