feat(eww): add "Activate Linux" widget and assets

Add ".gitattributes" for LFS, update flake.nix, and include new eww widget, README, image, SCSS, and Yuck configuration.
This commit is contained in:
uttarayan21
2025-11-20 16:19:21 +05:30
parent 2ce14b1c70
commit 2ff867e6b6
7 changed files with 33 additions and 16 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text

View File

@@ -345,7 +345,7 @@
}; };
nixos_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isNix) devices; nixos_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isNix) devices;
linux_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isLinux) devices; # linux_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isLinux) devices;
darwin_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isDarwin) devices; darwin_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isDarwin) devices;
rpi_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isArm && x.isLinux) devices; rpi_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isArm && x.isLinux) devices;
@@ -353,7 +353,7 @@
inherit inputs; inherit inputs;
}; };
in in
rec { {
nixosConfigurations = nixosConfigurations =
(import ./nixos { (import ./nixos {
inherit inputs nixpkgs home-manager overlays nur; inherit inputs nixpkgs home-manager overlays nur;

View File

@@ -1,19 +1,7 @@
{ {device, ...}: {
pkgs,
device,
lib,
...
}: let
activate_linux = pkgs.fetchFromGitHub {
owner = "Nycta-b424b3c7";
repo = "eww_activate-linux";
rev = "master";
sha256 = "sha256-CHNkRYR4F9JGMrNubHu+XzkwwI3IHzh93nuS7/Plhe4=";
};
in {
programs.eww = { programs.eww = {
enable = device.is "ryu"; enable = device.is "ryu";
enableFishIntegration = true; enableFishIntegration = true;
configDir = activate_linux; configDir = ./eww;
}; };
} }

View File

@@ -0,0 +1,5 @@
# "Activate Linux"
"Activate Linux" text for [Eww](https://github.com/elkowar/eww/)
![Activate Linux](activate-linux.png)

Binary file not shown.

View File

@@ -0,0 +1,7 @@
.activate-linux {
color: rgba(250, 250, 250, 0.5);
&.background {
background: none;
}
}

View File

@@ -0,0 +1,13 @@
(defwidget activate-linux []
(box
:orientation "v"
:halign "start"
:valign "start"
(label :xalign 50 :markup "<span font_size=\"large\">Activate Linux</span>")
(label :xalign 50 :text "Go to Settings to activate Linux")))
(defwindow activate-linux
:monitor 0
:stacking "fg"
:geometry (geometry :x "8px" :y "32px" :width "250px" :anchor "bottom right")
(activate-linux))