Hyprland import home-manager session variables

This commit is contained in:
Nathan McCarty 2023-07-06 20:39:52 -04:00
parent 6a7b831507
commit aa126bb930
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
2 changed files with 217 additions and 213 deletions

View File

@ -6,12 +6,7 @@ let
shortcuts = inputs.self.packages.${pkgs.system}.shortcuts;
in lib.mkMerge [
# Hyprland specific configuration
(lib.mkIf hyprland {
wayland.windowManager.hyprland.extraConfig = ''
env = QT_QPA_PLATFORMTHEME,qtct
env = QT_STYLE_OVERRIDE,kvantum
'';
})
(lib.mkIf hyprland { })
# General configuration
(lib.mkIf hyprland {
home.packages = with pkgs; [

View File

@ -34,12 +34,21 @@ in with lib; {
recommendedEnvironment = true;
systemdIntegration = false;
extraConfig = ''
# Set environment variables to force wayland
env = XCURSOR_SIZE,24
# env = GDK_BACKEND,wayland,x11
# env = QT_QPA_PLATFORM,wayland;xcb
# env = SDL_VIDEODRIVER,wayland
# env = CLUTTER_BACKEND,wayland
# import home manager session variables
${lib.concatStringsSep "\n" (builtins.attrValues
(builtins.mapAttrs (name: value: "env = ${name},${value}")
config.home.sessionVariables))}
# Setup missing XDG variables
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
# Make applications respect wayland
env = GDK_BACKEND,wayland,x11
env = QT_QPA_PLATFORM,wayland;xcb
env = SDL_VIDEODRIVER,wayland
env = CLUTTER_BACKEND,wayland
input {
kb_layout = us
kb_variant =