dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit 95f47d212b861f507bb8dbff3df2f2eef7f2d11f parent cb028b3a239180122b78fe4711df3f42bc85769c Author: maydayv7 <maydayv7@gmail.com> Date: Fri, 3 Jan 2025 11:55:41 +0530 feat(Hyprland): KDE Connect Also theme KDE Apps
Diffstat:
| M | files/hyprland/greeter.conf | | | 6 | ++++-- |
| M | flake.lock | | | 6 | +++--- |
| M | modules/gui/desktop/hyprland/apps/misc.nix | | | 39 | ++++++++++++++++++++++++++++++++++++++- |
| M | modules/gui/desktop/hyprland/apps/notify.nix | | | 10 | ++++++++++ |
4 files changed, 55 insertions(+), 6 deletions(-)
diff --git a/files/hyprland/greeter.conf b/files/hyprland/greeter.conf @@ -1,13 +1,15 @@ -env = GTK_USE_PORTAL, 0 +env = LIBVA_DRIVER_NAME, nvidia +env = __GLX_VENDOR_LIBRARY_NAME, nvidia exec-once = @greeter; hyprctl dispatch exit windowrule = fullscreen, .* windowrule = stayfocused, .* monitor = , preferred, auto, 1 animations:enabled = false misc { + background_color = rgb(@base00) disable_autoreload = true force_default_wallpaper = 0 disable_hyprland_logo = true disable_splash_rendering = true - background_color = rgb(@base00) + disable_hyprland_qtutils_check = true } diff --git a/flake.lock b/flake.lock @@ -215,11 +215,11 @@ }, "flatpak": { "locked": { - "lastModified": 1734128415, - "narHash": "sha256-HLwdVNxpuTsLlM3tCkpbQU6yCehdgf3kOS1G2SDlkzY=", + "lastModified": 1735500379, + "narHash": "sha256-5qmX6YYjYfVYBbsmd2XxbTi7A59YuuN9IwfXU7qFquQ=", "owner": "gmodena", "repo": "nix-flatpak", - "rev": "8bdc2540da516006d07b04019eb57ae0781a04b3", + "rev": "c31b6cbd11707fe2c74ad805ef085d59d75116ae", "type": "github" }, "original": { diff --git a/modules/gui/desktop/hyprland/apps/misc.nix b/modules/gui/desktop/hyprland/apps/misc.nix @@ -5,7 +5,8 @@ theme, ... }: let - exists = app: builtins.elem app config.apps.list; + inherit (builtins) concatStringsSep elem map; + exists = app: elem app config.apps.list; in { ## 3rd Party Apps Configuration user.homeConfig = { @@ -39,6 +40,42 @@ in { # Logseq Notes ".logseq/config.edn" = with theme; lib.mkIf (exists "notes") {text = ''{:custom-css-url "@import url('https://logseq.${name}.com/ctp-${variant}.css');"}'';}; + + # KDE Apps + ".config/kdeglobals".text = with config.lib.stylix.colors; + '' + [Colors:Selection] + BackgroundNormal=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + BackgroundAlternate=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + ForegroundNormal=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + ForegroundActive=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + ForegroundInactive=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + ForegroundLink=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + ForegroundVisited=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + '' + + (concatStringsSep "\n" (map ( + name: '' + [Colors:${name}] + BackgroundNormal=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + BackgroundAlternate=${base01-rgb-r},${base01-rgb-g},${base01-rgb-b} + DecorationFocus=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + DecorationHover=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + ForegroundNormal=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundActive=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundInactive =${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundLink=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundVisited=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundNegative=${base08-rgb-r},${base08-rgb-g},${base08-rgb-b} + ForegroundNeutral=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + ForegroundPositive=${base0B-rgb-r},${base0B-rgb-g},${base0B-rgb-b} + '' + ) [ + "View" + "Window" + "Button" + "Tooltip" + "Complementary" + ])); }; }; } diff --git a/modules/gui/desktop/hyprland/apps/notify.nix b/modules/gui/desktop/hyprland/apps/notify.nix @@ -5,7 +5,15 @@ ... }: { ## Notifications Configuration + # Phone Connect + user.persist.directories = [".config/kdeconnect"]; + programs.kdeconnect.enable = true; user.homeConfig = { + services.kdeconnect = { + enable = true; + indicator = true; + }; + # Alerts services.poweralertd.enable = true; @@ -56,6 +64,8 @@ # nix-community/home-manager/pull/5785 systemd.user.services = { + kdeconnect.Unit.After = lib.mkForce ["graphical-session.target"]; + kdeconnect-indicator.Unit.After = lib.mkForce ["graphical-session.target"]; poweralertd.Unit.After = lib.mkForce ["graphical-session.target"]; dunst.Unit.After = lib.mkForce ["graphical-session.target"]; };