about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-15 16:53:58 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-15 16:53:58 +0200
commit2f999d667e1812a315e6c016c1439267f129ff2e (patch)
tree90eaae9c18b0bf39e842379b3a74f99573d66ab5
parentUse swaylock-effects instead of swaylock for showing clock (diff)
downloadnixos-config-2f999d667e1812a315e6c016c1439267f129ff2e.tar.gz
nixos-config-2f999d667e1812a315e6c016c1439267f129ff2e.tar.bz2
nixos-config-2f999d667e1812a315e6c016c1439267f129ff2e.zip
River: Add smart-wallpaper
And temp overlay for smart-wallpaper to work with wayland
-rwxr-xr-xdotfiles/river/init4
-rw-r--r--flake.lock2
-rw-r--r--overlays/base/default.nix9
3 files changed, 12 insertions, 3 deletions
diff --git a/dotfiles/river/init b/dotfiles/river/init
index 6edf219..ecd90ed 100755
--- a/dotfiles/river/init
+++ b/dotfiles/river/init
@@ -12,7 +12,6 @@
 
 riverctl spawn "xrdb ~/.Xresources"
 riverctl spawn "xmodmap ~/.Xmodmap"
-riverctl spawn "swaybg -i ~/Images/Wallpapers/Day/wave.jpg"
 riverctl spawn "swayidle -w \
         timeout 300 'swaylock --clock --indicator -f -F -c 000000' \
 	timeout 400 'wlr-randr --output $(wlr-randr | head -n1 | awk "{print $1;}") --off' \
@@ -26,6 +25,7 @@ riverctl spawn "dunst"
 #riverctl spawn "numlockx on"
 riverctl spawn "systemctl --user start graphical-session.target"
 riverctl spawn "sxhkd"
+riverctl spawn 'while :; do ssh-agent smart-wallpaper -d ~/Images/Wallpapers/Day -n ~/Images/Wallpapers/Night -l $LOCATION -r; done'
 riverctl spawn "waybar"
 
 riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
@@ -166,7 +166,7 @@ do
 done
 
 # Set background and border color
-#riverctl background-color 0x002b36
+riverctl background-color 0x000000
 riverctl border-color-focused 0x005577
 riverctl border-color-unfocused 0x444444
 
diff --git a/flake.lock b/flake.lock
index df2c584..5e247f0 100644
--- a/flake.lock
+++ b/flake.lock
@@ -4,7 +4,7 @@
       "flake": false,
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-o2QD8mWYRxMe35dPwIp69+pxbW4uz/Jc7R06zD82paA=",
+        "narHash": "sha256-JFNbhtrnw2TDKsDiONKdPz354phQjsj8+bOybmNWQQg=",
         "path": "./dotfiles",
         "type": "path"
       },
diff --git a/overlays/base/default.nix b/overlays/base/default.nix
index 3f8b784..63b13a8 100644
--- a/overlays/base/default.nix
+++ b/overlays/base/default.nix
@@ -74,4 +74,13 @@ final: prev:
     };
   });
 
+  smart-wallpaper = prev.smart-wallpaper.overrideAttrs (old: {
+    src = prev.fetchFromGitHub {
+      owner = "Baitinq";
+      repo = "smart-wallpaper";
+      rev = "a23e6ed658342a405544ebe055ec1ac2fd464484";
+      sha256 = "sha256-IymFjyfqNycTLalZBiqmjJP5U6AFefe9BSWn3Mpoz4c=";
+    };
+  });
+
 }