fix hyprshade

This commit is contained in:
Kopatz
2025-03-19 20:53:46 +01:00
parent 7d75d15712
commit 9de6698eb9
4 changed files with 19 additions and 4 deletions

View File

@@ -5,5 +5,6 @@
#./hyprland-xwaylandvideobridge.nix not needed anymore #./hyprland-xwaylandvideobridge.nix not needed anymore
./waybar.nix ./waybar.nix
./hyprlock.nix ./hyprlock.nix
./hyprshade.nix
]; ];
} }

View File

@@ -15,9 +15,6 @@ let
in in
{ {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.file.".config/hypr/hyprshade.toml".source =
../../.config/hypr/hyprshade.toml;
#programs.swaylock.enable = true; #programs.swaylock.enable = true;
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
@@ -308,7 +305,6 @@ in
#"${pkgs.swww} img $(ls -d /synced/default/dinge/Bg/* | shuf -n 1)" #"${pkgs.swww} img $(ls -d /synced/default/dinge/Bg/* | shuf -n 1)"
"${pkgs.swww} img ${config.stylix.image}" "${pkgs.swww} img ${config.stylix.image}"
"${pkgs.networkmanagerapplet}/bin/nm-applet --indicator &" "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator &"
"${pkgs.hyprshade}/bin/hyprshade auto"
"dex --autostart --environment Hyprland" "dex --autostart --environment Hyprland"
"${pkgs.hypridle}/bin/hypridle &" "${pkgs.hypridle}/bin/hypridle &"
#"${pkgs.dunst}/bin/dunst &" #"${pkgs.dunst}/bin/dunst &"

View 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" ];
};
}

View File

@@ -17,6 +17,7 @@ in
#jetbrains.clion #jetbrains.clion
insomnia insomnia
nodejs_22 # needed for tabby extension nodejs_22 # needed for tabby extension
python3
]; ];
#environment.sessionVariables = { #environment.sessionVariables = {