49 lines
910 B
Nix
49 lines
910 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
xdg.configFile."eww/eww.yuck".text = ''
|
|
(defpoll clock :interval "1s"
|
|
"date '+%H:%M'")
|
|
|
|
(defwidget bar []
|
|
(box :class "bar" :orientation "h"
|
|
(label :class "clock" :text clock)))
|
|
|
|
(defwindow bar0
|
|
:monitor 0
|
|
:geometry (geometry
|
|
:x "0px" :y "0px"
|
|
:width "100%" :height "36px"
|
|
:anchor "top center")
|
|
:exclusive true
|
|
(bar))
|
|
|
|
(defwindow bar1
|
|
:monitor 1
|
|
:geometry (geometry
|
|
:x "0px" :y "0px"
|
|
:width "100%" :height "36px"
|
|
:anchor "top center")
|
|
:exclusive true
|
|
(bar))
|
|
'';
|
|
|
|
xdg.configFile."eww/eww.scss".text = ''
|
|
* {
|
|
all: unset;
|
|
font-family: "JetBrainsMono Nerd Font";
|
|
font-size: 13px;
|
|
}
|
|
|
|
window {
|
|
background-color: rgba(30, 30, 46, 0.9);
|
|
color: #cdd6f4;
|
|
}
|
|
|
|
.clock {
|
|
padding: 0 12px;
|
|
color: #89b4fa;
|
|
font-weight: bold;
|
|
}
|
|
'';
|
|
}
|