From 28e4a2b6620ad100ff298d8d94dc22d51d588264 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Mon, 17 Apr 2023 22:55:52 +0200 Subject: [PATCH] Update hyprland config (kitty transparency) --- config/hyprland/hyprland.conf | 14 ++++++++++---- home/modules/hyprland.nix | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/config/hyprland/hyprland.conf b/config/hyprland/hyprland.conf index c7f747a2..2b6672ed 100644 --- a/config/hyprland/hyprland.conf +++ b/config/hyprland/hyprland.conf @@ -70,8 +70,12 @@ general { gaps_in = 5 gaps_out = 20 border_size = 2 + + # TODO: The default colors are hideous col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) + # col.group_border = + # col.group_border_active = layout = dwindle } @@ -79,13 +83,15 @@ general { decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more - rounding = 10 + rounding = 5 + multisample_edges = on blur = yes - blur_size = 3 + blur_size = 5 blur_passes = 1 blur_new_optimizations = on + blur_xray = on - drop_shadow = yes + drop_shadow = off shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) @@ -138,7 +144,7 @@ windowrulev2 = workspace 2, class:^(obsidian)$ windowrulev2 = workspace 3, class:^(firefox)$ windowrulev2 = workspace 0, class:^(discord)$ windowrulev2 = workspace 0, class:^(Spotify)$ - +windowrulev2 = opacity 0.85, class:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER diff --git a/home/modules/hyprland.nix b/home/modules/hyprland.nix index ff51f021..bf134352 100644 --- a/home/modules/hyprland.nix +++ b/home/modules/hyprland.nix @@ -101,6 +101,8 @@ in { home.file.".config/hypr/polkit.conf".text = ''exec-once = ${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-agent-1 &''; home.activation = { + # TODO: Can I simplify mkLink to include the hm.dag.entryAfter and the name? + # Like mkLink linkHyprlandConfig "source" "target" linkHyprlandConfig = hm.dag.entryAfter ["writeBoundary"] (mkLink "~/NixFlake/config/hyprland/hyprland.conf" "~/.config/hypr/hyprland.conf"); linkHyprpaperConfig = hm.dag.entryAfter ["writeBoundary"] (mkLink "~/NixFlake/config/hyprland/hyprpaper.conf" "~/.config/hypr/hyprpaper.conf"); # TODO: Allow choosing a wallpaper through an option