From 3262b594c19fb4cc27eb48b42fa9ec6ed2427ab8 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 26 Jun 2023 12:02:44 -0400 Subject: [PATCH] hyprland: Use opacity from stylix --- home/hyprland.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/hyprland.nix b/home/hyprland.nix index a2e2559..952dc13 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -1,5 +1,8 @@ -{ pkgs, config, ... }: +{ pkgs, config, lib, ... }: +let + opacity = lib.strings.floatToString config.stylix.opacity.terminal; +in { xdg.configFile."hypr/hyprland.conf".text = with config.lib.stylix.colors; /* bash */ '' env=XCURSOR_SIZE,24 @@ -161,7 +164,7 @@ windowrulev2 = nomaxsize,class:^(osu\.exe)$ windowrulev2 = opaque,class:^(kitty)$ windowrulev2 = noblur,class:^(kitty)$ - windowrulev2 = opacity 0.92 0.92,class:^(thunar)$ + windowrulev2 = opacity ${opacity} ${opacity},class:^(thunar)$ # Scroll through existing workspaces with super + scroll bind = SUPER, mouse_down, workspace, e+1