mirror of
https://github.com/zoriya/flake.git
synced 2026-06-02 18:51:15 +00:00
Add wallpapers to river
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
@@ -35,6 +35,7 @@ in {
|
||||
default-layout = "rivercarro";
|
||||
spawn = [
|
||||
"${pkgs.rivercarro}/bin/rivercarro"
|
||||
"wallpaper"
|
||||
"discord"
|
||||
"youtube-music"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user