Add custom cursor

This commit is contained in:
Tibo De Peuter 2023-11-09 19:46:23 +01:00
parent b8103884c7
commit 03f5caeaba

View file

@ -5,6 +5,12 @@ let
user = config.users.users.tdpeuter.name;
installedPkgs = config.environment.systemPackages ++ config.home-manager.users.tdpeuter.home.packages;
cursor = {
package = pkgs.phinger-cursors;
name = "phinger-cursors";
size = 24;
};
in {
imports = [
./dotfiles.nix
@ -66,6 +72,7 @@ in {
nextcloud-client
nsxiv # Lightweight image viewer
oh-my-zsh
phinger-cursors # Cursor theme
qalculate-gtk # Calculator
tea # Gitea CLI
unzip
@ -83,6 +90,14 @@ in {
statix
vim-plug
]);
pointerCursor = {
package = cursor.package;
name = cursor.name;
size = cursor.size;
gtk.enable = true;
x11.enable = true;
};
};
# GNOME ricing
@ -112,7 +127,25 @@ in {
};
};
xdg.mimeApps = {
gtk = {
enable = true;
cursorTheme = cursor;
};
xdg = {
desktopEntries.spotify = {
name = "Spotify";
genericName = "Music Player";
icon = "spotify-client";
exec = "env LD_PRELOAD=${pkgs.spotify-adblock}/lib/libspotifyadblock.so spotify %U";
mimeType = [ "x-scheme-handler/spotify" ];
categories = [ "Audio" "Music" "Player" "AudioVideo" ];
settings = {
TryExec = "spotify";
StartupWMClass = "spotify";
};
};
mimeApps = {
enable = true;
defaultApplications = let
@ -138,4 +171,5 @@ in {
};
};
};
};
}