From d25b33573e37aa64e6c6e840bfb976512de69e2d Mon Sep 17 00:00:00 2001 From: Autumn Date: Thu, 30 Apr 2026 20:55:06 +0100 Subject: [conf/gammastep] added gammastep config --- README.md | 4 +++- install.nu | 15 +++++++++++++-- src/gammastep/020_config.ini | 23 +++++++++++++++++++++++ 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 src/gammastep/020_config.ini diff --git a/README.md b/README.md index 543eff8..3edc508 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # Dotfiles -My personal collection of dotfiles. +My personal collection of dotfiles: + +- `gammastep`: a blue-light reduction utility. diff --git a/install.nu b/install.nu index c09310c..674b966 100755 --- a/install.nu +++ b/install.nu @@ -20,7 +20,18 @@ let DEVICE_ID = match (uname | get nodename) { # get locations let DOTFILES_DIR = match ($DEVICE_ID) { - "010" | "020" => $"($env.HOME)/src/dotfiles", - "110" | "120" => $"($env.HOME)/dotfiles", + "010" | "020" => $"($env.HOME)/src/dotfiles/src", + "110" | "120" => $"($env.HOME)/dotfiles/src", _ => { error make -u { msg: "unsupported device" } } } + +# +# ~~~ dotfiles + +# gammastep +if ($DEVICE_ID == "010" or $DEVICE_ID == "020") { + + mkdir $"($env.HOME)/.config/gammastep" + cp $"($DOTFILES_DIR)/gammastep/($DEVICE_ID)_config.ini" $"($env.HOME)/.config/gammastep/config.ini" + +} diff --git a/src/gammastep/020_config.ini b/src/gammastep/020_config.ini new file mode 100644 index 0000000..81febf7 --- /dev/null +++ b/src/gammastep/020_config.ini @@ -0,0 +1,23 @@ +# +# ~~~ gammastep config +# + +# temperature +[general] +temp-day=6500 +temp-night=5000 + +fade=1 +dawn-time=07:00 +dusk-time=22:00 + +# location +location-provider=manual + +[manual] +lat=51.1 +lon=1.2 + +# output +[wayland] +output=* -- cgit v1.3