Move window manager exclusive to wm module

This commit is contained in:
2024-07-08 15:23:58 +07:00
parent 184ff78c09
commit 125f9a5eab
52 changed files with 70 additions and 139 deletions
+19
View File
@@ -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
];
}