🚀 add script for changing wallpaper
This commit is contained in:
parent
29c51e7d7e
commit
db363a3f57
7 changed files with 15 additions and 2 deletions
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
12
modules/cli/bin/randomWallpaper.nix
Normal file
12
modules/cli/bin/randomWallpaper.nix
Normal 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"
|
||||||
|
'';
|
||||||
|
}
|
BIN
modules/desktop/wallpapers/blender_pink_blue.jpg
Normal file
BIN
modules/desktop/wallpapers/blender_pink_blue.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 MiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
BIN
modules/desktop/wallpapers/forest_road.jpg
Normal file
BIN
modules/desktop/wallpapers/forest_road.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 MiB |
BIN
modules/desktop/wallpapers/stardust.jpg
Normal file
BIN
modules/desktop/wallpapers/stardust.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 635 KiB |
BIN
modules/desktop/wallpapers/whale_in_sky.jpg
Normal file
BIN
modules/desktop/wallpapers/whale_in_sky.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
Loading…
Reference in a new issue