fix: prevent offload everything in Hyprland
This commit is contained in:
parent
75a114ddbe
commit
c93bc1099c
3 changed files with 3 additions and 13 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
WLR_DRM_DEVICES = "/dev/dri/card1";
|
WLR_DRM_DEVICES = "/dev/dri/card1";
|
||||||
WLR_NO_HARDWARE_CURSORS = "1";
|
WLR_NO_HARDWARE_CURSORS = "1";
|
||||||
CLUTTER_BACKEND = "wayland";
|
CLUTTER_BACKEND = "wayland";
|
||||||
|
EGL_PLATFORM = "wayland";
|
||||||
WLR_RENDERER = "vulkan";
|
WLR_RENDERER = "vulkan";
|
||||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
XDG_CURRENT_DESKTOP = "Hyprland";
|
||||||
XDG_SESSION_DESKTOP = "Hyprland";
|
XDG_SESSION_DESKTOP = "Hyprland";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ mainMod }:
|
{ mainMod }:
|
||||||
let
|
let
|
||||||
uwsm = "uwsm app --";
|
uwsm = "uwsm app --";
|
||||||
browser = "firefox";
|
browser = "offload firefox";
|
||||||
terminal = "ghostty";
|
terminal = "offload ghostty";
|
||||||
filemanager = "nemo";
|
filemanager = "nemo";
|
||||||
scripts = "~/.config/scripts";
|
scripts = "~/.config/scripts";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,15 +111,4 @@ lib.checkListOfEnum "Nvidia Prime Mode" validModes [ nvidia-mode ] {
|
||||||
# make sure to put the iGPU first
|
# make sure to put the iGPU first
|
||||||
AQ_DRM_DEVICES = "/dev/dri/card1:/dev/dri/card0";
|
AQ_DRM_DEVICES = "/dev/dri/card1:/dev/dri/card0";
|
||||||
};
|
};
|
||||||
|
|
||||||
# NOTE: You need set "env XDG_CURRENT_DESKTOP, Hyprland" in hyprland config
|
|
||||||
# Otherwise you got XDG_CURRENT_DESKTOP="offload:Hyprland" which may cause problems
|
|
||||||
# Change display manager session file
|
|
||||||
programs.uwsm.waylandCompositors = lib.mkForce {
|
|
||||||
hyprland = {
|
|
||||||
prettyName = "Hyprland";
|
|
||||||
comment = "Hyprland compositor managed by UWSM";
|
|
||||||
binPath = "${offload}/bin/offload /run/current-system/sw/bin/Hyprland";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue