starting dbrw config
All checks were successful
/ update-readme (push) Successful in 50s

This commit is contained in:
dim
2024-12-30 11:27:00 +07:00
parent 863253bc74
commit 4c874e960d
45 changed files with 1068 additions and 594 deletions

View File

@@ -9,9 +9,10 @@
#- - `night-shift-status-icon` checks if Night-Shift is active. (icon)
{ inputs, pkgs, ... }:
let
value = "4500";
night-shift-on = pkgs.writeShellScriptBin "night-shift-on" ''
${pkgs.hyprshade}/bin/hyprshade on blue-light-filter
${pkgs.hyprsunset}/bin/hyprsunset -t ${value} &
title="󰖔 Night-Shift Activated"
description="Night-Shift is now activated! Your screen will be warmer and easier on the eyes."
@@ -19,7 +20,7 @@ let
'';
night-shift-off = pkgs.writeShellScriptBin "night-shift-off" ''
${pkgs.hyprshade}/bin/hyprshade off
pkill hyprsunset
title="󰖕 Night-Shift Deactivated"
description="Night-Shift is now deactivated! Your screen will return to normal."
@@ -27,7 +28,7 @@ let
'';
night-shift = pkgs.writeShellScriptBin "night-shift" ''
if [[ $(${pkgs.hyprshade}/bin/hyprshade current) ]]; then
if pidof "hyprsunset"; then
night-shift-off
else
night-shift-on
@@ -35,7 +36,7 @@ let
'';
night-shift-status = pkgs.writeShellScriptBin "night-shift-status" ''
if [[ $(${pkgs.hyprshade}/bin/hyprshade current) ]]; then
if pidof "hyprsunset"; then
echo "1"
else
echo "0"
@@ -44,7 +45,7 @@ let
night-shift-status-icon =
pkgs.writeShellScriptBin "night-shift-status-icon" ''
if [[ $(hyprshade current) ]]; then
if pidof "hyprsunset"; then
echo "󰖔"
else
echo "󰖕"
@@ -52,7 +53,7 @@ let
'';
in {
home.packages = [
inputs.hyprsunset.packages."${pkgs.system}".hyprsunset
pkgs.hyprsunset
night-shift-on
night-shift-off
night-shift