From 97251a7c87ee6902abae2061d5f0ee80bb2860d0 Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 4 Sep 2023 10:43:29 -0500 Subject: [PATCH] Set cursor theme --- user/wm/hyprland/hyprland.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 7a2ade2..c083001 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, stdenv, browser, term, spawnEditor, font, hyprland-plugins, ... }: +{ config, lib, pkgs, stdenv, toString, browser, term, spawnEditor, font, hyprland-plugins, ... }: { imports = [ @@ -10,6 +10,12 @@ }) ]; + gtk.cursorTheme = { + package = pkgs.quintom-cursor-theme; + name = if (config.stylix.polarity == "light") then "Quintom_Ink" else "Quintom_Snow"; + size = 36; + }; + wayland.windowManager.hyprland = { enable = true; plugins = [ @@ -18,6 +24,8 @@ settings = { }; extraConfig = '' exec-once = dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY + exec-once = hyprctl setcursor '' + config.gtk.cursorTheme.name + " " + builtins.toString config.gtk.cursorTheme.size + '' + exec-once = pypr exec-once = nm-applet exec-once = GOMAXPROCS=1 syncthing --no-browser