Added view all/tag all binds

This commit is contained in:
2024-06-24 00:25:59 +01:00
parent 082875899a
commit 4b07a73345
2 changed files with 88 additions and 56 deletions

View File

@@ -128,15 +128,18 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_u, setlayout, {.v = &layouts[3]} }, //cmonocle { MODKEY|ShiftMask, XK_u, setlayout, {.v = &layouts[3]} }, //cmonocle
{ MODKEY|ShiftMask, XK_o, setlayout, {.v = &layouts[4]} }, //cfmonocle { MODKEY|ShiftMask, XK_o, setlayout, {.v = &layouts[4]} }, //cfmonocle
{ MODKEY|ShiftMask, XK_s, setlayout, {.v = &layouts[5]} }, //fib-spiral { MODKEY|ShiftMask, XK_s, setlayout, {.v = &layouts[5]} }, //fib-spiral
{ MODKEY|ShiftMask, XK_d, setlayout, {.v = &layouts[6]} }, //fib-spiral { MODKEY|ShiftMask, XK_D, setlayout, {.v = &layouts[6]} }, //fib-dwindle
{ MODKEY|ShiftMask, XK_g, setlayout, {.v = &layouts[7]} }, //gapless-grid { MODKEY|ShiftMask, XK_g, setlayout, {.v = &layouts[7]} }, //gapless-grid
{ MODKEY|ShiftMask, XK_i, setlayout, {.v = &layouts[8]} }, //deck { MODKEY|ShiftMask, XK_d, setlayout, {.v = &layouts[8]} }, //deck
{ MODKEY|ShiftMask, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, setlayout, {0} },
{ MODKEY, XK_space, togglefloating, {0} }, { MODKEY, XK_space, togglefloating, {0} },
{ MODKEY, XK_m, focusmon, {.i = -1 } }, { MODKEY, XK_n, focusmon, {.i = -1 } },
{ MODKEY, XK_m, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
{ MODKEY, XK_Tab, view, {.ui = 0} }, \ { MODKEY, XK_Tab, view, {.ui = 0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
TAGKEYS( XK_1, 0) TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1) TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2) TAGKEYS( XK_3, 2)

133
dwm.1
View File

@@ -75,63 +75,63 @@ command.
Mod is set to Super (the "windows" key). Mod is set to Super (the "windows" key).
.TP .TP
.B Mod\-b .B Mod\-b
Toggle status bar Toggle status bar.
.TP .TP
.B Mod\-` .B Mod\-`
Toggle scratchpad terminal (set to Toggle scratchpad terminal (set to
.BR st(1) .BR st(1)
) ).
.TP .TP
.B Mod\-j .B Mod\-j
Focus next window Focus next window.
.TP .TP
.B Mod\-k .B Mod\-k
Focus previous window Focus previous window.
.TP .TP
.B Mod\-. .B Mod\-.
Increase gap size by 5 Increase gap size by 5.
.TP .TP
.B Mod\-, .B Mod\-,
Decrease gap size by 5 Decrease gap size by 5.
.TP .TP
.B Mod\-Control\-. .B Mod\-Control\-.
Increase gap size by 1 Increase gap size by 1.
.TP .TP
.B Mod\-Control\-, .B Mod\-Control\-,
Decrease gap size by 1 Decrease gap size by 1.
.TP .TP
.B Mod\-/ .B Mod\-/
Toggle gaps Toggle gaps (default value is set to 5).
.TP .TP
.B Mod\-Shift\-/ .B Mod\-Shift\-/
Print current gap value (using Print current gap value (using
.BR notify-send(1) .BR notify-send(1)
) ).
.TP .TP
.B Mod\-h .B Mod\-h
Decrease size of master area Decrease size of master area.
.TP .TP
.B Mod\-l .B Mod\-l
Increase size of master are Increase size of master area.
.TP .TP
.B Mod\-Control\-. .B Mod\-Control\-.
Decrease number of master clients Decrease number of master clients.
.TP .TP
.B Mod\-Control\-, .B Mod\-Control\-,
Increase number of master clients Increase number of master clients.
.TP .TP
.B Mod\-Shift\-h .B Mod\-Shift\-h
@@ -143,97 +143,123 @@ Rotate the stack anticlockwise but keep focus on the same position.
.TP .TP
.B Mod\-Shift\-k .B Mod\-Shift\-k
Rotate the master clients clockwise but keep focus on the same position. Rotate the master clients clockwise but keep focus on the same
position.
.TP .TP
.B Mod\-Shift\-j .B Mod\-Shift\-j
Rotate the master clients anticlockwise but keep focus on the same position. Rotate the master clients anticlockwise but keep focus on the same
position.
.TP .TP
.B Mod\-c .B Mod\-c
If in stack area, swap currently focused client with master. If in master area, swap currently focused client with top of stack area. Swap a window from the stack with the master. If on the master, swap
with the top of the stack. If on a member of the stack, swap with
master.
.TP .TP
.B Mod\-Shift\-t .B Mod\-Shift\-t
Set layout to tiling Set layout to tiling.
.TP .TP
.B Mod\-Shift\-f .B Mod\-Shift\-f
Set layout to floating Set layout to floating.
.TP .TP
.B Mod\-Shift\-m .B Mod\-Shift\-m
Set layout to monocle Set layout to monocle.
.TP .TP
.B Mod\-Shift\-u .B Mod\-Shift\-u
Set layout to centred monocle Set layout to centred monocle.
.TP .TP
.B Mod\-Shift\-o .B Mod\-Shift\-o
Set layout to centred floating monocle Set layout to centred floating monocle.
.TP .TP
.B Mod\-Shift\-s .B Mod\-Shift\-s
Set layout to spiral fibonacci Set layout to spiral fibonacci.
.TP .TP
.B Mod\-Shift\-d .B Mod\-Shift\-D
Set layout to dwindle fibonacci Set layout to dwindle fibonacci.
.TP .TP
.B Mod\-Shift\-g .B Mod\-Shift\-g
Set layout to gapless grid Set layout to gapless grid.
.TP .TP
.B Mod\-Shift\-i .B Mod\-Shift\-d
Set layout to deck Set layout to deck layout.
.TP .TP
.B Mod\-Shift\-space .B Mod\-Shift\-space
Toggle between current layout and previous layout Toggle between current layout and previous layout.
.TP .TP
.B Mod\-space .B Mod\-space
Toggle current client's floating (floating -> not floating, not floating -> floating) Toggle current client's floating (floating -> not floating, not
floating -> floating).
.TP .TP
.B Mod1\-[1..n] .B Mod1\-<x in [1..n]>
Go to nth tag Go to xth tag.
.TP .TP
.B Mod1\-Shift\-[1..n] .B Mod1\-Shift\-<x in [1..n]>
Send focused client to nth tag. Tag focused client, clearing all other tags.
.TP .TP
.B Mod\-m .B Mod1\-Control\-<x in [1..n]>
Focus on the next monitor in monitor stack View the xth tag.
.TP .TP
.B Mod\-Shift\-, .B Mod1\-Control\-Shift\-<x in [1..n]>
Send client to previous monitor in monitor stack Tag the focused client but preserve tags.
.TP .TP
.B Mod\-Shift\-. .B Mod1\-0
Send client to next monitor in monitor stack View all tags.
.TP
.B Mod1\-Shift\-0
Tag focused client with all tags.
.TP .TP
.B Mod\-Tab .B Mod\-Tab
View the previous tag View the previous tag.
.TP
.B Mod\-n
Focus on the next monitor in monitor stack.
.TP
.B Mod\-m
Focus on the next monitor in monitor stack.
.TP
.B Mod\-Shift\-,
Send client to previous monitor in monitor stack.
.TP
.B Mod\-Shift\-.
Send client to next monitor in monitor stack.
.TP .TP
.B Mod\-q .B Mod\-q
Kill the currently focused client Kill the currently focused client.
.TP .TP
.B Mod\-Shift\-q .B Mod\-Shift\-q
Kill dwm Kill dwm.
.SS Mouse commands .SS Mouse commands
.TP .TP
.B Mod1\-Button1 .B Mod1\-Button1
Move focused window while dragging. Tiled windows will be toggled to the floating state. Move focused window while dragging. Tiled windows will be toggled to
the floating state.
.TP .TP
.B Mod1\-Button2 .B Mod1\-Button2
@@ -241,19 +267,21 @@ Toggles focused window between floating and tiled state.
.TP .TP
.B Mod1\-Button3 .B Mod1\-Button3
Resize focused window while dragging. Tiled windows will be toggled to the floating state. Resize focused window while dragging. Tiled windows will be toggled to
the floating state.
.SH CUSTOMIZATION .SH CUSTOMIZATION
dwm is customized by creating a custom config.h and (re)compiling the source dwm is customised by creating a custom config.h and (re)compiling the
code. This keeps it fast, secure and simple. source code. This keeps it fast, secure and simple.
.SH SEE ALSO .SH SEE ALSO
.BR dmenu (1), .BR dmenu (1),
.BR st (1) .BR st (1)
.SH ISSUES .SH ISSUES
Java applications which use the XToolkit/XAWT backend may draw grey windows Java applications which use the XToolkit/XAWT backend may draw grey
only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early windows only. The XToolkit/XAWT backend breaks ICCCM-compliance in
JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds recent JDK 1.5 and early JDK 1.6 versions, because it assumes a
are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the reparenting window manager. Possible workarounds are using JDK 1.4
(which doesn't contain the XToolkit/XAWT backend) or setting the
environment variable environment variable
.BR AWT_TOOLKIT=MToolkit .BR AWT_TOOLKIT=MToolkit
(to use the older Motif backend instead) or running (to use the older Motif backend instead) or running
@@ -261,7 +289,8 @@ environment variable
or or
.B wmname LG3D .B wmname LG3D
(to pretend that a non-reparenting window manager is running that the (to pretend that a non-reparenting window manager is running that the
XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable XToolkit/XAWT backend can recognize) or when using OpenJDK setting the
environment variable
.BR _JAVA_AWT_WM_NONREPARENTING=1 . .BR _JAVA_AWT_WM_NONREPARENTING=1 .
.SH BUGS .SH BUGS
Send all bug reports with a patch to hackers@suckless.org. Send all bug reports with a patch to hackers@suckless.org.