fix hyprshade
This commit is contained in:
@@ -5,5 +5,6 @@
|
||||
#./hyprland-xwaylandvideobridge.nix not needed anymore
|
||||
./waybar.nix
|
||||
./hyprlock.nix
|
||||
./hyprshade.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -15,9 +15,6 @@ let
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
home.file.".config/hypr/hyprshade.toml".source =
|
||||
../../.config/hypr/hyprshade.toml;
|
||||
#programs.swaylock.enable = true;
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
@@ -308,7 +305,6 @@ in
|
||||
#"${pkgs.swww} img $(ls -d /synced/default/dinge/Bg/* | shuf -n 1)"
|
||||
"${pkgs.swww} img ${config.stylix.image}"
|
||||
"${pkgs.networkmanagerapplet}/bin/nm-applet --indicator &"
|
||||
"${pkgs.hyprshade}/bin/hyprshade auto"
|
||||
"dex --autostart --environment Hyprland"
|
||||
"${pkgs.hypridle}/bin/hypridle &"
|
||||
#"${pkgs.dunst}/bin/dunst &"
|
||||
|
||||
17
home-manager/hyprland/hyprshade.nix
Normal file
17
home-manager/hyprland/hyprshade.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ osConfig, pkgs, lib, ... }:
|
||||
|
||||
let cfg = osConfig.custom.graphical.hyprland;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.activation.hyprshade = {
|
||||
after = [ "writeBoundary" ];
|
||||
before = [ ];
|
||||
data = ''
|
||||
${pkgs.hyprshade}/bin/hyprshade install
|
||||
${pkgs.systemd}/bin/systemctl --user enable --now hyprshade.timer
|
||||
'';
|
||||
};
|
||||
home.file.".config/hypr/hyprshade.toml".source = ../../.config/hypr/hyprshade.toml;
|
||||
wayland.windowManager.hyprland.settings.exec-once = [ "${pkgs.hyprshade}/bin/hyprshade auto" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user