dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 7088e17e811dff3db7788fe6e3b12867c7b3f60b
parent 049a3106136a60a55688aa7c3e64355101fa4994
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sat, 14 Jul 2018 00:52:12 +0200

Bind dwm killclient and quit to something more comfortable

Diffstat:
Mconky/conkyrc_dwm | 4++--
Msuckless/dwm/config.h | 8+++++---
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/conky/conkyrc_dwm b/conky/conkyrc_dwm @@ -53,11 +53,11 @@ ${alignr}...to tag [Number] [MOD]+[j]|[k]${alignr}Toogle windows [MOD]+[s]|[i]${alignr}Switch between horizontal ${alignr}...and vertical view -[Shift]+[MOD]+[c]${alignr}Cancel active window +[Shift]+[MOD]+[q]${alignr}Cancel active window [MOD]+[t]${alignr}Activate tiled mode [MOD]+[f]${alignr}Activate floating mode [MOD]+[m]${alignr}Activate monocle mode -[Shift]+[MOD]+[q]${alignr}Quit dwm +[Shift]+[MOD]+[e]${alignr}Quit dwm ${font}${color}Floating mode options $stippled_hr diff --git a/suckless/dwm/config.h b/suckless/dwm/config.h @@ -60,12 +60,14 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; static const char *termcmd[] = { "st", NULL }; static const char *clipcmd[] = { "clipmenu", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; /* Define clipmenu command */ +static const char *passcmd[] = { "passmenu", "--type", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; /* Define passmenu command */ static const char *firefoxcmd[] = { "firefox-nightly", NULL}; /* Define firefox command */ static const char *muttcmd[] = { "st", "-e", "mutt", NULL }; /* Define mutt command */ static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_c, spawn, {.v = clipcmd } }, /* Define shortcut for clipmenu */ + { MODKEY, XK_p, spawn, {.v = passcmd } }, /* Define shortcut for passmenu */ { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY , XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, @@ -77,7 +79,7 @@ static Key keys[] = { { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY, XK_z, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, - { MODKEY|ShiftMask, XK_c, killclient, {0} }, + { MODKEY|ShiftMask, XK_q, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, @@ -89,7 +91,7 @@ static Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - { Mod1Mask, XK_b, spawn, {.v = firefoxcmd } }, /* Define quickstart for frequent applications */ + { Mod1Mask, XK_b, spawn, {.v = firefoxcmd } }, /* Define shortcuts for frequent applications */ { Mod1Mask, XK_m, spawn, {.v = muttcmd } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) @@ -100,7 +102,7 @@ static Key keys[] = { TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask, XK_q, quit, {0} }, + { MODKEY|ShiftMask, XK_e, quit, {0} }, }; /* button definitions */