programs/anyrun: update config and styling

This commit is contained in:
Anthony Rodriguez 2025-01-31 17:15:02 +01:00
parent a51ca01822
commit 317dfc0b4a
Signed by: nezia
SSH key fingerprint: SHA256:Ihfpl0rUpqDevYqnzSR34OYfVLbDNkBiUjs3CpX4ykA
2 changed files with 5 additions and 10 deletions

View file

@ -7,14 +7,8 @@ Config(
x: Fraction(0.5), x: Fraction(0.5),
// The vertical position, works the same as `x` // 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 match and plugin info icons
hide_icons: false, hide_icons: false,
@ -28,11 +22,11 @@ Config(
hide_plugin_info: false, hide_plugin_info: false,
// Close window when a click outside the main box is received // 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 search results immediately when Anyrun starts
show_results_immediately: true, show_results_immediately: true,
// Limit amount of entries shown in total // Limit amount of entries shown in total
max_entries: None, max_entries: Some(10),
) )

View file

@ -2,6 +2,7 @@
lib, lib,
inputs, inputs,
config, config,
lib',
pkgs, pkgs,
... ...
}: let }: let
@ -22,7 +23,7 @@ in {
// to determine what terminal to use. // to determine what terminal to use.
terminal: Some(Terminal( terminal: Some(Terminal(
// The main terminal command // The main terminal command
command: "foot", command: "ghostty -e",
// What arguments should be passed to the terminal process to run the command correctly // What arguments should be passed to the terminal process to run the command correctly
// {} is replaced with the command in the desktop entry // {} is replaced with the command in the desktop entry
args: "uwsm app -- {}", args: "uwsm app -- {}",