From 533ea7ada8ad2c412aadb23a9723b6e0460c583b Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 11 Dec 2023 11:16:33 +0000 Subject: [PATCH] Add some useful envvars Change grim directory to ~/Pictures/Grim/ --- home/hyprland/config.nix | 2 +- system/hyprland.nix | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/home/hyprland/config.nix b/home/hyprland/config.nix index 8105641c..0f6690e5 100644 --- a/home/hyprland/config.nix +++ b/home/hyprland/config.nix @@ -18,7 +18,7 @@ in '' env = QT_QPA_PLATFORM,wayland env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 env = MOZ_ENABLE_WAYLAND,1 - env = GRIM_DEFAULT_DIR=${config.xdg.userDirs.pictures}/Screenshots + env = GRIM_DEFAULT_DIR=${config.xdg.userDirs.pictures}/Grim exec-once = hyprctl setcursor ${cursorName} ${cursorSize} exec-once = dbus-update-activation-environment --systemd --all diff --git a/system/hyprland.nix b/system/hyprland.nix index 680d2de6..c6b83077 100644 --- a/system/hyprland.nix +++ b/system/hyprland.nix @@ -5,7 +5,13 @@ nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland"; environment = { - sessionVariables.NIXOS_OZONE_WL = "1"; + sessionVariables = { + NIXOS_OZONE_WL = "1"; + XDG_CURRENT_DESKTOP = "Hyprland"; + XDG_SESSION_TYPE = "wayland"; + XDG_SESSION_DESKTOP = "Hyprland"; + GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim"; + }; systemPackages = with pkgs; [ libsForQt5.polkit-kde-agent xdg-utils