mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 16:31:54 -05:00
hyprland: specify package from hyprland flake
hyprland: scripts link to hyprland version from build
This commit is contained in:
parent
64b5ce9352
commit
2408db0936
|
@ -3,6 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
osConfig,
|
osConfig,
|
||||||
|
hyprland,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [./hypridle ./hyprlock ./hyprpaper ./hyprshade ./theme.nix];
|
imports = [./hypridle ./hyprlock ./hyprpaper ./hyprshade ./theme.nix];
|
||||||
|
@ -72,6 +73,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.enable = true;
|
wayland.windowManager.hyprland.enable = true;
|
||||||
|
wayland.windowManager.hyprland.package = hyprland.packages.${pkgs.system}.hyprland;
|
||||||
wayland.windowManager.hyprland.extraConfig = let
|
wayland.windowManager.hyprland.extraConfig = let
|
||||||
modifier = "SUPER";
|
modifier = "SUPER";
|
||||||
|
|
||||||
|
|
|
@ -10,12 +10,12 @@
|
||||||
if [ -d "$directory" ]; then
|
if [ -d "$directory" ]; then
|
||||||
while true; do
|
while true; do
|
||||||
sleep 30
|
sleep 30
|
||||||
hyprctl hyprpaper unload all
|
${config.wayland.windowManager.hyprland.package}/bin/hyprctl hyprpaper unload all
|
||||||
monitor=`hyprctl monitors | grep Monitor | awk '{print $2}'`
|
monitor=`${config.wayland.windowManager.hyprland.package}/bin/hyprctl monitors | grep Monitor | awk '{print $2}'`
|
||||||
for m in ''${monitor[@]}; do
|
for m in ''${monitor[@]}; do
|
||||||
random_background=$(ls $directory/*.{png,jpg} | shuf -n 1)
|
random_background=$(ls $directory/*.{png,jpg} | shuf -n 1)
|
||||||
hyprctl hyprpaper preload $random_background
|
${config.wayland.windowManager.hyprland.package}/bin/hyprctl hyprpaper preload $random_background
|
||||||
hyprctl hyprpaper wallpaper "$m,$random_background"
|
${config.wayland.windowManager.hyprland.package}/bin/hyprctl hyprpaper wallpaper "$m,$random_background"
|
||||||
done
|
done
|
||||||
sleep 870
|
sleep 870
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue