From b33440435ac9a1e0ad5c5d11fa1548f2135cd2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sun, 7 Aug 2022 22:00:01 -0300 Subject: [PATCH] setup cursor correctly --- user/home.nix | 3 +-- user/sway.nix | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/user/home.nix b/user/home.nix index 5921809..ec588be 100644 --- a/user/home.nix +++ b/user/home.nix @@ -296,9 +296,8 @@ in { }; home.pointerCursor = { name = "capitaine-cursors"; + size = 32; package = pkgs.capitaine-cursors; - x11.enable = true; - gtk.enable = true; }; gtk = { enable = true; diff --git a/user/sway.nix b/user/sway.nix index d356646..0bf1bdd 100644 --- a/user/sway.nix +++ b/user/sway.nix @@ -71,6 +71,10 @@ in { repeat_rate = "30"; repeat_delay = "200"; }; + # setup cursor based on home.pointerCursor + seat."*" = { + xcursor_theme = "${config.home.pointerCursor.name} ${toString config.home.pointerCursor.size}"; + }; assigns = { "10" = [ { app_id = ".*[Tt]elegram.*"; }