Update dwm config

This commit is contained in:
Santiago Lo Coco 2025-03-04 20:20:33 +01:00
parent e9fa07f980
commit 607cfe7484
Signed by: slococo-work
GPG Key ID: 0C378516959799F5
1 changed files with 9 additions and 12 deletions

View File

@ -65,19 +65,13 @@ const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL };
const char *spcmd2[] = {"st", "-n", "spranger", "-g", "144x41", "-e", "ranger", NULL }; const char *spcmd2[] = {"st", "-n", "spranger", "-g", "144x41", "-e", "ranger", NULL };
//const char *spcmd2[] = {"st", "-n", "sppcmanfm", "-g", "144x41", "-e", "/home/slococo/launchPcmanfm", NULL }; //const char *spcmd2[] = {"st", "-n", "sppcmanfm", "-g", "144x41", "-e", "/home/slococo/launchPcmanfm", NULL };
//const char *spcmd2[] = {"pcmanfm", NULL }; //const char *spcmd2[] = {"pcmanfm", NULL };
#ifdef THINKPAD // const char *spcmd3[] = {"$HOME/.local/bin/keepass", NULL };
const char *spcmd3[] = {"bitwarden", NULL }; const char *spcmd3[] = {"/home/slococo/.local/bin/keepass", NULL };
#else
const char *spcmd3[] = {"bitwarden-desktop", NULL };
#endif
const char *spcmd4[] = {"/home/slococo/.local/bin/keepass", NULL };
static Sp scratchpads[] = { static Sp scratchpads[] = {
/* name cmd */ /* name cmd */
{"spterm", spcmd1}, {"spterm", spcmd1},
{"spranger", spcmd2}, {"spranger", spcmd2},
//{"sppcmanfm", spcmd2}, {"keepassxc", spcmd3},
{"bitwarden", spcmd3},
{"keepassxc", spcmd4},
}; };
/* tagging */ /* tagging */
@ -234,7 +228,7 @@ static Key keys[] = {
{ MODKEY, XK_x, togglescratch, {.ui = 0 } }, { MODKEY, XK_x, togglescratch, {.ui = 0 } },
{ MODKEY, XK_y, togglescratch, {.ui = 1 } }, { MODKEY, XK_y, togglescratch, {.ui = 1 } },
{ MODKEY, XK_u, togglescratch, {.ui = 2 } }, { MODKEY, XK_u, togglescratch, {.ui = 2 } },
{ MODKEY, XK_i, togglescratch, {.ui = 3 } }, // { MODKEY, XK_i, togglescratch, {.ui = 3 } },
TAGKEYS( XK_1, 0) TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1) TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2) TAGKEYS( XK_3, 2)
@ -253,7 +247,8 @@ static Key keys[] = {
#else #else
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("$HOME/.local/bin/volume sink -0.01; sigdwmblocks 2") }, { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("$HOME/.local/bin/volume sink -0.01; sigdwmblocks 2") },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("$HOME/.local/bin/volume sink +0.01; sigdwmblocks 2") }, { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("$HOME/.local/bin/volume sink +0.01; sigdwmblocks 2") },
{ 0, XF86XK_AudioMute, spawn, SHCMD("$HOME/.local/bin/volume sink mute; sigdwmblocks 2") }, //{ 0, XF86XK_AudioMute, spawn, SHCMD("$HOME/.local/bin/volume sink mute; sigdwmblocks 2") },
{ 0, XF86XK_AudioMute, spawn, SHCMD("$HOME/.local/bin/out-mute") },
//{ 0, XF86XK_AudioMicMute, spawn, SHCMD("$HOME/.local/bin/volume source mute; sigdwmblocks 2") }, //{ 0, XF86XK_AudioMicMute, spawn, SHCMD("$HOME/.local/bin/volume source mute; sigdwmblocks 2") },
{ 0, XF86XK_AudioMicMute, spawn, SHCMD("$HOME/.local/bin/mic-mute") }, { 0, XF86XK_AudioMicMute, spawn, SHCMD("$HOME/.local/bin/mic-mute") },
#endif #endif
@ -301,7 +296,9 @@ static Key keys[] = {
{ MODKEY|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copy") }, { MODKEY|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copy") },
{ MODKEY|ShiftMask|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copyRaw") }, { MODKEY|ShiftMask|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copyRaw") },
{ MODKEY|ControlMask, XK_v, spawn, SHCMD("$HOME/.local/bin/paste") }, { MODKEY|ControlMask, XK_v, spawn, SHCMD("$HOME/.local/bin/paste") },
{ MODKEY, XK_o, spawn, SHCMD("$HOME/.local/bin/passhole-type") }, { MODKEY|ShiftMask|ControlMask, XK_v, spawn, SHCMD("$HOME/.local/bin/paste primary") },
{ MODKEY, XK_i, spawn, SHCMD("$HOME/.local/bin/passhole-type") },
{ MODKEY, XK_o, spawn, SHCMD("$HOME/.local/bin/rbw-menu") },
}; };
/* button definitions */ /* button definitions */