From 737f3b9dfd2c6219070505824180fd00ce05949c Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Fri, 1 Mar 2024 19:13:36 +0100 Subject: [PATCH] add mouse cursor --- common/hyprland.nix | 3 +++ hosts/default/home.nix | 30 +++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/common/hyprland.nix b/common/hyprland.nix index e9c9cd2..e7c7098 100644 --- a/common/hyprland.nix +++ b/common/hyprland.nix @@ -13,6 +13,9 @@ # I always want these with hyprland anyways dunst wl-clipboard + + slurp + grim ]; wayland.windowManager.hyprland = { enable = true; diff --git a/hosts/default/home.nix b/hosts/default/home.nix index 5fbf680..fb9e94b 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -38,7 +38,7 @@ mtr firefox - + steam dconf pipewire @@ -91,6 +91,12 @@ createDirectories = true; }; + xdg.portal = { + enable = true; + extraPortals = [ pkgs.xdg-desktop-portal-hyprland ]; + configPackages = [ pkgs.hyprland ]; + }; + dconf = { enable = true; settings = { @@ -102,4 +108,26 @@ # Let Home Manager install and manage itself. programs.home-manager.enable = true; + + home.pointerCursor = + let + getFrom = url: hash: name: { + gtk.enable = true; + x11.enable = true; + name = name; + size = 48; + package = + pkgs.runCommand "moveUp" {} '' + mkdir -p $out/share/icons + ln -s ${pkgs.fetchzip { + url = url; + hash = hash; + }} $out/share/icons/${name} + ''; + }; + in + getFrom + "https://github.com/ful1e5/fuchsia-cursor/releases/download/v2.0.0/Fuchsia-Pop.tar.gz" + "sha256-BvVE9qupMjw7JRqFUj1J0a4ys6kc9fOLBPx2bGaapTk=" + "Fuchsia-Pop"; }