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; user = config.users.users.tdpeuter.name;
installedPkgs = config.environment.systemPackages ++ config.home-manager.users.tdpeuter.home.packages; installedPkgs = config.environment.systemPackages ++ config.home-manager.users.tdpeuter.home.packages;
cursor = {
package = pkgs.phinger-cursors;
name = "phinger-cursors";
size = 24;
};
in { in {
imports = [ imports = [
./dotfiles.nix ./dotfiles.nix
@ -66,6 +72,7 @@ in {
nextcloud-client nextcloud-client
nsxiv # Lightweight image viewer nsxiv # Lightweight image viewer
oh-my-zsh oh-my-zsh
phinger-cursors # Cursor theme
qalculate-gtk # Calculator qalculate-gtk # Calculator
tea # Gitea CLI tea # Gitea CLI
unzip unzip
@ -83,6 +90,14 @@ in {
statix statix
vim-plug vim-plug
]); ]);
pointerCursor = {
package = cursor.package;
name = cursor.name;
size = cursor.size;
gtk.enable = true;
x11.enable = true;
};
}; };
# GNOME ricing # GNOME ricing
@ -112,28 +127,47 @@ in {
}; };
}; };
xdg.mimeApps = { gtk = {
enable = true; enable = true;
cursorTheme = cursor;
};
defaultApplications = let xdg = {
browser = "firefox.desktop"; desktopEntries.spotify = {
image-viewer = "nsxiv.desktop"; name = "Spotify";
pdf-viewer = "org.pwmt.zathura-pdf-mupdf.desktop"; genericName = "Music Player";
in { icon = "spotify-client";
"application/pdf" = pdf-viewer; exec = "env LD_PRELOAD=${pkgs.spotify-adblock}/lib/libspotifyadblock.so spotify %U";
"application/x-extension-htm" = browser; mimeType = [ "x-scheme-handler/spotify" ];
"application/x-extension-html" = browser; categories = [ "Audio" "Music" "Player" "AudioVideo" ];
"application/x-extension-shtml" = browser; settings = {
"application/x-extension-xht" = browser; TryExec = "spotify";
"application/x-extension-xhtml" = browser; StartupWMClass = "spotify";
"application/xhtml+xml" = browser; };
"image/jpeg" = image-viewer; };
"image/png" = image-viewer; mimeApps = {
"image/webp" = image-viewer; enable = true;
"text/html" = browser;
"x-scheme-handler/chrome" = browser; defaultApplications = let
"x-scheme-handler/http" = browser; browser = "firefox.desktop";
"x-scheme-handler/https" = browser; image-viewer = "nsxiv.desktop";
pdf-viewer = "org.pwmt.zathura-pdf-mupdf.desktop";
in {
"application/pdf" = pdf-viewer;
"application/x-extension-htm" = browser;
"application/x-extension-html" = browser;
"application/x-extension-shtml" = browser;
"application/x-extension-xht" = browser;
"application/x-extension-xhtml" = browser;
"application/xhtml+xml" = browser;
"image/jpeg" = image-viewer;
"image/png" = image-viewer;
"image/webp" = image-viewer;
"text/html" = browser;
"x-scheme-handler/chrome" = browser;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
};
}; };
}; };
}; };