From fb7a0b74830f8bb16d07caba6bbe0d3259ceabe4 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Fri, 7 Mar 2025 18:02:53 +0200 Subject: [PATCH] some laptop tweaks --- hosts/eldrid/configuration.nix | 4 +- hosts/eldrid/stylix.nix | 14 +++---- .../eldrid/users/user/home-configuration.nix | 2 +- modules/home/desktop/hyprland/default.nix | 37 ++++++------------- 4 files changed, 21 insertions(+), 36 deletions(-) diff --git a/hosts/eldrid/configuration.nix b/hosts/eldrid/configuration.nix index edeee97..d854fa4 100644 --- a/hosts/eldrid/configuration.nix +++ b/hosts/eldrid/configuration.nix @@ -18,8 +18,8 @@ ]; desktop = { - # hyprland.enable = true; - cosmic.enable = true; + hyprland.enable = true; + # cosmic.enable = true; }; nix = { diff --git a/hosts/eldrid/stylix.nix b/hosts/eldrid/stylix.nix index 26af5d3..3e113c5 100644 --- a/hosts/eldrid/stylix.nix +++ b/hosts/eldrid/stylix.nix @@ -12,17 +12,17 @@ ]; stylix = { enable = true; - base16Scheme = "${pkgs.base16-schemes}/share/themes/tomorrow-night.yaml"; - polarity = "dark"; + base16Scheme = "${pkgs.base16-schemes}/share/themes/tomorrow.yaml"; + polarity = "light"; cursor = { - package = pkgs.google-cursor; - name = "GoogleDot-Blue"; + package = pkgs.bibata-cursors; + name = "Bibata-Modern-Ice"; size = 24; }; image = builtins.fetchurl { - url = "https://w.wallhaven.cc/full/9m/wallhaven-9mwzwk.jpg"; - name = "wallhaven-9mwzwk"; - sha256 = "0pj2k30mfhqr02dzdj40z62awmy58s5gg5mm4xzxiialclbd5n8d"; + url = "https://w.wallhaven.cc/full/d6/wallhaven-d6163o.jpg"; + name = "wallhaven-d6163o"; + sha256 = "c6d298be1520546c0440d64d1073e33a356043e2481a8a67e940d5262c0c2e28"; }; opacity.terminal = 0.9; fonts = { diff --git a/hosts/eldrid/users/user/home-configuration.nix b/hosts/eldrid/users/user/home-configuration.nix index 2aca31a..9d5ec8e 100644 --- a/hosts/eldrid/users/user/home-configuration.nix +++ b/hosts/eldrid/users/user/home-configuration.nix @@ -6,7 +6,7 @@ ./programs.nix ./flatpak.nix ]; - # desktop.hyprland.enable = true; + desktop.hyprland.enable = true; home = { stateVersion = "25.05"; sessionPath = [ diff --git a/modules/home/desktop/hyprland/default.nix b/modules/home/desktop/hyprland/default.nix index 2b40f67..0e325a6 100644 --- a/modules/home/desktop/hyprland/default.nix +++ b/modules/home/desktop/hyprland/default.nix @@ -384,7 +384,7 @@ in { "$mod ALT, mouse:272, resizewindow" ]; gestures = { - workspace_swipe = false; + workspace_swipe = true; workspace_swipe_fingers = 3; workspace_swipe_distance = 300; }; @@ -540,7 +540,7 @@ in { bar-0 = { layer = "top"; position = "bottom"; - height = 40; + height = 32; spacing = 4; margin-left = 11; margin-right = 11; @@ -561,6 +561,7 @@ in { "custom/separator" "tray" "privacy" + "power-profiles-daemon" "idle_inhibitor" "custom/notification" "custom/separator" @@ -602,23 +603,12 @@ in { }; "group/laptop" = { orientation = "inherit"; - drawer = { - transition-duration = 500; - children-class = "laptop"; - transition-left-to-right = false; - }; modules = [ "battery" - "power-profiles-daemon" - # "custom/separator" - # "custom/kbd-backlight" - "custom/separator" "backlight" - "custom/separator" ]; }; "backlight" = { - # device = "intel_backlight"; format = "{percent}% {icon}"; format-icons = ["" ""]; }; @@ -791,18 +781,10 @@ in { #clock, #battery, - #cpu, - #memory, - #disk, - #temperature, #backlight, - #custom-backlight, - #custom-kbd-backlight, #workspaces, #network, - #pulseaudio, #wireplumber, - #custom-media, #laptop, #tray, #mode, @@ -837,6 +819,9 @@ in { padding-right: 0.1em; } */ + #battery, + #backlight, + #wireplumber, #custom-separator { padding: 0 0.3em; } @@ -936,16 +921,16 @@ in { drun-launch = true; anchor = "bottom"; width = "50%"; - height = 38; + height = 30; padding-right = 6; padding-left = 6; - padding-bottom = 2; - padding-top = 2; + padding-bottom = 0; + padding-top = 0; margin-bottom = 2; border-width = 0; - corner-radius = 16; + corner-radius = 12; outline-width = 0; - min-input-width = 192; + min-input-width = 128; result-spacing = 12; require-match = false; horizontal = true;