🚀 add script for changing wallpaper
parent
29c51e7d7e
commit
db363a3f57
|
@ -3,11 +3,12 @@
|
|||
let
|
||||
cheat = import ./cheat.nix { inherit pkgs; };
|
||||
cycleSinks = import ./cycleSinks.nix { inherit pkgs; };
|
||||
git-switch = import ./git-switch.nix { inherit pkgs; };
|
||||
protonge = import ./protonge.nix { inherit pkgs; };
|
||||
randomWallpaper = import ./randomWallpaper.nix { inherit pkgs; };
|
||||
share = import ./share.nix { inherit pkgs; };
|
||||
sxhkdHelp = import ./sxhkdHelp.nix { inherit pkgs; };
|
||||
git-switch = import ./git-switch.nix { inherit pkgs; };
|
||||
in {
|
||||
home-manager.users.moritz.home.packages =
|
||||
[ cheat cycleSinks protonge share sxhkdHelp git-switch ];
|
||||
[ cheat cycleSinks git-switch protonge randomWallpaper share sxhkdHelp ];
|
||||
}
|
||||
|
|
|
@ -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 |
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 |
Loading…
Reference in New Issue