summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-09-13 21:02:26 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-09-13 21:02:26 -0500
commitaf1db2d620232d10c95f3778d91a315892dcfba8 (patch)
tree7b3f2a86ff0cfbb4ae195dd5daccdaf78cd2c898
parent54ee6b503851f51eb8410699ff281111b71d6ea8 (diff)
downloadnixos-af1db2d620232d10c95f3778d91a315892dcfba8.tar.xz
nixos-af1db2d620232d10c95f3778d91a315892dcfba8.zip
use unclutter-xfixes instead of unclutter and install a desktop entry for unclutter
-rw-r--r--archetypes/collections/desktop/xserver.nix3
-rw-r--r--pkgs/default.nix1
-rw-r--r--pkgs/unclutter-desktop-entry/default.nix14
3 files changed, 17 insertions, 1 deletions
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
+ #'';
+}