Skip to content

Commit e09cdb4

Browse files
committed
faq: merge content of troubleshooting.md
1 parent c871854 commit e09cdb4

File tree

3 files changed

+43
-38
lines changed

3 files changed

+43
-38
lines changed

src/faq.md

+43-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@
88
1. [Server Side Decoration](#server-side-decoration)
99
3. [Mouse and Trackpads](#mouse-and-trackpads)
1010
1. [Libinput](#libinput)
11+
2. [Mousebinds](#mousebinds)
12+
3. [Cursor](#cursor)
1113
4. [XML](#xml)
1214
1. [XML Nodenames](#xml-nodenames)
1315
5. [Scripting](#scripting)
1416
1. [Run or Raise](#run-or-raise)
1517
6. [Environment Variables](#environment-variables)
1618
7. [Nested XWayland](#nested-xwayland)
19+
8. [Hardware](#hardware)
20+
1. [Nvidia](#nvidia)
21+
2. [Laptop Lid](#laptop-lid)
1722

1823
# 1. Keybinds {#keybinds}
1924

@@ -135,7 +140,7 @@ window.inactive.button.menu.unpressed.image.color: #000000 0
135140

136141
Not yet implemented.
137142

138-
## 3.2 Mousebinds
143+
## 3.2 Mousebinds {#mousebinds}
139144

140145
### Q: I'm used to MS Windows and would like all window to unfocus when I click the desktop. How can this be achieved?
141146

@@ -150,6 +155,19 @@ Not yet implemented.
150155
</mouse>
151156
```
152157

158+
## 3.3 Cursor {#cursor}
159+
160+
### Q: I cannot see a cursor. What should I do?
161+
162+
If no cursor is showing (sometimes reported by people running vwmare), try
163+
adding `WLR_NO_HARDWARE_CURSORS=1` to `~/.config/labwc/environment`.
164+
165+
If cursors do not update as expected, try installing a cursor theme (for
166+
example `Adwaita`) and set `XCURSOR_THEME` in `~/.config/labwc/environment`
167+
accordingly (for example `XCURSOR_THEME=Adwaita`). `labwc` handles missing
168+
cursor themes by falling back on builtin old X11 cursors, but some applications
169+
do not resulting in the wrong or no cursor being set.
170+
153171
# 4. XML {#xml}
154172

155173
## 4.1 XML Nodenames {#xml-nodenames}
@@ -206,7 +224,7 @@ See [labwc-config(5)-syntax] for more details.
206224

207225
# 5. Scripting {#scripting}
208226

209-
## 5.2 Run or Raise {#run-or-raise}
227+
## 5.1 Run or Raise {#run-or-raise}
210228

211229
The [wlr-foreign-toplevel-management] protocol provides clients with a list of
212230
opened applications and lets them request certain actions on them, like
@@ -277,5 +295,27 @@ DISPLAY=:55 dbus-run-session openbox-session
277295
278296
```
279297

280-
298+
# 8. [Hardware]{#hardware}
299+
300+
## 8.1 [Nvidia]{#nvidia}
301+
302+
If Electron clients are glitchy or lagging try setting these environment
303+
variables:
304+
305+
```
306+
GBM_BACKEND=nvidia-drm
307+
__GLX_VENDOR_LIBRARY_NAME=nvidia
308+
```
309+
310+
## 8.2 [Laptop Lid]{#laptop-lid}
311+
312+
When using a laptop with an external monitor and the built-in monitor is closed,
313+
the system may go into hibernation when disconnecting. To avoid this, edit the
314+
configuration file `etc/systemd/logind.conf' and set following to ignore (see
315+
logind.conf(5) manual for more info):
316+
317+
```
318+
HandleLidSwitch=ignore
319+
HandleLidSwitchExternalPower=ignore
320+
```
281321

src/more.md

-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
- [hidpi scaling](hidpi-scaling.html)
44
- [links](links.html)
55
- [obligatory screenshot](obligatory-screenshot.html)
6-
- [troubleshooting](troubleshooting.html)
76

src/troubleshooting.md

-34
This file was deleted.

0 commit comments

Comments
 (0)