From 55f2ca393b7c94910637a3f3c6773ed155ebabd4 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Thu, 29 Aug 2024 09:04:51 -0400 Subject: [PATCH] remove hypr nix --- home-manager/hyprland/hypridle.nix | 39 ------------------------------ home-manager/hyprland/hyprland.nix | 31 ------------------------ home-manager/hyprland/hyprlock.nix | 17 ------------- 3 files changed, 87 deletions(-) delete mode 100644 home-manager/hyprland/hypridle.nix delete mode 100644 home-manager/hyprland/hyprland.nix delete mode 100644 home-manager/hyprland/hyprlock.nix diff --git a/home-manager/hyprland/hypridle.nix b/home-manager/hyprland/hypridle.nix deleted file mode 100644 index d2c73b2..0000000 --- a/home-manager/hyprland/hypridle.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ ... }: -{ - services.hypridle = { - enable = true; - settings = { - general = { - lock_cmd = "pidof hyprlock || hyprlock"; - before_sleep_cmd = "loginctl lock-session"; - after_sleep_cmd = "hyprctl dispatch dpms on"; - }; - listener = [ - { - timeout = 150; # 2.5min. - on-timeout = "brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor. - on-resume = "brightnessctl -r"; # monitor backlight restore. - } - # turn off keyboard backlight, comment out this section if you dont have a keyboard backlight. - { - timeout = 150; # 2.5min. - on-timeout = "brightnessctl -sd rgb:kbd_backlight set 0"; # turn off keyboard backlight. - on-resume = "brightnessctl -rd rgb:kbd_backlight"; # turn on keyboard backlight. - } - { - timeout = 300; # 5min - on-timeout = "loginctl lock-session"; # lock screen when timeout has passed - } - { - timeout = 330; # 5.5min - on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed - on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired. - } - { - timeout = 1800; # 30min - on-timeout = "systemctl suspend"; # suspend pc - } - ]; - }; - }; -} diff --git a/home-manager/hyprland/hyprland.nix b/home-manager/hyprland/hyprland.nix deleted file mode 100644 index a4fc8c1..0000000 --- a/home-manager/hyprland/hyprland.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ lib, ... }: -let - configs = [ - ./config/input.nix - ./config/keybinds.nix - ./config/look.nix - ./config/nvidia.nix - ./config/rules.nix - ./config/startup.nix - ]; -in -{ - wayland.windowManager.hyprland = { - enable = true; - settings = lib.mkMerge ( - [ - { - monitor = "DP-1,preferred,auto,auto"; - "$terminal" = "kitty"; - "$fileManager" = "Thunar"; - "$menu" = "rofi -show drun"; - "$lockScreen" = "hyprlock"; - - "$mainMod" = "SUPER"; - source = "${../../../.cache/wal/colors-hyprland.conf}"; - } - ] - ++ (lib.forEach configs (config: import config)) - ); - }; -} diff --git a/home-manager/hyprland/hyprlock.nix b/home-manager/hyprland/hyprlock.nix deleted file mode 100644 index 9bedb4c..0000000 --- a/home-manager/hyprland/hyprlock.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ ... }: -{ - programs.hyprlock = { - enable = true; - settings = { - background = { - blur_passes = 4; - blur_size = 2; - noise = 1.17e-2; - contrast = 0.8916; - brightness = 0.8172; - vibrancy = 0.1696; - vibrancy_darkness = 0.0; - }; - }; - }; -}