From 1b6dd293808fd749e467d5c8f0454e7fd898d572 Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Mon, 17 Jun 2024 21:47:24 -0500 Subject: [PATCH] Added transparency for a little spice of life inspired by JaKoolit --- config/hyprland.nix | 27 +++++++++++++++------------ hosts/default/config.nix | 3 +++ hosts/default/home.nix | 2 ++ hosts/default/variables.nix | 1 - 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/config/hyprland.nix b/config/hyprland.nix index c1114fc..195632e 100644 --- a/config/hyprland.nix +++ b/config/hyprland.nix @@ -4,6 +4,7 @@ host, inputs, pkgs, + config, ... }: @@ -11,7 +12,6 @@ let hyprplugins = inputs.hyprland-plugins.packages.${pkgs.system}; inherit (import ../hosts/${host}/variables.nix) browser - borderAnim terminal extraMonitorSettings ; @@ -59,11 +59,13 @@ with lib; border_size = 2 layout = dwindle resize_on_border = true + col.active_border = rgb(${config.stylix.base16Scheme.base08}) rgb(${config.stylix.base16Scheme.base0C}) 45deg + col.inactive_border = rgb(${config.stylix.base16Scheme.base01}) } input { kb_layout = us kb_options = grp:alt_shift_toggle - kb_options=caps:super + kb_options = caps:super follow_mouse = 1 touchpad { natural_scroll = false @@ -74,8 +76,14 @@ with lib; windowrule = noborder,^(wofi)$ windowrule = center,^(wofi)$ windowrule = center,^(steam)$ + windowrule = float, nm-connection-editor|blueman-manager + windowrule = float, swayimg|vlc|Viewnior|pavucontrol + windowrule = float, nwg-look|qt5ct|mpv + windowrule = float, zoom windowrulev2 = stayfocused, title:^()$,class:^(steam)$ windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ + windowrulev2 = opacity 0.9 0.7, class:^(Brave)$ + windowrulev2 = opacity 0.9 0.7, class:^(thunar)$ gestures { workspace_swipe = true workspace_swipe_fingers = 3 @@ -96,26 +104,21 @@ with lib; animation = windowsOut, 1, 5, winOut, slide animation = windowsMove, 1, 5, wind, slide animation = border, 1, 1, liner - ${ - if borderAnim == true then - '' - animation = borderangle, 1, 30, liner, loop - '' - else - '''' - } animation = fade, 1, 10, default animation = workspaces, 1, 5, wind } decoration { rounding = 10 - drop_shadow = false + drop_shadow = true + shadow_range = 4 + shadow_render_power = 3 + col.shadow = rgba(1a1a1aee) blur { enabled = true size = 5 passes = 3 new_optimizations = on - ignore_opacity = on + ignore_opacity = off } } plugin { diff --git a/hosts/default/config.nix b/hosts/default/config.nix index 4a786a1..2b0772d 100644 --- a/hosts/default/config.nix +++ b/hosts/default/config.nix @@ -72,6 +72,7 @@ # base0F = "56526e"; # }; polarity = "dark"; + opacity.terminal = 0.8; cursor.package = pkgs.bibata-cursors; cursor.name = "Bibata-Modern-Ice"; cursor.size = 24; @@ -261,6 +262,7 @@ cowsay ripgrep lshw + bat pkg-config meson hyprpicker @@ -271,6 +273,7 @@ appimage-run networkmanagerapplet yad + inxi playerctl nh nixfmt-rfc-style diff --git a/hosts/default/home.nix b/hosts/default/home.nix index 8a4c67a..567c776 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -79,6 +79,7 @@ in # Styling Options stylix.targets.waybar.enable = false; stylix.targets.rofi.enable = false; + stylix.targets.hyprland.enable = false; gtk = { iconTheme = { name = "Papirus-Dark"; @@ -189,6 +190,7 @@ in zu = "sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)"; ncg = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot"; v = "nvim"; + cat = "bat"; ls = "eza --icons"; ll = "eza -lh --icons --grid --group-directories-first"; la = "eza -lah --icons --grid --group-directories-first"; diff --git a/hosts/default/variables.nix b/hosts/default/variables.nix index 66cebab..131b9d5 100644 --- a/hosts/default/variables.nix +++ b/hosts/default/variables.nix @@ -4,7 +4,6 @@ gitEmail = "tylerzanekelley@gmail.com"; # Hyprland Settings - borderAnim = true; # Enable / Disable Hyprland Border Animation extraMonitorSettings = ""; # Waybar Settings