dustbowl: install posy's cursors

This commit is contained in:
joachimschmidt557 2023-03-13 23:18:35 +01:00
parent 0c88210de1
commit 12a0912db5
No known key found for this signature in database
GPG key ID: E0B575BE2884ACC5
3 changed files with 35 additions and 1 deletions

View file

@ -205,6 +205,8 @@
element-desktop element-desktop
virt-manager virt-manager
zotero zotero
(callPackage ./posy-cursor-black.nix { })
]; ];
# Use doas instead of sudo # Use doas instead of sudo
@ -346,7 +348,7 @@
# Sway # Sway
programs.sway = { programs.sway = {
extraSessionCommands = '' extraSessionCommands = ''
export XCURSOR_THEME=Adwaita export XCURSOR_THEME=posy-cursor-black
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
''; '';
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;

View file

@ -0,0 +1,21 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
pname = "posy-cursor-black";
version = "unstable-2022-09-14";
src = fetchFromGitHub {
owner = "simtrami";
repo = "posy-improved-cursor-linux";
rev = "8c39b915bbba4717a450ef750fa8b0c0b60cb160";
sha256 = "i0N/QB5uzqHapMCDl6h6PWPJ4GOAyB1ds9qlqmZacLY=";
};
patches = [ ./posy-cursors-rename.patch ];
installPhase = ''
mkdir -p $out/share/icons/posy-cursor-black
cp Posy_Cursor_Black/index.theme $out/share/icons/posy-cursor-black/index.theme
cp -r Posy_Cursor_Black/cursors $out/share/icons/posy-cursor-black/cursors
'';
}

View file

@ -0,0 +1,11 @@
diff --git a/Posy_Cursor_Black/index.theme b/Posy_Cursor_Black/index.theme
index a16dda6..88f0584 100644
--- a/Posy_Cursor_Black/index.theme
+++ b/Posy_Cursor_Black/index.theme
@@ -1,4 +1,5 @@
[Icon Theme]
-Name=Posy's Cursor Black
+Name=posy-cursor-black
Comment=Posy's improved cursors, black set.
+Inherits=hicolor
Example=left_ptr