From 5e3b4d9a1eb9179ed30a77b94f40b12e86edc648 Mon Sep 17 00:00:00 2001 From: Javier Feliz Date: Mon, 11 Aug 2025 00:52:46 -0400 Subject: [PATCH] Got walker and got it themed --- configuration.nix | 14 +++ flake.lock | 53 ++++++++++- flake.nix | 1 + home.nix | 1 + home/hyprland.nix | 194 +++++++++++++++++++++++++++++++++++++++- home/hyprland/binds.nix | 3 +- result | 1 + 7 files changed, 263 insertions(+), 4 deletions(-) create mode 120000 result diff --git a/configuration.nix b/configuration.nix index fbd49d3..4fc9605 100755 --- a/configuration.nix +++ b/configuration.nix @@ -104,8 +104,22 @@ openssh pkgs.ntfs3g xdg-user-dirs-gtk # This helps with Nautilus integration + cachix ]; + nix.settings = { + substituters = [ + "https://cache.nixos.org/" + "https://walker.cachix.org" + "https://walker-git.cachix.org" + ]; + trusted-public-keys = [ + "walker.cachix.org-1:fG8q+uAaMqhsMxWjwvk0IMb4mFPFLqHjuvfwQxE4oJM=" + "walker-git.cachix.org-1:vmC0ocfPWh0S/vRAQGtChuiZBTAe4wiKDeyyXM0/7pM=" + "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" + ]; + }; + services.openssh = { enable = true; }; diff --git a/flake.lock b/flake.lock index b33171b..78a8b15 100755 --- a/flake.lock +++ b/flake.lock @@ -207,6 +207,22 @@ "type": "github" } }, + "nixpkgs_3": { + "locked": { + "lastModified": 1747542820, + "narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nur": { "inputs": { "flake-parts": [ @@ -237,7 +253,8 @@ "home-manager": "home-manager", "hyprshell": "hyprshell", "nixpkgs": "nixpkgs_2", - "stylix": "stylix" + "stylix": "stylix", + "walker": "walker" } }, "stylix": { @@ -289,6 +306,21 @@ "type": "github" } }, + "systems_2": { + "locked": { + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "owner": "nix-systems", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default-linux", + "type": "github" + } + }, "tinted-foot": { "flake": false, "locked": { @@ -369,6 +401,25 @@ "repo": "base16-zed", "type": "github" } + }, + "walker": { + "inputs": { + "nixpkgs": "nixpkgs_3", + "systems": "systems_2" + }, + "locked": { + "lastModified": 1754830695, + "narHash": "sha256-6nQYTUU3THpCuOaXNbvbvnZlLa1NdJTISdz45erI6Pw=", + "owner": "abenz1267", + "repo": "walker", + "rev": "28af0c388908f4557161c57f449c61bb5847c508", + "type": "github" + }, + "original": { + "owner": "abenz1267", + "repo": "walker", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 7138bb1..8a3e4c2 100755 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,7 @@ url = "github:danth/stylix"; inputs.nixpkgs.follows = "nixpkgs"; }; + walker.url = "github:abenz1267/walker"; }; outputs = diff --git a/home.nix b/home.nix index cdb2cfb..6f2f43a 100755 --- a/home.nix +++ b/home.nix @@ -2,6 +2,7 @@ config, pkgs, lib, + inputs, ... }: { diff --git a/home/hyprland.nix b/home/hyprland.nix index c849632..c3e687c 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -13,11 +13,202 @@ ./hyprland/hyprpaper.nix # Desktop environment ./hyprland/hyprpanel.nix + inputs.walker.homeManagerModules.default ]; + programs.walker = { + enable = true; + runAsService = true; + config = { + cache = false; + websearch = { + prefix = ":"; + }; + + theme = "nixos"; + }; + theme.style = '' + @define-color selected-text #fabd2f; + @define-color text #ebdbb2; + @define-color base #282828; + @define-color border #ebdbb2; + @define-color foreground #ebdbb2; + @define-color background #282828; + + /* Reset all elements */ + #window, + #box, + #search, + #password, + #input, + #prompt, + #clear, + #typeahead, + #list, + child, + scrollbar, + slider, + #item, + #text, + #label, + #sub, + #activationlabel { + all: unset; + } + + * { + font-family: 'CaskaydiaMono Nerd Font', monospace; + font-size: 18px; + } + + /* Window */ + #window { + background: transparent; + color: @text; + } + + /* Main box container */ + #box { + background: alpha(@base, 0.95); + padding: 20px; + border: 2px solid @border; + border-radius: 0px; + } + + /* Search container */ + #search { + background: @base; + padding: 10px; + margin-bottom: 0; + } + + /* Hide prompt icon */ + #prompt { + opacity: 0; + min-width: 0; + margin: 0; + } + + /* Hide clear button */ + #clear { + opacity: 0; + min-width: 0; + } + + /* Input field */ + #input { + background: none; + color: @text; + padding: 0; + } + + #input placeholder { + opacity: 0.5; + color: @text; + } + + /* Hide typeahead */ + #typeahead { + opacity: 0; + } + + /* List */ + #list { + background: transparent; + } + + /* List items */ + child { + padding: 0px 12px; + background: transparent; + border-radius: 0; + } + + child:selected, + child:hover { + background: transparent; + } + + /* Item layout */ + #item { + padding: 0; + } + + #item.active { + font-style: italic; + } + + /* Icon */ + #icon { + margin-right: 10px; + -gtk-icon-transform: scale(0.7); + } + + /* Text */ + #text { + color: @text; + padding: 14px 0; + } + + #label { + font-weight: normal; + } + + /* Selected state */ + child:selected #text, + child:selected #label, + child:hover #text, + child:hover #label { + color: @selected-text; + } + + /* Hide sub text */ + #sub { + opacity: 0; + font-size: 0; + min-height: 0; + } + + /* Hide activation label */ + #activationlabel { + opacity: 0; + min-width: 0; + } + + /* Scrollbar styling */ + scrollbar { + opacity: 0; + } + + /* Hide spinner */ + #spinner { + opacity: 0; + } + + /* Hide AI elements */ + #aiScroll, + #aiList, + .aiItem { + opacity: 0; + min-height: 0; + } + + /* Bar entry (switcher) */ + #bar { + opacity: 0; + min-height: 0; + } + + .barentry { + opacity: 0; + } + + ''; + }; + home.packages = with pkgs; [ # Running apps - wofi + # wofi # Notifications libnotify @@ -48,7 +239,6 @@ input = { repeat_delay = 200; repeat_rate = 20; - follow_mouse = 0; }; monitor = [ diff --git a/home/hyprland/binds.nix b/home/hyprland/binds.nix index d9de5fe..86fb8e7 100644 --- a/home/hyprland/binds.nix +++ b/home/hyprland/binds.nix @@ -50,7 +50,8 @@ "$mod, f, fullscreen, 0" "$mod, v, togglefloating, active" - "$mod, SPACE, exec, wofi --show drun" + # "$mod, SPACE, exec, wofi --show drun" + "$mod, SPACE, exec, walker" "$mod SHIFT, s, exec, hyprshot --mode region" ", PRINT, exec, hyprshot --mode output" diff --git a/result b/result new file mode 120000 index 0000000..2d32ed5 --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/cy863mrchnaj8v0y419jc7hnwrll43z9-walker-0.13.14 \ No newline at end of file