From 3b36d4e6b2ab4fa053bc1449c77d926b60c2288e Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 26 Sep 2023 14:38:18 +0100 Subject: [PATCH] Add simple eww example and eww-mode package for emacs --- home/emacs/doom/packages.el | 1 + home/hyprland/eww/config/eww.scss | 0 home/hyprland/eww/config/eww.yuck | 13 +++++++++++++ home/hyprland/eww/default.nix | 9 +++++++++ 4 files changed, 23 insertions(+) create mode 100644 home/hyprland/eww/config/eww.scss create mode 100644 home/hyprland/eww/config/eww.yuck create mode 100644 home/hyprland/eww/default.nix diff --git a/home/emacs/doom/packages.el b/home/emacs/doom/packages.el index 1c0b1bc5..8f850d23 100644 --- a/home/emacs/doom/packages.el +++ b/home/emacs/doom/packages.el @@ -4,3 +4,4 @@ (package! catppuccin-theme) (package! pocket-reader) (package! magit-delta) +(package! yuck-mode) diff --git a/home/hyprland/eww/config/eww.scss b/home/hyprland/eww/config/eww.scss new file mode 100644 index 00000000..e69de29b diff --git a/home/hyprland/eww/config/eww.yuck b/home/hyprland/eww/config/eww.yuck new file mode 100644 index 00000000..07e85870 --- /dev/null +++ b/home/hyprland/eww/config/eww.yuck @@ -0,0 +1,13 @@ +(defwindow example + :monitor 0 + :geometry (geometry :x "0%" + :y "20px" + :width "90%" + :height "30px" + :anchor "top center") + :stacking "overlay" + :reserve (struts :distance "40px" :side "top") + :windowtype "dock" + :wm-ignore false + :namespace eww-example + "example content") diff --git a/home/hyprland/eww/default.nix b/home/hyprland/eww/default.nix new file mode 100644 index 00000000..81aa0d0a --- /dev/null +++ b/home/hyprland/eww/default.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, ... }: + +{ + programs.eww = { + enable = true; + package = pkgs.eww-wayland; + configDir = ./config; + }; +}