diff --git a/docs/autostart b/docs/autostart
index 17fcc270..18adb23b 100644
--- a/docs/autostart
+++ b/docs/autostart
@@ -12,7 +12,7 @@
swaybg -c '#113344' >/dev/null 2>&1 &
# Configure output directives such as mode, position, scale and transform.
-# Use wlr-randr to get your output names
+# Use wlr-randr to get your output names.
# Example ~/.config/kanshi/config below:
# profile {
# output HDMI-A-1 position 1366,0
diff --git a/docs/labwc-actions.5.scd b/docs/labwc-actions.5.scd
index 47ee1801..2677e348 100644
--- a/docs/labwc-actions.5.scd
+++ b/docs/labwc-actions.5.scd
@@ -16,7 +16,7 @@ Actions are used in menus and keyboard/mouse bindings.
SIGTERM signal.
**
- Execute command. Note that in the interest of backward compatibility,
+ Execute command. Note that in the interest of backward compatibility,
labwc supports as an alternative to even though
openbox documentation states that it is deprecated.
Note: Tilde (~) is expanded in the command before passing to execvp().
@@ -139,22 +139,21 @@ Actions are used in menus and keyboard/mouse bindings.
and OSD, useful for binding to keys without modifiers.
*workspace* [all|current]
- This determines whether to cycle through windows on all workspaces or the
- current workspace. Default is "current".
+ This determines whether to cycle through windows on all workspaces or
+ the current workspace. Default is "current".
*output* [all|focused|cursor]
- This determines whether to cycle through windows on all outputs, the focused
- output, or the output under the cursor. Default is "all".
+ This determines whether to cycle through windows on all outputs, the
+ focused output, or the output under the cursor. Default is "all".
*identifier* [all|current]
- This determines whether to cycle through all windows or only windows of the
- same application as the currently focused window. Default is "all".
+ This determines whether to cycle through all windows or only windows of
+ the same application as the currently focused window. Default is "all".
**
Re-load configuration and theme files.
-**
-
+**
Show a menu.
```
@@ -300,7 +299,7 @@ Actions are used in menus and keyboard/mouse bindings.
(if one exists).
*wrap* [yes|no] When using the direction attribute, wrap around from
- right-to-left or top-to-bottom, and vice versa. Default no.
+ right-to-left or top-to-bottom, and vice versa. Default is no.
**
Resizes active window size to width and height of the output when the
@@ -314,10 +313,10 @@ Actions are used in menus and keyboard/mouse bindings.
workspace or its index (starting at 1) as configured in rc.xml.
*wrap* [yes|no] Wrap around from last desktop to first, and vice
- versa. Default yes.
+ versa. Default is yes.
*toggle* [yes|no] Toggle to “last” if already on the workspace that
- would be the actual destination. Default no.
+ would be the actual destination. Default is no.
**
Send active window to workspace.
@@ -325,10 +324,11 @@ Actions are used in menus and keyboard/mouse bindings.
*to* The workspace to send the window to. Supported values are the same
as for GoToDesktop.
- *follow* [yes|no] Also switch to the specified workspace. Default yes.
+ *follow* [yes|no] Also switch to the specified workspace.
+ Default is yes.
*wrap* [yes|no] Wrap around from last desktop to first, and vice
- versa. Default yes.
+ versa. Default is yes.
**
Add virtual output (headless backend).
@@ -346,11 +346,11 @@ Actions are used in menus and keyboard/mouse bindings.
```
-
-
+
+
-
+
```
@@ -371,7 +371,7 @@ Actions are used in menus and keyboard/mouse bindings.
*output_name* The name of virtual output. If not supplied, will remove
the last virtual output added.
-**
+**
Reposition the window according to the desired placement policy.
*policy* [automatic|cursor|center|cascade] Use the specified policy,
@@ -430,11 +430,11 @@ Actions are used in menus and keyboard/mouse bindings.
used.
**
- Minimize all windows in the current workspace so that the desktop becomes
- visible. On calling the action again the hidden windows are unminimized,
- provided that - since the initial `ShowDesktop` - (a) no windows have been
- unminimized; (b) workspaces have not been switched; and (c) no new
- applications have been started.
+ Minimize all windows in the current workspace so that the desktop
+ becomes visible. On calling the action again the hidden windows are
+ unminimized, provided that - since the initial `ShowDesktop` - (a) no
+ windows have been unminimized; (b) workspaces have not been switched;
+ and (c) no new applications have been started.
**++
**
@@ -449,8 +449,8 @@ Actions are used in menus and keyboard/mouse bindings.
binding.
**
- Toggle visibility of key-state on-screen display (OSD). Note: This is for
- debugging purposes only.
+ Toggle visibility of key-state on-screen display (OSD). Note: This is
+ for debugging purposes only.
# CONDITIONAL ACTIONS
@@ -464,10 +464,10 @@ Actions that execute other actions. Used in keyboard/mouse bindings.
```
-
-
-
-
+
+
+
+
```
@@ -549,9 +549,9 @@ Actions that execute other actions. Used in keyboard/mouse bindings.
```
-
+
-
+
diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd
index 56097bca..5691a4e1 100644
--- a/docs/labwc-config.5.scd
+++ b/docs/labwc-config.5.scd
@@ -25,7 +25,7 @@ The XDG Base Directory Specification does not specify whether or not programs
should (a) allow the first-identified configuration file to supersede any
others, or (b) define rules for merging the information from more than one file.
-By default, labwc uses option (a), reading only the first file identified. With
+By default, labwc uses option (a), reading only the first file identified. With
the --merge-config option, the search order is reversed, but every configuration
file encountered is processed in turn. Thus, user-specific files will augment
system-wide configurations, with conflicts favoring the user-specific
@@ -526,7 +526,8 @@ extending outward from the snapped edge.
** and **, and 50 for **.
** [yes|no]
- Show an overlay when snapping a window to an output edge. Default is yes.
+ Show an overlay when snapping a window to an output edge.
+ Default is yes.
**++
**
@@ -595,7 +596,7 @@ extending outward from the snapped edge.
A setting of 0 disables the OSD. Default is 1000 ms.
**
- Set the prefix to use when using "number" above. Default is "Workspace"
+ Set the prefix to use when using "number" above. Default is "Workspace".
## THEME
@@ -749,7 +750,7 @@ generate gesture events, like swipe and pinch. There are some related settings
(e.g. *threeFingerDrag* and *twoFingerScroll*) in the ** section.
In the Wayland Compositor domain, events associated with touchscreens are
-sometimes simply referred to as *touch* events. Touchscreens can be configured
+sometimes simply referred to as *touch* events. Touchscreens can be configured
in both the ** and ** sections. Note that touchscreen gestures
are not interpreted by libinput, nor labwc. Any touch point is passed to the
client (application) for any interpretation of gestures.
@@ -824,9 +825,10 @@ overrideInhibition="">*
Make this keybind work even if the screen is locked. Default is no.
*overrideInhibition* [yes|no]
- Make this keybind work even if the view inhibits keybinds. Default is no.
+ Make this keybind work even if the view inhibits keybinds.
This can be used to prevent W-Tab and similar keybinds from being
delivered to Virtual Machines, VNC clients or nested compositors.
+ Default is no.
*onRelease* [yes|no]
When yes, fires the keybind action when the key or key
@@ -840,7 +842,7 @@ overrideInhibition="">*
```
-
+
```
@@ -900,7 +902,7 @@ input-devices by the Wayland protocol.
- Shade: A button that, by default, toggles window shading.
- AllDesktops: A button that, by default, toggles omnipresence of a
window.
- - Close: A button that, by default, closses a window.
+ - Close: A button that, by default, closes a window.
- Border: The window's border including Top...BRCorner below.
- Top: The top edge of the window's border.
- Bottom: The bottom edge of the window's border.
@@ -974,10 +976,10 @@ input-devices by the Wayland protocol.
```
-
+
-
-
+
+
```
@@ -985,7 +987,7 @@ input-devices by the Wayland protocol.
**
Load default mousebinds. This is an addition to the openbox
specification and provides a way to keep config files simpler whilst
- allowing user specific binds. Note that if no rc.xml is found, or if no
+ allowing user specific binds. Note that if no rc.xml is found, or if no
entries exist, the same default mousebinds will be
loaded even if the element is not provided.
@@ -997,7 +999,7 @@ Note: To rotate touch events with output rotation, use the libinput
*calibrationMatrix* setting.
```
-
+
```
**
@@ -1260,7 +1262,8 @@ Note: To rotate touch events with output rotation, use the libinput
The default method depends on the touchpad hardware.
** [none|twofinger|edge|onbutton]
- Configure the method by which physical movements are mapped to scroll events.
+ Configure the method by which physical movements are mapped to scroll
+ events.
The scroll methods available are:
- *twofinger* - Scroll by two fingers being placed on the surface of the
@@ -1275,7 +1278,8 @@ Note: To rotate touch events with output rotation, use the libinput
** [button]
Set the button used for the *onbutton* scroll method.
- *button* is the decimal form of a value from `linux/input-event-codes.h`.
+ *button* is the decimal form of a value
+ from `linux/input-event-codes.h`.
** [yes|no|disabledOnExternalMouse]
Optionally enable or disable sending any device events.
@@ -1324,7 +1328,7 @@ defined as shown below.
-
+
@@ -1521,7 +1525,7 @@ This is the full list of interfaces that can be controlled with this mechanism:
*XCURSOR_PATH*
Specify a colon-separated list of paths to look for mouse cursors in.
- Default
+ Default is
~/.local/share/icons:
~/.icons:
/usr/share/icons:
@@ -1532,7 +1536,7 @@ This is the full list of interfaces that can be controlled with this mechanism:
*XCURSOR_SIZE*
Specify an alternative mouse cursor size in pixels. Requires
- XCURSOR_THEME to be set also. Default 24.
+ XCURSOR_THEME to be set also. Default is 24.
*XCURSOR_THEME*
Specify a mouse cursor theme within XCURSOR_PATH.
diff --git a/docs/labwc-menu.5.scd b/docs/labwc-menu.5.scd
index df04ccf9..e2c40d84 100644
--- a/docs/labwc-menu.5.scd
+++ b/docs/labwc-menu.5.scd
@@ -12,7 +12,7 @@ Static menus are built based on the menu.xml file located at
# SYNTAX
The menu file must be entirely enclosed within and
- tags. Inside these tags, menus are specified as follows:
+ tags. Inside these tags, menus are specified as follows:
```
@@ -111,7 +111,7 @@ Pipe menus are menus generated dynamically based on output of scripts or
binaries. They are so-called because the output of the executable is piped to
the labwc menu.
-For any ** entry in menu.xml, the
+For any ** entry in menu.xml, the
COMMAND will be executed the first time the item is selected (for example by
cursor or keyboard input). The XML output of the command will be parsed and
shown as a submenu. The content of pipemenus is cached until the whole menu
@@ -124,7 +124,7 @@ menus, for example:
```
-
-
+
```
@@ -144,7 +144,7 @@ obmenu-generator with the menu generator of your choice):
```
-
+
```
diff --git a/docs/labwc-theme.5.scd b/docs/labwc-theme.5.scd
index 5f99cae7..dce48bdf 100644
--- a/docs/labwc-theme.5.scd
+++ b/docs/labwc-theme.5.scd
@@ -135,7 +135,7 @@ window.*.title.bg.colorTo.splitTo: #557485
*window.active.title.bg*
Texture for the focused window's titlebar. See texture section above.
- Default is *Solid*
+ Default is *Solid*.
*window.active.title.bg.color*
Background color for the focused window's titlebar. See texture section
@@ -144,7 +144,7 @@ window.*.title.bg.colorTo.splitTo: #557485
*window.inactive.title.bg*
Texture for non-focused windows' titlebars. See texture section above.
- Default is *Solid*
+ Default is *Solid*.
*window.inactive.title.bg.color*
Background color for non-focused windows' titlebars. See texture section
@@ -470,7 +470,7 @@ all are supported.
Width of magnifier window border in pixels. Default is 1.
*magnifier.border.color*
- Color of the magnfier window border. Default is #ff0000 (red).
+ Color of the magnifier window border. Default is #ff0000 (red).
# BUTTONS
diff --git a/docs/labwc.1.scd b/docs/labwc.1.scd
index 3be47743..56dfe775 100644
--- a/docs/labwc.1.scd
+++ b/docs/labwc.1.scd
@@ -66,7 +66,7 @@ the `--exit` and `--reconfigure` options use.
Manager, or the Window Manager can be launched independently first. On
Wayland, the Compositor is both Display Server and Window Manager, so
the described session management mechanisms do not work because the
- Compositor needs to be running before the session can function. As some
+ Compositor needs to be running before the session can function. As some
session clients support both X11 and Wayland, this command line option
avoids re-writes and fragmentation.
@@ -75,7 +75,7 @@ the `--exit` and `--reconfigure` options use.
(i.e. nested in a compositor). is a format string to be used as
the window title, replacing `%o` with the name of the output
region. This is useful when simulating multiple screens, such as with
- running labwc with the enviornment variable `WLR_WL_OUTPUTS=2`. In this
+ running labwc with the environment variable `WLR_WL_OUTPUTS=2`. In this
case, `%o` will be unique per simulated screen.
*-v, --version*
diff --git a/docs/menu.xml b/docs/menu.xml
index 4b4d5dda..3344161a 100644
--- a/docs/menu.xml
+++ b/docs/menu.xml
@@ -23,7 +23,7 @@
Any menu with the id "workspaces" will be hidden
if there is only a single workspace available.
-->
-
+
diff --git a/include/config/default-bindings.h b/include/config/default-bindings.h
index a49f60f4..788e8d2e 100644
--- a/include/config/default-bindings.h
+++ b/include/config/default-bindings.h
@@ -141,14 +141,14 @@ static struct key_combos {
*
*
*
- *
- *
- *
+ *
+ *
+ *
*
*
*
*
- *
+ *
*
*
*
diff --git a/include/scaled-buffer/scaled-buffer.h b/include/scaled-buffer/scaled-buffer.h
index c2af6054..017e29fb 100644
--- a/include/scaled-buffer/scaled-buffer.h
+++ b/include/scaled-buffer/scaled-buffer.h
@@ -130,7 +130,7 @@ void scaled_buffer_request_update(struct scaled_buffer *self,
/**
* scaled_buffer_invalidate_sharing - clear the list of entire cached
- * scaled_buffers used to share visually dupliated buffers. This should
+ * scaled_buffers used to share visually duplicated buffers. This should
* be called on Reconfigure to force updates of newly created
* scaled_buffers rather than reusing ones created before Reconfigure.
*/
diff --git a/src/action.c b/src/action.c
index daf8fb30..265ff6e7 100644
--- a/src/action.c
+++ b/src/action.c
@@ -145,7 +145,7 @@ struct action_arg_list {
* Will expand to:
*
* enum action_type {
- * ACTION_TYPE_INVALID,
+ * ACTION_TYPE_INVALID = 0,
* ACTION_TYPE_NONE,
* ACTION_TYPE_CLOSE,
* ACTION_TYPE_KILL,
@@ -1312,7 +1312,7 @@ run_action(struct view *view, struct action *action,
/*
* To support only setting one of width/height
- * in
+ * in
* we fall back to current dimension when unset.
*/
struct wlr_box box = {
diff --git a/src/config/rcxml.c b/src/config/rcxml.c
index 0514b6c7..ab0639d1 100644
--- a/src/config/rcxml.c
+++ b/src/config/rcxml.c
@@ -613,9 +613,9 @@ fill_mousebind(xmlNode *node, const char *context)
/*
* Example of what we are parsing:
*
- *
- *
- *
+ *
+ *
+ *
*
*/
diff --git a/src/img/img-xbm.c b/src/img/img-xbm.c
index 91269f64..3771444a 100644
--- a/src/img/img-xbm.c
+++ b/src/img/img-xbm.c
@@ -226,7 +226,7 @@ out:
/*
* Openbox built-in icons are not bigger than 8x8, so have only written this
- * function to cope wit that max size
+ * function to cope with that max size
*/
#define LABWC_BUILTIN_ICON_MAX_SIZE (8)
diff --git a/src/menu/menu.c b/src/menu/menu.c
index 2505317d..c0e93c59 100644
--- a/src/menu/menu.c
+++ b/src/menu/menu.c
@@ -172,7 +172,7 @@ item_parse_accelerator(struct menuitem *item, const char *text)
accel_ptr = underscore + 1;
break;
} else {
- /* Ignore empty accelertor */
+ /* Ignore empty accelerator */
break;
}
}
@@ -627,7 +627,7 @@ fill_menu(struct menu *parent, xmlNode *n)
*
*
*
- *
+ *
*
*/
} else {
diff --git a/src/theme.c b/src/theme.c
index 93ac1c5e..71e577ce 100644
--- a/src/theme.c
+++ b/src/theme.c
@@ -788,7 +788,7 @@ entry(struct theme *theme, const char *key, const char *value)
value, "window.button.spacing");
}
- /* botton hover overlay */
+ /* button hover overlay */
if (match_glob(key, "window.button.hover.bg.color")) {
parse_color(value, theme->window_button_hover_bg_color);
}
diff --git a/src/window-rules.c b/src/window-rules.c
index f43b92f4..4118ae32 100644
--- a/src/window-rules.c
+++ b/src/window-rules.c
@@ -69,8 +69,8 @@ window_rules_get_property(struct view *view, const char *property)
* for foot's "serverDecoration" property to be "default".
*
*
- *
- *
+ *
+ *
*
*/
struct window_rule *rule;