From 984e06d60dbfc6299b4c4c96a2ba23c2ca482ad9 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 21 Feb 2023 15:08:29 -0600 Subject: [PATCH] making kaladin use hyprland --- modules/desktop.nix | 2 +- system/kaladin/configuration.nix | 2 +- system/kaladin/hardware-configuration.nix | 1 - user/home.nix | 2 +- user/modules/hyprland.nix | 18 +++++++++++------- 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/modules/desktop.nix b/modules/desktop.nix index b50836b..5197a78 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -73,7 +73,7 @@ with lib; enable = true; settings = rec { initial_session = { - command = "dbus-run-session startplasma-wayland"; + command = if builtins.readFile "/etc/hostname" == "syl\n" then "dbus-run-session startplasma-wayland" else "hyprland"; user = "chris"; }; default_session = { diff --git a/system/kaladin/configuration.nix b/system/kaladin/configuration.nix index 9f6ad9e..6bc45a0 100644 --- a/system/kaladin/configuration.nix +++ b/system/kaladin/configuration.nix @@ -27,7 +27,7 @@ ]; }; nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.latest; + package = config.boot.kernelPackages.nvidiaPackages.beta; modesetting.enable = true; powerManagement.enable = true; }; diff --git a/system/kaladin/hardware-configuration.nix b/system/kaladin/hardware-configuration.nix index e35da35..595c8fe 100644 --- a/system/kaladin/hardware-configuration.nix +++ b/system/kaladin/hardware-configuration.nix @@ -43,7 +43,6 @@ fileSystems."/run/media/chris/backup" = { device = "/dev/disk/by-uuid/4286b9ef-e8ed-49a0-9eec-91b8ee05b2cb"; fsType = "ext4"; - options = [ "noatime" "space_cache" "clear_cache" "compress=zstd" ]; }; fileSystems."/boot" = diff --git a/user/home.nix b/user/home.nix index 487a0a9..4320839 100644 --- a/user/home.nix +++ b/user/home.nix @@ -2,7 +2,7 @@ { imports = [ - # ./modules/hyprland.nix + ./modules/hyprland.nix ]; # Home Manager needs a bit of information about you and the # paths it should manage. diff --git a/user/modules/hyprland.nix b/user/modules/hyprland.nix index 894f137..5156a9b 100644 --- a/user/modules/hyprland.nix +++ b/user/modules/hyprland.nix @@ -61,21 +61,25 @@ decoration { rounding=18 - active_opacity=0.95 - inactive_opacity=0.85 + multisample_edges=true + active_opacity=0.97 + inactive_opacity=0.75 fullscreen_opacity=1.0 blur=true blur_new_optimizations=true - blur_size=9# minimum 1 - blur_passes=5 # minimum 1, more passes = more resource intensive. + blur_size=10 # minimum 1 + blur_passes=3 # minimum 1, more passes = more resource intensive. + blur_ignore_opacity=false # Your blur "amount" is blur_size * blur_passes, but high blur_size (over around 5-ish) will produce artifacts. # if you want heavy blur, you need to up the blur_passes. # the more passes, the more you can up the blur_size without noticing artifacts. + drop_shadow=true - shadow_range=20 - shadow_offset=4 4 + shadow_range=15 + shadow_offset=5 5 + shadow_scale=0.99 shadow_render_power=1 - col.shadow = rgba(000000ee) + col.shadow = rgba(000000cc) dim_inactive=true dim_strength=0.2 }