mirror of
https://github.com/zoriya/flake.git
synced 2026-06-06 20:13:15 +00:00
Move window manager exclusive to wm module
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{pkgs, ...}: let
|
||||
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 = [
|
||||
./rofi
|
||||
./ags
|
||||
];
|
||||
home.packages = [
|
||||
wallpaper
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user