mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-09 07:28:53 +01:00
eww: Make icons work standalone
This commit is contained in:
parent
713589f646
commit
c1eed0c69d
@ -4,6 +4,8 @@ let
|
|||||||
inherit (config.home) homeDirectory;
|
inherit (config.home) homeDirectory;
|
||||||
inherit (config.xdg.userDirs) download documents music pictures videos;
|
inherit (config.xdg.userDirs) download documents music pictures videos;
|
||||||
inherit (pkgs) eww;
|
inherit (pkgs) eww;
|
||||||
|
|
||||||
|
fluent-icons = pkgs.callPackage ../packages/fluent-icons.nix { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = [ eww ];
|
home.packages = [ eww ];
|
||||||
@ -20,7 +22,7 @@ in
|
|||||||
|
|
||||||
(defwidget icon [img exec]
|
(defwidget icon [img exec]
|
||||||
(eventbox :cursor "pointer" :onclick "lnch thunar ''${exec}" :tooltip "''${exec}"
|
(eventbox :cursor "pointer" :onclick "lnch thunar ''${exec}" :tooltip "''${exec}"
|
||||||
(image :path "/run/current-system/sw/share/eww/Fluent-Icons/''${img}.png" :image-width 128)))
|
(image :path "${fluent-icons}/''${img}.png" :image-width 128)))
|
||||||
|
|
||||||
(defwindow desktop-icons
|
(defwindow desktop-icons
|
||||||
:monitor 0
|
:monitor 0
|
||||||
|
@ -213,7 +213,6 @@ in
|
|||||||
|
|
||||||
environment.pathsToLink = [
|
environment.pathsToLink = [
|
||||||
"/share/backgrounds"
|
"/share/backgrounds"
|
||||||
"/share/eww"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
Loading…
Reference in New Issue
Block a user