dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit 1e123e9ef557a3db8a0028288a82d927e6937f70 parent 1bb1a128d8d10dfdde89dd5d2c4652e8c9f69b28 Author: maydayv7 <maydayv7@gmail.com> Date: Tue, 6 Jan 2026 15:46:02 +0530 fix: Fix NVIDIA PRIME Also some Hyprland fixes
Diffstat:
| M | CHANGELOG.md | | | 2 | +- |
| M | files/hyprland/theme/hyprshell.css | | | 4 | ++++ |
| M | files/swaync.css | | | 43 | ++++++++++++++++++++----------------------- |
| M | modules/gui/desktop/_shared/notify.nix | | | 1 | + |
| M | modules/gui/desktop/hyprland/apps/launcher.nix | | | 3 | +++ |
| M | modules/gui/desktop/hyprland/settings/apps.nix | | | 5 | +++-- |
| M | modules/gui/desktop/hyprland/settings/default.nix | | | 5 | +---- |
| M | modules/gui/desktop/niri/settings/apps.nix | | | 2 | -- |
| M | modules/hardware/gpu.nix | | | 15 | +++++++-------- |
9 files changed, 40 insertions(+), 40 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -2,8 +2,8 @@ ### January -- Fix `flatpak` Configuration - Fix NVIDIA PRIME +- Fix `flatpak` Configuration - Refine `apps.games` - Add support for Roblox - `site` Changes diff --git a/files/hyprland/theme/hyprshell.css b/files/hyprland/theme/hyprshell.css @@ -16,6 +16,10 @@ border-color: var(--border-color-active); } +.workspace.special { + box-shadow: inset 0 0 9px #@base0D; +} + .client.active { background: var(--bg-color-active); border-color: var(--border-color-active); diff --git a/files/swaync.css b/files/swaync.css @@ -6,16 +6,13 @@ font-weight: 500; } -/* Notification */ +/* -- Notification -- */ .notification-background { - background: alpha(#@base01, 0.95); + background: alpha(#@base01, 0.9); color: #@base05; margin: 6px 12px; border-radius: 7px; border: solid 0.5px #@base05; - box-shadow: - 0 0 8px rgba(0, 0, 0, 0.8), - inset 0 0 0 1px #@base03; padding: 0; } @@ -80,10 +77,11 @@ .notification-action { background: #@base02; color: #@base05; - margin: 4px; - padding: 8px; + margin: 3px; + padding: 6px; border-radius: 7px; box-shadow: inset 0 0 0 1px #@base03; + font-size: 12px; } .notification-action:hover { @@ -107,15 +105,13 @@ background: #@base08; } -/* Control Center */ +/* -- Control Center -- */ .control-center { - background: alpha(#@base00, 0.95); + background: alpha(#@base00, 0.9); color: #@base05; padding: 14px; border-radius: 7px; - box-shadow: - 0 0 8px rgba(0, 0, 0, 0.8), - inset 0 0 0 1px #@base02; + box-shadow: inset 0 0 0 2px #@base02; } /* Title */ @@ -163,9 +159,14 @@ background: #@base05; } -/* Notification Group */ -.control-center .notification-group { +/* Notifications */ +.widget-notifications { + min-height: 400px; +} + +.notification-group { margin-top: 12px; + padding: 0 4px; } .notification-group-headers { @@ -173,6 +174,7 @@ } .notification-group-icon { + margin-left: 5px; margin-right: 12px; } @@ -232,23 +234,18 @@ trough slider:hover { } /* Scrollbar */ -scrollbar { - background-color: transparent; -} - scrollbar slider { - min-width: 2px; + min-width: 3px; margin: 0 1px; border-radius: 99px; - background-color: #@base03; - opacity: 0.3; + background-color: #@base0D; + opacity: 0.4; box-shadow: none; border: none; } scrollbar:hover slider { - min-width: 4px; + min-width: 5px; opacity: 0.8; - background-color: #@base04; box-shadow: none; } diff --git a/modules/gui/desktop/_shared/notify.nix b/modules/gui/desktop/_shared/notify.nix @@ -49,6 +49,7 @@ in # Control Center control-center-layer = "top"; fit-to-screen = false; + control-center-height = -1; control-center-margin-top = 3; control-center-margin-left = 3; control-center-margin-bottom = 3; diff --git a/modules/gui/desktop/hyprland/apps/launcher.nix b/modules/gui/desktop/hyprland/apps/launcher.nix @@ -42,6 +42,9 @@ show_execs = true; show_actions_submenu = true; }; + calc = { }; + path = { }; + terminal = { }; websearch.engines = [ { url = "https://www.google.com/search?q={}"; diff --git a/modules/gui/desktop/hyprland/settings/apps.nix b/modules/gui/desktop/hyprland/settings/apps.nix @@ -93,7 +93,6 @@ in ## Layer Rules layerrule = [ "noanim, ^(hyprpicker)$" - "blur, ^(hyprshell_overview)$" "dimaround, ^(hyprshell_overview)$" "blur, ^(logout_dialog)$" @@ -101,12 +100,14 @@ in "blur, ^(nwg-drawer)$" "dimaround, ^(nwg-drawer)$" - "animation fade, ^(nwg-drawer)$" + "animation popin, ^(nwg-drawer)$" "blur, ^(swaync-control-center)$" "ignorealpha, ^(swaync-control-center)$" + "animation slide right, ^(swaync-control-center)$" "blur, ^(swaync-notification-window)$" "ignorealpha, ^(swaync-notification-window)$" + "animation slide right, ^(swaync-notification-window)$" "blur, ^(waybar)$" "ignorealpha, ^(waybar)$" diff --git a/modules/gui/desktop/hyprland/settings/default.nix b/modules/gui/desktop/hyprland/settings/default.nix @@ -23,9 +23,6 @@ in ''; settings = { - # GPU Support - env = [ "AQ_DRM_DEVICES, /dev/dri/card1:/dev/dri/card0" ]; - # Display monitor = ", preferred, auto, 1"; xwayland = { @@ -162,7 +159,7 @@ in }; }; - animation = { + animation = mkIf fancy { bezier = [ "accelerate, 0.3, 0, 0.8, 0.15" "decelerate, 0.05, 0.7, 0.1, 1" diff --git a/modules/gui/desktop/niri/settings/apps.nix b/modules/gui/desktop/niri/settings/apps.nix @@ -24,8 +24,6 @@ "uwsm" "finalize" "NIRI_SOCKET" - "XDG_CURRENT_DESKTOP" - "XDG_SESSION_TYPE" ]; } { command = exec "pcmanfm-qt" [ "--desktop" ]; } diff --git a/modules/hardware/gpu.nix b/modules/hardware/gpu.nix @@ -49,12 +49,12 @@ in services.xserver.videoDrivers = mkForce [ "nvidia" ]; environment = { systemPackages = [ pkgs.btop-cuda ]; - variables = { + variables = mkIf mode { "__GLX_VENDOR_LIBRARY_NAME" = "nvidia"; "LIBVA_DRIVER_NAME" = "nvidia"; - "GAMEMODERUNEXEC" = - mkIf (hybrid && gamemode) - "env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only"; + }; + sessionVariables = { + "GAMEMODERUNEXEC" = mkIf (hybrid && gamemode && !mode) "nvidia-offload"; }; }; @@ -87,11 +87,10 @@ in dynamicBoost.enable = true; powerManagement.enable = true; prime = mkIf hybrid { - sync.enable = mkForce false; - reverseSync.enable = mkForce mode; + sync.enable = mkForce mode; offload = { - enable = mkForce mode; - enableOffloadCmd = mkForce mode; + enable = mkForce (!mode); + enableOffloadCmd = mkForce (!mode); }; }; };