about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-15 15:48:05 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-15 15:48:16 +0200
commit7dbf01604485576a8bb2053391bfec89223a0823 (patch)
tree1e89d596aea7173f731c8f754898cc78ed1c4c5e
parentRiver: Set good border colors (diff)
downloadnixos-config-7dbf01604485576a8bb2053391bfec89223a0823.tar.gz
nixos-config-7dbf01604485576a8bb2053391bfec89223a0823.tar.bz2
nixos-config-7dbf01604485576a8bb2053391bfec89223a0823.zip
River: Add wlsunset
-rwxr-xr-xdotfiles/river/init1
-rw-r--r--flake.lock2
-rw-r--r--hosts/home.nix1
3 files changed, 3 insertions, 1 deletions
diff --git a/dotfiles/river/init b/dotfiles/river/init
index dc2185a..ed3c59c 100755
--- a/dotfiles/river/init
+++ b/dotfiles/river/init
@@ -19,6 +19,7 @@ riverctl spawn "swayidle -w \
 	resume 'wlr-randr --output $(wlr-randr | head -n1 | awk "{print $1;}") --on' \
         before-sleep 'swaylock -f -F -c 000000'"
 
+riverctl spawn 'wlsunset -l $(echo $LOCATION | cut -d: -f1) -L $(echo $LOCATION | cut -d: -f2)'
 riverctl spawn "unclutter"
 riverctl spawn "clipmenud"
 riverctl spawn "dunst"
diff --git a/flake.lock b/flake.lock
index 8db1808..38911b1 100644
--- a/flake.lock
+++ b/flake.lock
@@ -4,7 +4,7 @@
       "flake": false,
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-VKTfwJpoFDaG0YlgxYj8oGpldU0WNFFL2tRggXedvjY=",
+        "narHash": "sha256-aNhTedFpYtNRiWPxZbHDOiu/t6s+qh/+fEDULWvP8B0=",
         "path": "./dotfiles",
         "type": "path"
       },
diff --git a/hosts/home.nix b/hosts/home.nix
index eb0ad68..a73f4e9 100644
--- a/hosts/home.nix
+++ b/hosts/home.nix
@@ -44,6 +44,7 @@
       swaybg
       river
       wlr-randr
+      wlsunset
     ] ++
     (with pkgs.custom; [
       lemacs