Add wallpapers to river

This commit is contained in:
2024-07-08 12:49:38 +07:00
parent 185e29276a
commit 38669f9264
4 changed files with 11 additions and 13 deletions
+10
View File
@@ -10,6 +10,15 @@ with lib; let
editor = "nvim.desktop";
pdf = "org.pwmt.zathura.desktop";
player = "mpv.desktop";
wallpaper = pkgs.writeShellScriptBin "wallpaper" ''
WALLPAPERS=~/wallpapers/
WP=$(find $WALLPAPERS -type f | shuf -n 1)
ln -fs "$WP" ~/.cache/current-wallpaper
${pkgs.wbg}/bin/wbg "$WP" > /dev/null 2> /dev/null & disown
echo "$WP"
'';
in {
imports = [
./ghostty.nix
@@ -20,6 +29,7 @@ in {
];
home.packages = with pkgs; [
wallpaper
google-chrome
discord
firefox
-3
View File
@@ -1,5 +1,4 @@
{pkgs, ...}: let
wallpaper = pkgs.writeShellScriptBin "wallpaper" (builtins.readFile ./wallpaper.sh);
dwlstartup = pkgs.writeShellScriptBin "dwlstartup" (builtins.readFile ./dwlstartup.sh);
in {
imports = [
@@ -13,11 +12,9 @@ in {
pavucontrol
blueberry
networkmanagerapplet
wbg
glib
# Only used for pactl.
pulseaudio
wallpaper
dwlstartup
hyprpicker
wdisplays
-10
View File
@@ -1,10 +0,0 @@
#!/usr/bin/env bash
WALLPAPERS=~/wallpapers/
WP=$(find $WALLPAPERS -type f | shuf -n 1)
ln -fs $WP ~/.cache/current-wallpaper
wbg "$WP"
# gsettings set org.gnome.desktop.background picture-uri "$WP"
# gsettings set org.gnome.desktop.background picture-uri-dark "$WP"
+1
View File
@@ -35,6 +35,7 @@ in {
default-layout = "rivercarro";
spawn = [
"${pkgs.rivercarro}/bin/rivercarro"
"wallpaper"
"discord"
"youtube-music"
];