2024-04-05 01:38:57 +02:00
|
|
|
{ pkgs, config, ... }:
|
2023-08-08 02:44:15 +02:00
|
|
|
|
2024-04-05 01:38:57 +02:00
|
|
|
let
|
|
|
|
inherit (config.home) homeDirectory;
|
2024-08-03 19:28:03 +02:00
|
|
|
inherit (config.lib.stylix.colors.withHashtag) base00 base05;
|
2024-04-07 17:05:15 +02:00
|
|
|
|
2024-08-03 20:22:47 +02:00
|
|
|
inherit (config.xdg.userDirs)
|
|
|
|
download
|
|
|
|
documents
|
|
|
|
music
|
|
|
|
pictures
|
|
|
|
videos
|
|
|
|
;
|
|
|
|
|
2024-04-07 17:05:15 +02:00
|
|
|
fluent-icons = pkgs.callPackage ../packages/fluent-icons.nix { };
|
2024-04-05 01:38:57 +02:00
|
|
|
in
|
2023-08-08 02:44:15 +02:00
|
|
|
{
|
2024-08-07 22:32:53 +02:00
|
|
|
home.packages = with pkgs; [ eww ];
|
2023-08-11 21:05:23 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
xdg.configFile = {
|
|
|
|
"eww/eww.yuck".text = # yuck
|
|
|
|
''
|
|
|
|
(defwidget icons []
|
|
|
|
(box :orientation "h" :spacing 32
|
|
|
|
(icon :img "default-user-home" :exec "${homeDirectory}")
|
|
|
|
(icon :img "default-folder-download" :exec "${download}")
|
|
|
|
(icon :img "default-folder-documents" :exec "${documents}")
|
|
|
|
(icon :img "default-folder-music" :exec "${music}")
|
|
|
|
(icon :img "default-folder-pictures" :exec "${pictures}")
|
|
|
|
(icon :img "default-folder-video" :exec "${videos}")))
|
2024-08-03 20:22:47 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
(defwidget icon [img exec]
|
|
|
|
(eventbox :cursor "pointer" :onclick "lnch thunar ''${exec}" :tooltip "''${exec}"
|
|
|
|
(image :path "${fluent-icons}/''${img}.png" :image-width 128)))
|
2024-08-03 20:22:47 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
(defwindow desktop-icons
|
|
|
|
:monitor 0
|
|
|
|
:geometry (geometry :x "32px" :anchor "bottom center"
|
|
|
|
:y "8px")
|
|
|
|
:stacking "bg"
|
|
|
|
(icons))
|
2024-08-03 20:22:47 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
(defpoll time :interval "1s"
|
|
|
|
"date '+%H:%M'")
|
2024-08-03 20:22:47 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
(defwindow overlay
|
|
|
|
:monitor 0
|
|
|
|
:geometry (geometry :y "4px" :x "8px" :anchor "bottom right")
|
|
|
|
:stacking "fg"
|
|
|
|
time)
|
|
|
|
'';
|
2024-08-03 20:22:47 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
"eww/eww.scss".text = # scss
|
|
|
|
''
|
|
|
|
img {
|
|
|
|
all: unset;
|
|
|
|
}
|
2024-08-03 20:22:47 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
.desktop-icons {
|
|
|
|
all: unset;
|
|
|
|
}
|
2024-08-03 20:22:47 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
.overlay {
|
|
|
|
background: transparent;
|
|
|
|
color: ${base05};
|
|
|
|
font-weight: bold;
|
|
|
|
text-shadow: 0 0 0.075em ${base00};
|
|
|
|
font-size: 32px;
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
2023-08-08 02:44:15 +02:00
|
|
|
}
|