🚀 add script for changing wallpaper

nixos
Moritz Böhme 2022-02-07 14:20:56 +01:00
parent 29c51e7d7e
commit db363a3f57
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
7 changed files with 15 additions and 2 deletions

View File

@ -3,11 +3,12 @@
let let
cheat = import ./cheat.nix { inherit pkgs; }; cheat = import ./cheat.nix { inherit pkgs; };
cycleSinks = import ./cycleSinks.nix { inherit pkgs; }; cycleSinks = import ./cycleSinks.nix { inherit pkgs; };
git-switch = import ./git-switch.nix { inherit pkgs; };
protonge = import ./protonge.nix { inherit pkgs; }; protonge = import ./protonge.nix { inherit pkgs; };
randomWallpaper = import ./randomWallpaper.nix { inherit pkgs; };
share = import ./share.nix { inherit pkgs; }; share = import ./share.nix { inherit pkgs; };
sxhkdHelp = import ./sxhkdHelp.nix { inherit pkgs; }; sxhkdHelp = import ./sxhkdHelp.nix { inherit pkgs; };
git-switch = import ./git-switch.nix { inherit pkgs; };
in { in {
home-manager.users.moritz.home.packages = home-manager.users.moritz.home.packages =
[ cheat cycleSinks protonge share sxhkdHelp git-switch ]; [ cheat cycleSinks git-switch protonge randomWallpaper share sxhkdHelp ];
} }

View File

@ -0,0 +1,12 @@
{ pkgs }:
pkgs.writeShellApplication {
name = "randomWallpaper";
runtimeInputs = with pkgs; [ findutils coreutils ];
text = ''
wallpaper="$(find ~/.config/wallpapers/ -type f,l | shuf -n 1)"
feh --bg-fill "$wallpaper"
'';
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 MiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB