update something, i don't remember what
This commit is contained in:
parent
e4a36c0439
commit
649b15e02f
4 changed files with 34 additions and 18 deletions
3
Makefile
3
Makefile
|
@ -42,4 +42,7 @@ uninstall:
|
||||||
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
|
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
|
||||||
${DESTDIR}${MANPREFIX}/man1/dwm.1
|
${DESTDIR}${MANPREFIX}/man1/dwm.1
|
||||||
|
|
||||||
|
echo:
|
||||||
|
echo "${OBJ}"
|
||||||
|
|
||||||
.PHONY: all clean dist install uninstall
|
.PHONY: all clean dist install uninstall
|
||||||
|
|
33
config.h
33
config.h
|
@ -37,9 +37,9 @@ static const Rule rules[] = {
|
||||||
* WM_CLASS(STRING) = instance, class
|
* WM_CLASS(STRING) = instance, class
|
||||||
* WM_NAME(STRING) = title
|
* WM_NAME(STRING) = title
|
||||||
*/
|
*/
|
||||||
/* class instance name tags mask isfloating monitor */
|
/* class instance name tags mask isfloating monitor */
|
||||||
{ "Firefox", NULL, "Picture-in-Picture", 0, 1, -1 },
|
{ "Firefox", NULL, "Picture-in-Picture", 0, 1, -1 },
|
||||||
{ "copyq", "copyq", NULL, 0, 1, -1 },
|
{ "copyq", "copyq", NULL, 0, 1, -1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -114,6 +114,7 @@ static const Key keys[] = {
|
||||||
{ MODKEY, XK_o, spawn, SHCMD("dunstctl", "close") },
|
{ MODKEY, XK_o, spawn, SHCMD("dunstctl", "close") },
|
||||||
{ MODKEY|ShiftMask, XK_i, spawn, SHCMD("dunstctl", "set-paused", "false") },
|
{ MODKEY|ShiftMask, XK_i, spawn, SHCMD("dunstctl", "set-paused", "false") },
|
||||||
{ MODKEY|ShiftMask, XK_o, spawn, SHCMD("dunstctl", "set-paused", "true") },
|
{ MODKEY|ShiftMask, XK_o, spawn, SHCMD("dunstctl", "set-paused", "true") },
|
||||||
|
{ MODKEY|ShiftMask, XK_r, spawn, SHCMD("xr") },
|
||||||
{ MODKEY, XK_x, spawn, SHCMD("discord") },
|
{ MODKEY, XK_x, spawn, SHCMD("discord") },
|
||||||
|
|
||||||
// tags
|
// tags
|
||||||
|
@ -127,7 +128,6 @@ static const Key keys[] = {
|
||||||
TAGKEYS( XK_8, 7)
|
TAGKEYS( XK_8, 7)
|
||||||
TAGKEYS( XK_9, 8)
|
TAGKEYS( XK_9, 8)
|
||||||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_r, quit, {1} },
|
|
||||||
{ MODKEY, XK_h, focusmon, {.i = -1 } },
|
{ MODKEY, XK_h, focusmon, {.i = -1 } },
|
||||||
{ MODKEY, XK_l, focusmon, {.i = +1 } },
|
{ MODKEY, XK_l, focusmon, {.i = +1 } },
|
||||||
{ MODKEY|ControlMask, XK_h, tagmon, {.i = -1 } },
|
{ MODKEY|ControlMask, XK_h, tagmon, {.i = -1 } },
|
||||||
|
@ -139,17 +139,18 @@ static const Key keys[] = {
|
||||||
/* button definitions */
|
/* button definitions */
|
||||||
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
||||||
static const Button buttons[] = {
|
static const Button buttons[] = {
|
||||||
/* click event mask button function argument */
|
/* click event mask button function argument */
|
||||||
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
||||||
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
||||||
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
||||||
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
|
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
|
||||||
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
|
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
|
||||||
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
|
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
|
||||||
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
|
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
|
||||||
{ ClkTagBar, 0, Button1, view, {0} },
|
{ ClkClientWin, MODKEY|ControlMask, Button1, resizemouse, {0} },
|
||||||
{ ClkTagBar, 0, Button3, toggleview, {0} },
|
{ ClkTagBar, 0, Button1, view, {0} },
|
||||||
{ ClkTagBar, MODKEY, Button1, tag, {0} },
|
{ ClkTagBar, 0, Button3, toggleview, {0} },
|
||||||
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
|
{ ClkTagBar, MODKEY, Button1, tag, {0} },
|
||||||
|
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# dwm version
|
# dwm version
|
||||||
VERSION = 6.4
|
VERSION = 6.5
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
|
|
14
dwm.c
14
dwm.c
|
@ -1811,7 +1811,19 @@ tagmon(const Arg *arg)
|
||||||
{
|
{
|
||||||
if (!selmon->sel || !mons->next)
|
if (!selmon->sel || !mons->next)
|
||||||
return;
|
return;
|
||||||
sendmon(selmon->sel, dirtomon(arg->i));
|
|
||||||
|
int restore_fullscreen = 0;
|
||||||
|
Client *window = selmon->sel;
|
||||||
|
|
||||||
|
if (window->isfullscreen) {
|
||||||
|
setfullscreen(window, 0);
|
||||||
|
restore_fullscreen = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
sendmon(window, dirtomon(arg->i));
|
||||||
|
|
||||||
|
if (restore_fullscreen)
|
||||||
|
setfullscreen(window, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue