safe eyes
This commit is contained in:
parent
77df4c2a45
commit
054f80a3f5
4 changed files with 31 additions and 13 deletions
|
|
@ -9,6 +9,7 @@
|
|||
in {
|
||||
imports = [
|
||||
./firefox.nix
|
||||
./safeeyes.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
|
|
|
|||
22
modules/apps/visual/safeeyes.nix
Normal file
22
modules/apps/visual/safeeyes.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.horseman.apps.visual.safeeyes;
|
||||
in {
|
||||
options = {
|
||||
horseman.apps.visual.safeeyes = {
|
||||
enable = mkEnableOption "Protects your eyes";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
snixembed
|
||||
safeeyes
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -43,6 +43,8 @@ in {
|
|||
xdg-desktop-portal-hyprland # XDG Portal (needed but idk why)
|
||||
];
|
||||
|
||||
horseman.apps.visual.safeeyes.enable = true;
|
||||
|
||||
horseman.wm.hyprland.config = {
|
||||
execOnce = [
|
||||
"hyprpaper"
|
||||
|
|
@ -50,6 +52,8 @@ in {
|
|||
"hyprpaper"
|
||||
"systemctl --user start hyprpolkitagent"
|
||||
"waybar"
|
||||
"safeeyes"
|
||||
"snixembed"
|
||||
];
|
||||
|
||||
env = [
|
||||
|
|
@ -93,18 +97,12 @@ in {
|
|||
|
||||
dimSpecial = 0.4;
|
||||
|
||||
shadow = {
|
||||
enabled = true;
|
||||
range = 4;
|
||||
renderPower = 3;
|
||||
color = "rgba(1a1a1aee)";
|
||||
};
|
||||
shadow.enabled = false;
|
||||
|
||||
blur = {
|
||||
enabled = true;
|
||||
size = 3;
|
||||
passes = 3;
|
||||
vibrancy = 0.1696;
|
||||
size = 25;
|
||||
passes = 2;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue