From dea36f780ba622d063e0b05d0ca34a4fd047a6ad Mon Sep 17 00:00:00 2001 From: orca Date: Fri, 9 Feb 2024 00:25:39 +0100 Subject: [PATCH] Added an eye saver. --- gui/desktop/hypr/definitions.conf | 1 + gui/desktop/hypr/executables.conf | 3 +++ nix/home/default.nix | 2 +- nix/home/services/default.nix | 5 +++++ nix/home/services/gammastep.nix | 10 ++++++++++ 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 nix/home/services/default.nix create mode 100644 nix/home/services/gammastep.nix diff --git a/gui/desktop/hypr/definitions.conf b/gui/desktop/hypr/definitions.conf index d452f49..6ed44b1 100644 --- a/gui/desktop/hypr/definitions.conf +++ b/gui/desktop/hypr/definitions.conf @@ -14,6 +14,7 @@ $set_bg = swaybg -i ~/.config/hypr/background $bar = waybar $notification_d = dunst $battery_d = batsignal -f 80 -w 20 -c 10 -be +$battery_d = gammastep $screenshot = grim $tor = tor-browser diff --git a/gui/desktop/hypr/executables.conf b/gui/desktop/hypr/executables.conf index 5d21523..9e5d487 100644 --- a/gui/desktop/hypr/executables.conf +++ b/gui/desktop/hypr/executables.conf @@ -16,6 +16,9 @@ exec-once = $notification_d # Start the battery daemon. exec-once = $battery_d +# Start the eye saver. +exec-once = $eye_saver + # Launch these applications by default. exec-once = [workspace 1 silent] $terminal exec-once = [workspace 3 silent] $system_monitor diff --git a/nix/home/default.nix b/nix/home/default.nix index ebf2780..0a3dfb6 100644 --- a/nix/home/default.nix +++ b/nix/home/default.nix @@ -1,6 +1,6 @@ { ... }: { - imports = [ ./theme.nix ./packages.nix ./programs ]; + imports = [ ./theme.nix ./packages.nix ./programs ./services ]; home.stateVersion = "23.05"; } diff --git a/nix/home/services/default.nix b/nix/home/services/default.nix new file mode 100644 index 0000000..c3b0d77 --- /dev/null +++ b/nix/home/services/default.nix @@ -0,0 +1,5 @@ +{ ... }: + +{ + imports = [ ./gammastep.nix ]; +} diff --git a/nix/home/services/gammastep.nix b/nix/home/services/gammastep.nix new file mode 100644 index 0000000..ced3b27 --- /dev/null +++ b/nix/home/services/gammastep.nix @@ -0,0 +1,10 @@ +{ ... }: + +{ + services.gammastep = { + enable = true; + provider = "manual"; + latitude = 48.85; + longitude = 2.35; + }; +}