hyprland-wiki/pages/FAQ/_index.md

455 lines
16 KiB
Markdown
Raw Normal View History

---
weight: 11
title: FAQ
---
### My apps are pixelated
2022-08-13 17:00:36 +02:00
This just means they are running through XWayland, which physically cannot scale
by fractional amounts.
2023-11-04 21:19:37 +01:00
To force them to run in native Wayland mode, see
2024-03-17 13:44:39 +01:00
[the Master Tutorial](../Getting-Started/Master-Tutorial/#force-apps-to-use-wayland).
2023-11-04 21:19:37 +01:00
2024-03-17 13:44:39 +01:00
If they can't, see [the XWayland page](../Configuring/XWayland).
2023-11-04 21:19:37 +01:00
### Nothing renders / screen is empty / crash on opening first app
2022-08-12 20:46:36 +02:00
Possible causes:
2022-08-13 17:00:36 +02:00
> Your themes are not set up properly, making apps crash.
2022-08-12 20:46:36 +02:00
Use something like `qt6ct` (Qt) and `nwg-look` (GTK) (\*for GTK you can also set
up themes with envvars) to set up your themes.
2022-08-12 20:46:36 +02:00
> Your PC is very, _very_ old.
2022-08-12 20:46:36 +02:00
2024-03-17 13:44:39 +01:00
In that case, see the [Installation Page](../Getting-Started/Installation)
and try compiling with LEGACY_RENDERER
2022-08-12 20:46:36 +02:00
_For more info about bugs and crashes, see this_
2024-03-17 13:44:39 +01:00
_[wiki page](../Crashes-and-Bugs)_
2022-08-12 20:46:36 +02:00
### My external monitor is blank / doesn't render / receives no signal (laptop)
For Nvidia graphics - This issue appears to be resolved when using Nvidia
Drivers 525.60.11 or later, but it may persist with older drivers.
2024-11-06 19:34:37 +01:00
For systems with limited hardware (Ex. iGPU, USB-C, USB Hubs) - Set `env = AQ_NO_MODIFIERS,1` in your config.
To diagnose if you have the exact problem above you can get a [DRM log](https://wiki.hyprland.org/Crashes-and-Bugs/#debugging-drm-issues) and look for
2024-11-06 19:34:37 +01:00
```plain
Requested display configuration exceeds system DDB limitations
```
2022-12-28 19:49:31 +01:00
Outside those, there is a way to fix it that _might_ work for you though:
2022-08-25 20:19:11 +02:00
**Option 1:** Use _only_ the external monitor
2022-08-25 20:19:11 +02:00
By using `AQ_DRM_DEVICES=/dev/dri/card1` (or `card0`) environment variable you can force Hyprland to
use only your dGPU, meaning your laptop's screen will be gone but your external
one will work.
2022-08-25 20:19:11 +02:00
**Option 2:** Use all outputs, at the cost of battery life.
By switching your laptop to only use the dGPU in the BIOS, you _might_ be able
to get everything to work, at the cost of high battery usage.
2022-08-25 20:19:11 +02:00
_Please note these are highly model-specific and might or might not work. If
they don't, you're unfortunately out of luck._
2022-08-25 20:19:11 +02:00
You might try a USB-C to HDMI adapter though, maybe that could route the
external monitor through the iGPU.
2022-08-25 20:19:11 +02:00
### How do I screenshot?
2022-08-12 20:46:36 +02:00
**Option 1:** Install `grim` and `slurp`.
2022-08-12 20:46:36 +02:00
Use a keybind (or execute) `grim -g "$(slurp)"`, and select a region. A screenshot
2022-08-12 20:46:36 +02:00
will pop into your `~/Pictures/` (You can configure grim and slurp, see their
2022-10-10 16:22:57 +02:00
GitHub pages).
2022-08-13 18:45:33 +02:00
If you want those screenshots to go directly to your clipboard, consider using
`wl-copy`, from [`wl-clipboard`](https://github.com/bugaevc/wl-clipboard).
Here's an example binding:
`bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy` For a more complete
utility, try our own screenshotting utility:
2022-08-13 18:45:33 +02:00
[Grimblast](https://github.com/hyprwm/contrib).
2022-08-12 20:46:36 +02:00
**Option 2:** You can also use hyprshot, more info [here](https://github.com/Gustash/Hyprshot).
**Option 3:** Install `flameshot`.
Flameshot has many built-in features like allowing you to draw with a paintbrush,
add lines, add shapes, etc.
Flameshot was built originally for X and **it has many issues on Wayland** and users
with HiDPI and multi-monitor setups have had mixed experiences with Flameshot.
The options above are smoother and more native to Wayland. If you still want to
use Flameshot, here are some configuration recommendations by users who've found
workarounds.
2024-11-06 19:34:37 +01:00
```ini
# noanim isn't necessary but animations with these rules might look bad. use at your own discretion.
windowrulev2 = noanim, class:^(flameshot)$
windowrulev2 = float, class:^(flameshot)$
windowrulev2 = move 0 0, class:^(flameshot)$
windowrulev2 = pin, class:^(flameshot)$
# set this to your leftmost monitor id, otherwise you have to move your cursor to the leftmost monitor
# before executing flameshot
windowrulev2 = monitor 1, class:^(flameshot)$
# ctrl-c to copy from the flameshot gui gives warped images sometimes, but
# setting the env fixes it
bind = ..., exec, XDG_CURRENT_DESKTOP=sway flameshot gui
```
For recording videos, [wf-recorder](https://github.com/ammen99/wf-recorder),
[wl-screenrec](https://github.com/russelltg/wl-screenrec) or
[OBS Studio](https://obsproject.com/) could be used.
### Screenshare / OBS no worky
2024-03-17 13:44:39 +01:00
Check [Screensharing](../Useful-Utilities/Screen-Sharing).
Also install `qt6-wayland` if you plan to use obs.
### How do I change my wallpaper?
2022-08-12 20:46:36 +02:00
2024-03-17 13:44:39 +01:00
See [Wallpapers](../Useful-Utilities/Wallpapers).
2022-08-12 20:46:36 +02:00
### How heavy is this?
2022-08-12 20:46:36 +02:00
Not that much heavier than Xorg. If you want maximum performance, consider
turning off the blur and animations.
### My monitor no worky
2022-08-12 20:46:36 +02:00
Try changing the mode in your config. If your preferred one doesn't work, try a
lower one. A good way to list all modes is to get `wlr-randr` and do a
`wlr-randr --dryrun`
### My monitor has flickering brightness when I turn on VRR
Change the VRR option to `2` (fullscreen), so that it is only used in games.
This happens because the brightness on some monitors can depends on the refresh
rate, and rapidly changing refresh rates (for example, when the screen
momentarily updates after pressing a key) will cause rapid changes in
brightness.
### How do I update?
2022-08-12 20:46:36 +02:00
Open a terminal where you cloned the repo.
```bash
git pull
2023-10-14 19:52:53 +02:00
make all && sudo make install
```
2022-08-21 11:06:00 +02:00
If you are using the AUR (hyprland-git) package, you will need to cleanbuild to
update the package. Paru has been problematic with updating before, use Yay.
2022-08-21 11:06:00 +02:00
### How do I screen lock?
2022-08-12 20:46:36 +02:00
Use a Wayland-compatible locking utility using WLR protocols, e.g. `swaylock`.
Be aware that they will not prevent tty-changing using Ctrl-Alt-F1...F7.
2022-08-12 20:46:36 +02:00
### How do I change me mouse cursor?
2022-08-12 20:46:36 +02:00
2024-03-17 13:44:39 +01:00
See [hyprcursor](../Hypr-Ecosystem/hyprcursor)
2024-11-06 19:34:37 +01:00
1. Set the GTK cursor using [nwg-look](https://github.com/nwg-piotr/nwg-look).
2. Add `exec-once=hyprctl setcursor [THEME] [SIZE]` to your config and restart Hyprland.
If using flatpak, run `flatpak override --filesystem=~/.themes:ro --filesystem=~/.icons:ro --user` and put your themes in both `/usr/share/themes` and `~/.themes`, and put your icons and cursors in both `/usr/share/icons` and `~/.icons`.
For Qt applications, Hyprland exports XCURSOR_SIZE as 24, which is the default.
You can overwrite this by exporting XCURSOR_SIZE to a different value with `env`.
2022-08-12 20:46:36 +02:00
You can also try running `gsettings set org.gnome.desktop.interface cursor-theme 'theme-name'` or adding it after `exec-once=` in your config.
If you do not want to install a GTK settings editor, change the config files according to the
[XDG specification (Arch Wiki link)](https://wiki.archlinux.org/title/Cursor_themes#Configuration).
Make sure to also edit `~/.config/gtk-4.0/settings.ini` and `~/.gtkrc-2.0` if _not_ using a tool
(like `nwg-look`).
### GTK Settings no work / whatever
2022-08-12 20:46:36 +02:00
[https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland](https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland)
### My \[program name\] is freezing
2022-08-12 20:46:36 +02:00
Make sure you have a notification daemon running, for example `dunst`. Autostart
it with the `exec-once` keyword.
### Waybar workspaces no worky???
2022-08-12 20:46:36 +02:00
Waybar has a set of caveats or settings that you need to be aware of. See
2024-03-17 13:44:39 +01:00
[Status bars](../Useful-Utilities/Status-Bars) for solutions.
2022-08-12 20:46:36 +02:00
### How do I autostart my favorite apps?
2022-08-12 20:46:36 +02:00
Using the window rules to assign apps to workspaces, you can open a bunch of
2023-08-02 18:28:58 +02:00
applications on various workspaces. The following method will start these apps
silently (i.e. without the flickering from workspace to workspace).
2022-08-12 20:46:36 +02:00
2022-08-13 19:09:01 +02:00
Put the following in your `hyprland.conf`: (example)
2022-08-12 20:46:36 +02:00
2022-09-24 16:03:37 +02:00
```ini
2024-08-13 22:19:28 +02:00
exec-once = [workspace 1 silent] kitty
exec-once = [workspace 1 silent] subl
exec-once = [workspace 3 silent] mailspring
exec-once = [workspace 4 silent] firefox
2022-08-12 20:46:36 +02:00
```
### How do I move my favorite workspaces to a new monitor when I plug it in?
2022-08-12 20:46:36 +02:00
If you want workspaces to automatically go to a monitor upon connection, use the
2022-08-12 20:46:36 +02:00
following:
In hyprland.conf:
2022-09-24 16:03:37 +02:00
```ini
2024-08-13 22:19:28 +02:00
exec-once = handle_monitor_connect.sh
2022-08-12 20:46:36 +02:00
```
where `handle_monitor_connect.sh` is: (example)
```sh {filename="handle_monitor_connect.sh"}
2022-08-12 20:46:36 +02:00
#!/bin/sh
handle() {
case $1 in monitoradded*)
2022-08-12 20:46:36 +02:00
hyprctl dispatch moveworkspacetomonitor "1 1"
hyprctl dispatch moveworkspacetomonitor "2 1"
hyprctl dispatch moveworkspacetomonitor "4 1"
hyprctl dispatch moveworkspacetomonitor "5 1"
esac
2022-08-12 20:46:36 +02:00
}
socat - "UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/${HYPRLAND_INSTANCE_SIGNATURE}/.socket2.sock" | while read -r line; do handle "$line"; done
2022-08-12 20:46:36 +02:00
```
This makes workspaces 1, 2, 4, and 5 go to monitor 1 when connecting it.
2022-08-12 20:46:36 +02:00
Please note this requires `socat` to be installed.
### My tablet no worky??
2022-08-12 20:46:36 +02:00
Use [Open Tablet Driver](https://github.com/OpenTabletDriver/OpenTabletDriver)
to configure your tablet. In the future it will be supported in the config.
Until then, OTD is the way to go.
2022-08-12 20:46:36 +02:00
### Some of my apps take a really long time to open...?
2022-08-12 20:46:36 +02:00
```ini {filename="~/.config/hypr/hyprland.conf"}
2024-08-13 22:19:28 +02:00
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
2022-09-12 15:17:26 +02:00
```
Make sure that your portals launch _after_ this gets executed. For some people,
2022-10-02 14:44:10 +02:00
they might launch before that has happened.
In such cases, a script like this:
```bash
#!/usr/bin/env bash
2022-10-02 14:44:10 +02:00
sleep 4
killall -e xdg-desktop-portal-wlr
2022-10-02 14:44:10 +02:00
killall xdg-desktop-portal
/usr/lib/xdg-desktop-portal-wlr &
sleep 4
/usr/lib/xdg-desktop-portal &
```
launched with `exec-once` should fix all issues. Adjust the sleep durations to
taste.
2022-08-12 20:46:36 +02:00
### How do I export envvars for Hyprland?
2022-08-12 20:46:36 +02:00
2024-03-17 13:44:39 +01:00
See [Environment Variables](../Configuring/Environment-variables)
2022-08-12 20:46:36 +02:00
2023-05-26 20:33:55 +02:00
The `env` keyword is used for this purpose. For example:
2023-05-26 20:33:55 +02:00
```ini
env = XDG_CURRENT_DESKTOP,Hyprland
2022-08-12 20:46:36 +02:00
```
### How to disable middle-click paste?
2023-01-27 11:32:59 +01:00
Setting `misc:middle_click_paste` to `false` disables the feature altogether with the exception of some browsers (notably firefox) having a separate built-in way of emulating that feature which has to be disabled within the browser's settings.
### How do I make Hyprland draw as little power as possible on my laptop?
2022-08-12 20:46:36 +02:00
**_Useful Optimizations_**:
2022-08-12 20:46:36 +02:00
- `decoration:blur:enabled = false` and `decoration:shadow:enabled = false` to disable
fancy but battery hungry effects.
2022-08-12 20:46:36 +02:00
- `misc:vfr = true`, since it'll lower the amount of sent frames when nothing is
happening on-screen.
2022-09-10 17:30:19 +02:00
### My apps take a long time to start / can't screenshare
2023-02-17 00:56:49 +01:00
2024-03-17 13:44:39 +01:00
See [The XDPH Page](../Useful-Utilities/xdg-desktop-portal-hyprland).
2023-02-17 00:56:49 +01:00
You most likely have multiple portal impls / an impl is failing to launch.
### My screenshot utilities won't work with multiple screens
Some programs like Flameshot (currently) have limited Wayland support, so on most
Wayland compositors, you will have to do a few tweaks. For Hyprland, you can add
these window rules to your config to make these programs work with both of your
screens.
```ini
2024-08-13 22:19:28 +02:00
windowrulev2 = float,title:^(flameshot)
windowrulev2 = move 0 0,title:^(flameshot)
windowrulev2 = suppressevent fullscreen,title:^(flameshot)
```
### I cannot bind SUPER as my mod key on my laptop
Many laptops have a built-in function to toggle `SUPER` between single key press
mode and hold mode. This is usually indicated by a padlock on the `SUPER` key.
First, install and run `wev`, then press `SUPER`. If you see a key press event
followed by an instant key release event, then it's likely your `SUPER` key is
set to single press mode.
On most laptops, this can be fixed by pressing `FN+SUPER` and verified in `wev`.
You should be able to hold `SUPER` and not see an instant release event. In case
`FN+SUPER` doesn't work, consult your laptop's manual.
2023-09-20 18:04:05 +02:00
### My VM doesn't receive keybinds I have set in Hyprland
2023-09-20 18:04:05 +02:00
This is expected, as Hyprland takes precedence.
A simple fix is to create an empty "passthrough" submap:
```ini
bind = MOD,KEY,submap,passthru
submap = passthru
bind = SUPER,Escape,submap,reset
submap = reset
```
Set `MOD` and `KEY` to desired values.
2023-09-20 18:04:05 +02:00
By pressing the selected combo, you will enter a mode where Hyprland ignores your
keybinds and passes them on to the VM. Pressing `SUPER + Escape` will leave that mode.
2023-12-12 00:05:16 +01:00
### Some of my drop-down/pop-up windows in apps disappear/don't open at cursor position
2023-12-12 00:05:16 +01:00
In some apps like Steam or VSCode, the drop-down windows may disappear if you
hover over them. This can be fixed with window rules.
2023-12-12 00:05:16 +01:00
First, find the title and class of the pop-up window with `hyprctl clients`. You
can try something like `sleep 3 && hyprctl clients` so you have time to open the
pop-up. It should look something like this:
2023-12-12 00:05:16 +01:00
```bash
Window 55d794495400 -> :
2024-11-06 19:34:37 +01:00
...
class: [CLASS here]
title: [TITLE here]
...
2023-12-12 00:05:16 +01:00
```
If the pop-up disappears as you hover over it, you can add to your config:
```ini
windowrulev2 = stayfocused, title:^(TITLE)$, class:^(CLASS)$
```
This has a downside of not being able to click on anything in the main UI until
you've interacted with the pop-up.
2023-12-12 00:05:16 +01:00
If the pop-up disappears immediately, you can use:
```ini
windowrulev2 = minsize 1 1, title:^(TITLE)$, class:^(CLASS)$
```
If the pop-up doesn't open at the cursor position, try the following:
```ini
windowrulev2 = move onscreen cursor, title:^(TITLE)$, class:^(CLASS)$
```
This is required for apps running under xwayland only and there is usually no need
to use the first solution if opening at the cursor position.
### Steam's file picker no worky
On instances where you have a Steam library on another drive that you have to
add, Hyprland's file picker would not normally appear when selecting a directory
from Steam.
Steam has its own file picker, however, it's not functional. Install
`xdg-desktop-portal-gtk` to show the desktop's file picker.
2024-06-02 18:47:12 +02:00
### Workspaces or clients are disappearing or monitor related dispatchers cause crashes
It seems there is a Kernel bug making the system think there is an extra
phantom monitor, that causes all sorts of issues, crashes and weird behaviors
like disapearing workspaces or clients when adding or removing an external
monitor.
First check the list of monitors detected by Hyprland by running:
```ini
hyprctl monitors
```
If you see a monitor that should not be there (usually named `Unknown-1`), you
can work around the issue by adding in your `hyprland.conf`:
```ini
2024-08-13 22:19:28 +02:00
monitor = Unknown-1,disabled
```
2024-08-08 15:00:17 +02:00
2024-09-21 22:13:25 +02:00
### I get a .so file missing error on launch
2024-08-08 15:00:17 +02:00
If you are using a -git package, this is a common occurrence when ABI-breaking updates are done.
2024-11-06 19:34:37 +01:00
_**Do not**_ symlink different .so versions, this will cause crashes!!!
2024-08-08 15:00:17 +02:00
Instead, find all hypr* packages with `-git` you have installed, remove them (possibly remove dependencies of them, too)
and simply install them again.
If using yay, make sure to `CleanBuild` every package. If using paru, manually remove the cache of hypr* packages in `~/.cache/paru`.
If you are not using any -git packages, this is a mistake in your distro's packaging and should be solved there.
2024-08-19 18:54:45 +02:00
2024-09-21 22:13:25 +02:00
### My cursor is a hyprland icon?
2024-08-19 18:54:45 +02:00
This means you have no hyprcursor theme installed, and hyprland failed to find an XCursor theme as well. Install a cursor theme.
2024-10-29 22:38:10 +01:00
### Smart gaps please?
[Here](../Configuring/Workspace-Rules/#smart-gaps).
2024-11-11 17:16:51 +01:00
### Hyprwinwrap is not visible through blurred windows
This is a side effect of the [decoration:blur:new_optimizations](../Configuring/Variables/#blur).
You have two options to resolve it.
1. Set `decoration:blur:new_optimizations` to `false` - This will preserve the exact same appearance, but may have a slight performance cost.
2. Set `decoration:blur:ignore_opacity` to `false` - This will drastically affect the appearance, but should maintain the original performance.
2024-11-18 17:37:42 +01:00
### How can I use Hyprlock as a login screen I start my computer?
To use a unified/single login screen you have to configure your display manager to auto login and run Hyprlock on startup. For [SDDM+KDE to auto login](https://wiki.archlinux.org/title/SDDM#Autologin) (also possible with (greetd)[https://wiki.archlinux.org/title/Greetd#Enabling_autologin]) you have to add this to `/etc/sddm.config.d/kde_settings.conf`:
```ini
[Autologin]
Session=hyprland
User=MY_USERNAME
```
> run `whoami` and replace the output with MY_USERNAME
Add this to `~/.config/hypr/hyprland.conf`:
```ini
exec-once=hyprlock || hyprctl dispatch exit
```