From f57617e2683e8a1b53205960b5b06ca388e06278 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Fri, 16 Jan 2026 10:47:06 -0600 Subject: [PATCH] stuff --- .../matt@macbook-pro-nixos/default.nix | 7 ++ modules/home/home/default.nix | 2 +- modules/home/programs/hyprland/options.nix | 2 +- modules/home/programs/nwg-dock/default.nix | 73 +++++++++++++++++++ 4 files changed, 82 insertions(+), 2 deletions(-) diff --git a/homes/aarch64-linux/matt@macbook-pro-nixos/default.nix b/homes/aarch64-linux/matt@macbook-pro-nixos/default.nix index 8f1cea6..8fa323b 100755 --- a/homes/aarch64-linux/matt@macbook-pro-nixos/default.nix +++ b/homes/aarch64-linux/matt@macbook-pro-nixos/default.nix @@ -143,6 +143,13 @@ in orca-slicer vscodium ]); + + services = { + kdeconnect = { + enable = lib.mkForce true; + indicator = lib.mkForce true; + }; + }; programs = { password-store = enabled; diff --git a/modules/home/home/default.nix b/modules/home/home/default.nix index bbd6b54..c394afe 100644 --- a/modules/home/home/default.nix +++ b/modules/home/home/default.nix @@ -137,7 +137,7 @@ in kdeconnect = { enable = lib.mkDefault hasDestopEnvironment; indicator = lib.mkDefault hasDestopEnvironment; - package = pkgs.gnomeExtensions.gsconnect; + package = pkgs.kdePackages.kdeconnect-kde; }; }; } diff --git a/modules/home/programs/hyprland/options.nix b/modules/home/programs/hyprland/options.nix index 86865c4..7eec3de 100644 --- a/modules/home/programs/hyprland/options.nix +++ b/modules/home/programs/hyprland/options.nix @@ -209,7 +209,7 @@ with lib; type = with types; listOf str; default = [ "nwg-look -a" - "nwg-dock-hyprland" + "nwg-dock-hyprland -x" ]; description = "Commands to run via Hyprland exec-once"; }; diff --git a/modules/home/programs/nwg-dock/default.nix b/modules/home/programs/nwg-dock/default.nix index a82dba0..9855671 100644 --- a/modules/home/programs/nwg-dock/default.nix +++ b/modules/home/programs/nwg-dock/default.nix @@ -16,6 +16,79 @@ in home.packages = with pkgs; [ nwg-dock-hyprland ]; home.file = { + ".config/nwg-dock-hyprland/config.json".text = '' + { + "position": "bottom", + "anchor": "center", + "margin": 12, + "icon_size": 48, + "icon_size_hover": 64, + "spacing": 6, + "padding": 8, + "autohide": false, + "autohide_timeout": 0.3, + "exclusive": true, + "layer": "top", + "height": 72, + "background_alpha": 0.55, + "rounded_corners": 16, + "show_labels": false, + "show_running": true, + "show_pinned": true, + "pinned": [ + "firefox.desktop", + "org.wezfurlong.wezterm.desktop", + "codium.desktop", + "org.gnome.Nautilus.desktop" + ] + } + ''; + + ".config/nwg-dock-hyprland/style.css".text = '' + 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 + } + ''; + ".config/nwg-dock-hyprland/drawer.css".text = '' window { background: ${config.lib.stylix.colors.base00};