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;
|
|
|
|
in
|
2023-08-08 02:44:15 +02:00
|
|
|
{
|
2024-03-06 01:17:14 +01:00
|
|
|
home.packages = with pkgs; [ eww ];
|
2023-08-11 21:05:23 +02:00
|
|
|
|
|
|
|
xdg.configFile."eww/eww.yuck".text = /* yuck */ ''
|
|
|
|
(defwidget icons []
|
|
|
|
(box :orientation "h" :spacing 32
|
2024-04-05 01:38:57 +02:00
|
|
|
(icon :img "default-user-home" :exec "${homeDirectory}")
|
|
|
|
(icon :img "default-folder-download" :exec "${homeDirectory}/ダウンロード")
|
|
|
|
(icon :img "default-folder-documents" :exec "${homeDirectory}/ドキュメント")
|
|
|
|
(icon :img "default-folder-music" :exec "${homeDirectory}/音楽")
|
|
|
|
(icon :img "default-folder-pictures" :exec "${homeDirectory}/画像")
|
|
|
|
(icon :img "default-folder-video" :exec "${homeDirectory}/ビデオ")))
|
2023-08-11 21:05:23 +02:00
|
|
|
|
|
|
|
(defwidget icon [img exec]
|
|
|
|
(eventbox :cursor "pointer" :onclick "lnch thunar ''${exec}" :tooltip "''${exec}"
|
2024-01-03 00:51:49 +01:00
|
|
|
(image :path "/run/current-system/sw/share/eww/Fluent-Icons/''${img}.png" :image-width 128)))
|
2023-08-11 21:05:23 +02:00
|
|
|
|
|
|
|
(defwindow desktop-icons
|
|
|
|
:monitor 0
|
|
|
|
:geometry (geometry :x "32px" :anchor "bottom center"
|
|
|
|
:y "8px")
|
|
|
|
:stacking "bg"
|
|
|
|
(icons))
|
|
|
|
|
|
|
|
(defpoll time :interval "1s"
|
|
|
|
"date '+%H:%M'")
|
|
|
|
|
|
|
|
(defwindow overlay
|
|
|
|
:monitor 0
|
|
|
|
:geometry (geometry :y "4px" :x "8px" :anchor "bottom right")
|
|
|
|
:stacking "fg"
|
|
|
|
time)
|
|
|
|
'';
|
|
|
|
|
|
|
|
xdg.configFile."eww/eww.scss".text = /* scss */ ''
|
|
|
|
img {
|
|
|
|
all: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.desktop-icons {
|
|
|
|
all: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.overlay {
|
|
|
|
background: transparent;
|
|
|
|
color: #f8f8f2;
|
|
|
|
font-weight: bold;
|
|
|
|
text-shadow: 0 0 0.075em #272822;
|
|
|
|
font-size: 32px;
|
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
'';
|
2023-08-08 02:44:15 +02:00
|
|
|
}
|