From 317dfc0b4ae3961d92473ee5f04fa6b8226c8f6a Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Fri, 31 Jan 2025 17:15:02 +0100 Subject: [PATCH] programs/anyrun: update config and styling --- modules/programs/anyrun/config.ron | 12 +++--------- modules/programs/anyrun/default.nix | 3 ++- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/modules/programs/anyrun/config.ron b/modules/programs/anyrun/config.ron index 2f50d7c..8743a9a 100644 --- a/modules/programs/anyrun/config.ron +++ b/modules/programs/anyrun/config.ron @@ -7,14 +7,8 @@ Config( x: Fraction(0.5), // The vertical position, works the same as `x` - y: Absolute(0), + y: Fraction(0.2), - // The width of the runner - width: Absolute(800), - - // The minimum height of the runner, the runner will expand to fit all the entries - height: Absolute(0), - // Hide match and plugin info icons hide_icons: false, @@ -28,11 +22,11 @@ Config( hide_plugin_info: false, // Close window when a click outside the main box is received - close_on_click: false, + close_on_click: true, // Show search results immediately when Anyrun starts show_results_immediately: true, // Limit amount of entries shown in total - max_entries: None, + max_entries: Some(10), ) diff --git a/modules/programs/anyrun/default.nix b/modules/programs/anyrun/default.nix index f8ea6b2..4bba7c0 100644 --- a/modules/programs/anyrun/default.nix +++ b/modules/programs/anyrun/default.nix @@ -2,6 +2,7 @@ lib, inputs, config, + lib', pkgs, ... }: let @@ -22,7 +23,7 @@ in { // to determine what terminal to use. terminal: Some(Terminal( // The main terminal command - command: "foot", + command: "ghostty -e", // What arguments should be passed to the terminal process to run the command correctly // {} is replaced with the command in the desktop entry args: "uwsm app -- {}",