From d5518fec152eaf9152bffd4802b5ca204ead2a63 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Wed, 19 Feb 2025 23:52:36 +0200 Subject: [PATCH] tofi --- modules/home/desktop/hyprland/default.nix | 32 +++++++++++++++++++---- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/modules/home/desktop/hyprland/default.nix b/modules/home/desktop/hyprland/default.nix index 31618c8..50eced2 100644 --- a/modules/home/desktop/hyprland/default.nix +++ b/modules/home/desktop/hyprland/default.nix @@ -174,7 +174,8 @@ in { "$right" = "O"; "$terminal" = "ghostty"; - "$launcher" = "walker"; + "$dlauncher" = "tofi-drun"; + "$launcher" = "tofi-run"; "$screenLocker" = "hyprlock"; "$webBrowser" = "io.github.zen_browser.zen"; "$clipboardManager" = "copyq menu"; @@ -205,7 +206,8 @@ in { bindn = [", mouse:272, hy3:focustab, mouse"]; bind = [ "$mod, Return, exec, $terminal" - "$mod, Space, exec, $launcher" + "$mod, Space, exec, $dlauncher" + "$modShift, Space, exec, $launcher" "$mod, Escape, exec, hyprctl switchxkblayout all next" "$modCtrl, Q, killactive" "$modCtrl, M, fullscreen" @@ -477,7 +479,6 @@ in { stylix.targets.waybar.enable = false; programs.waybar = { enable = true; - #package = pkgs.waybar-0.11.0"; systemd = { enable = true; target = "graphical-session.target"; @@ -1105,9 +1106,30 @@ in { } ''; }; - - programs.walker = { + programs.tofi = { enable = true; + settings = { + drun-launch = true; + anchor = "bottom"; + width = 1920 - 12; + height = 40; + padding-right = 6; + padding-left = 6; + padding-bottom = 2; + padding-top = 2; + margin-bottom = 6; + border-width = 3; + corner-radius = 16; + outline-width = 0; + min-input-width = 192; + result-spacing = 12; + require-match = false; + horizontal = true; + prompt-text = "~>"; + }; + }; + programs.walker = { + enable = false; package = pkgs.walker; runAsService = true; config = {