From 70f9ea150de05dd7896a7785611c72cc33843288 Mon Sep 17 00:00:00 2001 From: EinEtwas Date: Sun, 27 Oct 2024 00:25:26 +0200 Subject: [PATCH] feat: use xdg userdirs --- home/desktop/hyprland.nix | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/home/desktop/hyprland.nix b/home/desktop/hyprland.nix index 1f74959..5670eec 100644 --- a/home/desktop/hyprland.nix +++ b/home/desktop/hyprland.nix @@ -1,4 +1,5 @@ -{ lib, pkgs, ... }: { +{ lib, pkgs, ... }: +{ wayland.windowManager.hyprland = { enable = true; #package = pkgs.hyprland-patched; @@ -41,7 +42,6 @@ "col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg"; "col.inactive_border" = "rgba(595959aa)"; - layout = "dwindle"; }; @@ -108,7 +108,17 @@ hyprshot = lib.getExe pkgs.hyprshot; wofi = lib.getExe pkgs.wofi; swaylock = lib.getExe pkgs.swaylock; - workspaces = [ "1" "2" "3" "4" "5" "6" "7" "8" "9" ]; + workspaces = [ + "1" + "2" + "3" + "4" + "5" + "6" + "7" + "8" + "9" + ]; in [ # Main binds @@ -194,12 +204,22 @@ }; }; + xdg = { + userDirs = { + enable = true; + createDirectories = true; + }; + }; + xdg.portal = { enable = true; + xdgOpenUsePortal = true; + extraPortals = [ pkgs.xdg-desktop-portal-hyprland ]; + config.common.default = "*"; }; }