mirror of
https://github.com/swaywm/sway.git
synced 2025-04-25 06:40:35 +00:00
Updated Home (markdown)
parent
8653344002
commit
9c7e9b44ae
1 changed files with 10 additions and 9 deletions
19
Home.md
19
Home.md
|
@ -260,7 +260,8 @@ You may wish to add `exec xrdb ~/.Xresources` to your sway config to configure t
|
|||
What can I do?
|
||||
|
||||
If you're using ConsoleKit2, launch sway using
|
||||
```
|
||||
|
||||
```sh
|
||||
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session sway
|
||||
```
|
||||
|
||||
|
@ -383,8 +384,8 @@ This seems to fix blank windows and menus that are drawn at a wrong offset to th
|
|||
|
||||
Some JetBrains IDEs (including Android Studio) ship with a Java 1.8 JRE, but there are fixes included in later JRE versions that are necessary to run properly in Sway. You can instruct your IDE to use a different JRE through an invocation of the form:
|
||||
|
||||
```
|
||||
$ STUDIO_JDK=/usr/lib/jvm/java-11-openjdk-amd64/ /opt/android-studio/bin/studio.sh
|
||||
```sh
|
||||
STUDIO_JDK=/usr/lib/jvm/java-11-openjdk-amd64/ /opt/android-studio/bin/studio.sh
|
||||
```
|
||||
|
||||
If you are running Sway 1.4 or earlier, you will also need to upgrade to Sway/wlroots master, as there are necessary fixes there too.
|
||||
|
@ -405,7 +406,7 @@ Unless specified otherwise, `wlroots` will choose a card for you and you could h
|
|||
|
||||
To use a different default card (listed in `/dev/dri/`), set this environment variable before starting sway:
|
||||
|
||||
```
|
||||
```sh
|
||||
WLR_DRM_DEVICES=/dev/dri/card1 sway
|
||||
```
|
||||
|
||||
|
@ -413,7 +414,7 @@ It's likely that you want sway to use the integrated (Intel) card, because proba
|
|||
|
||||
This script detects which is the device path of the integrated card and launches sway accordingly:
|
||||
|
||||
```
|
||||
```sh
|
||||
#!/bin/sh
|
||||
val=$(udevadm info -a -n /dev/dri/card1 | grep boot_vga | rev | cut -c 2)
|
||||
cmd="WLR_DRM_DEVICES=/dev/dri/card$val sway"
|
||||
|
@ -422,7 +423,7 @@ eval "$cmd"
|
|||
|
||||
You can also configure multiple graphics cards like so:
|
||||
|
||||
```
|
||||
```sh
|
||||
WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1 sway
|
||||
```
|
||||
|
||||
|
@ -445,7 +446,7 @@ Workaround:
|
|||
Xft.dpi: 96
|
||||
```
|
||||
3. Add the following line to the Sway config:
|
||||
```
|
||||
```sh
|
||||
exec xrdb -load ~/.Xresources
|
||||
```
|
||||
|
||||
|
@ -475,7 +476,7 @@ If you get the message "Firefox is already running", set the environmental varia
|
|||
|
||||
Try something like this:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
# For Android Studio
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export STUDIO_JDK=/usr/lib/jvm/java-14-openjdk
|
||||
|
@ -492,7 +493,7 @@ This is due to GTK+ waiting for `xdg-desktop-portal` to start via D-Bus. This ti
|
|||
|
||||
This can be fixed by adding the following to your configuration file:
|
||||
|
||||
```
|
||||
```sh
|
||||
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
exec hash dbus-update-activation-environment 2>/dev/null && \
|
||||
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
|
|
Loading…
Add table
Reference in a new issue