From af1db2d620232d10c95f3778d91a315892dcfba8 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 13 Sep 2025 21:02:26 -0500 Subject: use unclutter-xfixes instead of unclutter and install a desktop entry for unclutter --- archetypes/collections/desktop/xserver.nix | 3 ++- pkgs/default.nix | 1 + pkgs/unclutter-desktop-entry/default.nix | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 pkgs/unclutter-desktop-entry/default.nix diff --git a/archetypes/collections/desktop/xserver.nix b/archetypes/collections/desktop/xserver.nix index 4cbdae8..8e01a84 100644 --- a/archetypes/collections/desktop/xserver.nix +++ b/archetypes/collections/desktop/xserver.nix @@ -13,7 +13,8 @@ in { # Install basic X utilities environment.systemPackages = with pkgs; lib.optionals cfg.utilities.enable [ - unclutter + unclutter-desktop-entry + unclutter-xfixes xcape xclip xdotool diff --git a/pkgs/default.nix b/pkgs/default.nix index 1c0ed23..3a268ec 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -4,6 +4,7 @@ crazydiskinfo = (callPackage ./crazydiskinfo {}); lowbat = (callPackage ./lowbat {}); workcentre-7800-series = (callPackage ./xerox-workcentre-7800-series-driver {}); + unclutter-desktop-entry = (callPackage ./unclutter-desktop-entry {}); # Use my vimv-rs until pr gets merged vimv-rs = prev.vimv-rs.overrideAttrs (oldAttrs: { diff --git a/pkgs/unclutter-desktop-entry/default.nix b/pkgs/unclutter-desktop-entry/default.nix new file mode 100644 index 0000000..c98cbda --- /dev/null +++ b/pkgs/unclutter-desktop-entry/default.nix @@ -0,0 +1,14 @@ +{ pkgs }: + +pkgs.makeDesktopItem { + name = "unclutter"; + desktopName = "Unclutter"; + comment = "Hides mouse pointer while not in use"; + exec = "${pkgs.unclutter-xfixes}/bin/unclutter"; + icon = "input-mouse"; + categories = [ "Utility" ]; + keywords = [ "mouse" "cursor" "hide" "idle" "pointer" ]; + #extraConfig = '' + # NoDisplay=true + #''; +} -- cgit v1.2.3