feat: use xdg userdirs

This commit is contained in:
EinEtwas 2024-10-27 00:25:26 +02:00
parent 73349db100
commit 70f9ea150d
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0

View file

@ -1,4 +1,5 @@
{ lib, pkgs, ... }: { { lib, pkgs, ... }:
{
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
#package = pkgs.hyprland-patched; #package = pkgs.hyprland-patched;
@ -41,7 +42,6 @@
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg"; "col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
"col.inactive_border" = "rgba(595959aa)"; "col.inactive_border" = "rgba(595959aa)";
layout = "dwindle"; layout = "dwindle";
}; };
@ -108,7 +108,17 @@
hyprshot = lib.getExe pkgs.hyprshot; hyprshot = lib.getExe pkgs.hyprshot;
wofi = lib.getExe pkgs.wofi; wofi = lib.getExe pkgs.wofi;
swaylock = lib.getExe pkgs.swaylock; 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 in
[ [
# Main binds # Main binds
@ -194,12 +204,22 @@
}; };
}; };
xdg = {
userDirs = {
enable = true;
createDirectories = true;
};
};
xdg.portal = { xdg.portal = {
enable = true; enable = true;
xdgOpenUsePortal = true; xdgOpenUsePortal = true;
extraPortals = [ extraPortals = [
pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-hyprland
]; ];
config.common.default = "*"; config.common.default = "*";
}; };
} }