From ea4bbd9f0fb7b0b366c93bb65dfc1b5e6a5fbb45 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Fri, 20 Jun 2025 19:23:42 -0500 Subject: [PATCH] vrr --- .../desktop-environments/hyprland/config.nix | 1 + .../hyprland/config/hypr/default.nix | 7 +++- .../hyprland/config/nwg-dock/style.css | 42 +++++++++++++++++++ .../hyprland/environment.nix | 2 + 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 modules/desktop-environments/hyprland/config/nwg-dock/style.css diff --git a/modules/desktop-environments/hyprland/config.nix b/modules/desktop-environments/hyprland/config.nix index 11fc6df..deb13ec 100755 --- a/modules/desktop-environments/hyprland/config.nix +++ b/modules/desktop-environments/hyprland/config.nix @@ -10,6 +10,7 @@ in ".config/waybar/macchiato.css".source = "${configDir}/waybar/macchiato.css"; ".config/waybar/nord.css".source = "${configDir}/waybar/nord.css"; ".config/btop/themes".source = "${configDir}/btop/themes"; + ".config/nwg-dock-hyprland".source = "${configDir}/nwg-dock"; ".config/nwg-drawer".source = "${configDir}/nwg-drawer"; ".config/nwg-panel".source = "${configDir}/nwg-panel"; }; diff --git a/modules/desktop-environments/hyprland/config/hypr/default.nix b/modules/desktop-environments/hyprland/config/hypr/default.nix index f989154..0cb0ed0 100755 --- a/modules/desktop-environments/hyprland/config/hypr/default.nix +++ b/modules/desktop-environments/hyprland/config/hypr/default.nix @@ -113,8 +113,12 @@ in monitor = [ "DP-1,3840x2160@240.00000,0x0,1" - "DP-2,3840x2160@59.99700,3840x0,1" + "DP-2,3840x2160@240.00000,3840x0,1" ]; + + misc = { + vrr = 1; + }; general = { gaps_in = 5; @@ -268,6 +272,7 @@ in exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = xhost +SI:localuser:root exec-once = nwg-look -a + exec-once = nwg-dock-hyprland -d exec-once = nm-applet exec-once = blueberry-tray exec-once = [silent] firefox diff --git a/modules/desktop-environments/hyprland/config/nwg-dock/style.css b/modules/desktop-environments/hyprland/config/nwg-dock/style.css new file mode 100644 index 0000000..2a098b3 --- /dev/null +++ b/modules/desktop-environments/hyprland/config/nwg-dock/style.css @@ -0,0 +1,42 @@ +window { + background: #36364f; + border-radius: 10px; + border-style: none; + border-width: 1px; + border-color: rgba(156, 142, 122, 0.7) +} + +#box { + /* Define attributes of the box surrounding icons here */ + padding: 10px +} + +#active { + /* This is to underline the button representing the currently active window */ + border-bottom: solid 1px; + border-color: rgba(255, 255, 255, 0.3) +} + +button, image { + background: none; + border-style: none; + box-shadow: none; + color: #999 +} + +button { + padding: 4px; + margin-left: 4px; + margin-right: 4px; + color: #eee; + font-size: 12px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.15); + border-radius: 2px; +} + +button:focus { + box-shadow: none +} \ No newline at end of file diff --git a/modules/desktop-environments/hyprland/environment.nix b/modules/desktop-environments/hyprland/environment.nix index 2513abf..e69e8c0 100755 --- a/modules/desktop-environments/hyprland/environment.nix +++ b/modules/desktop-environments/hyprland/environment.nix @@ -35,6 +35,7 @@ in unstable.nautilus networkmanagerapplet nm-tray + nwg-dock-hyprland nwg-drawer nwg-look pamixer @@ -51,6 +52,7 @@ in waybarWeatherScript wayland-protocols wayland-utils + waypaper wev wl-clipboard wlogout