hyprland: Add random background script

This commit is contained in:
Donovan Glover 2023-08-01 12:01:57 -04:00
parent 2c9c53481e
commit 7c429a374b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -40,6 +40,16 @@ in
'';
};
xdg.configFile."hypr/random-bg.fish" = {
executable = true;
text = /* fish */ ''
#!/usr/bin/env fish
cd ~/.config/hypr
./set-bg.fish "$(random choice $(fd . /run/current-system/sw/share/backgrounds --follow -e jpg -e png))"
'';
};
xdg.configFile."hypr/hyprland.conf".text = with config.lib.stylix.colors; /* bash */ ''
env=XCURSOR_SIZE,24
env=BROWSER,librewolf