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:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
5
home/services/eww/README.md
Normal file
5
home/services/eww/README.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# "Activate Linux"
|
||||||
|
|
||||||
|
"Activate Linux" text for [Eww](https://github.com/elkowar/eww/)
|
||||||
|
|
||||||
|

|
||||||
BIN
home/services/eww/activate-linux.png
LFS
Normal file
BIN
home/services/eww/activate-linux.png
LFS
Normal file
Binary file not shown.
7
home/services/eww/eww.scss
Normal file
7
home/services/eww/eww.scss
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.activate-linux {
|
||||||
|
color: rgba(250, 250, 250, 0.5);
|
||||||
|
|
||||||
|
&.background {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
13
home/services/eww/eww.yuck
Normal file
13
home/services/eww/eww.yuck
Normal 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))
|
||||||
Reference in New Issue
Block a user