Cursor Themes: Difference between revisions

Pigs (talk | contribs)
m Add category configuration
DHCP (talk | contribs)
m style fixes
 
Line 12: Line 12:


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
  home.pointerCursor =  
home.pointerCursor =
    let  
  let
      getFrom = url: hash: name: {
    getFrom = url: hash: name: {
          gtk.enable = true;
      gtk.enable = true;
          x11.enable = true;
      x11.enable = true;
          name = name;
      name = name;
          size = 48;
      size = 48;
          package =  
      package = pkgs.runCommand "moveUp" { } ''
            pkgs.runCommand "moveUp" {} ''
        mkdir -p $out/share/icons
              mkdir -p $out/share/icons
        ln -s ${
              ln -s ${pkgs.fetchzip {
          pkgs.fetchzip {
                url = url;
            url = url;
                hash = hash;
            hash = hash;
              }} $out/share/icons/${name}
          }
          '';
        } $out/share/icons/${name}
        };
      '';
    in
    };
      getFrom  
  in
        "https://github.com/ful1e5/fuchsia-cursor/releases/download/v2.0.0/Fuchsia-Pop.tar.gz"
  getFrom "https://github.com/ful1e5/fuchsia-cursor/releases/download/v2.0.0/Fuchsia-Pop.tar.gz"
        "sha256-BvVE9qupMjw7JRqFUj1J0a4ys6kc9fOLBPx2bGaapTk="
    "sha256-BvVE9qupMjw7JRqFUj1J0a4ys6kc9fOLBPx2bGaapTk="
        "Fuchsia-Pop";  
    "Fuchsia-Pop";
</syntaxHighlight>
</syntaxHighlight>


Line 81: Line 81:
This already fixes themes for most apps like gnome. But not all (e.g. Obsidian or Logseq).
This already fixes themes for most apps like gnome. But not all (e.g. Obsidian or Logseq).


And since flatpaks are sandboxed and dont have access to the nix-store you need to give them permission, since the cursors are eventually linked to ''<code>/nix/store/...</code>'':<syntaxhighlight lang="shell">
And since flatpaks are sandboxed and dont have access to the nix-store you need to give them permission, since the cursors are eventually linked to ''<code>/nix/store/...</code>'':
flatpak --user override --filesystem=/nix/store:ro
<syntaxhighlight lang=console>
$ flatpak --user override --filesystem=/nix/store:ro
</syntaxhighlight>OR with the https://github.com/gmodena/nix-flatpak homeManagerModule:<syntaxhighlight lang="nix">
</syntaxhighlight>OR with the https://github.com/gmodena/nix-flatpak homeManagerModule:<syntaxhighlight lang="nix">
services.flatpak = {
services.flatpak = {