mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
20 lines
573 B
Nix
20 lines
573 B
Nix
{pkgs, ...}: let
|
|
nightshift-toggle =
|
|
pkgs.writeShellScriptBin "nightshift-toggle"
|
|
# bash
|
|
''
|
|
if pidof "hyprsunset"; then
|
|
pkill hyprsunset
|
|
${pkgs.libnotify}/bin/notify-send "Night Shift Disabled" "Returning to full spectrum light. Filter disabled."
|
|
else
|
|
${pkgs.hyprsunset}/bin/hyprsunset -t 4500 &
|
|
${pkgs.libnotify}/bin/notify-send "Night Shift Activated" "Welcome to the warm side. Blue light filtering is now active."
|
|
fi
|
|
'';
|
|
in {
|
|
home.packages = with pkgs; [
|
|
hyprsunset
|
|
nightshift-toggle
|
|
];
|
|
}
|