Move anyrun to own config dir, and setup for non-nix use

This commit is contained in:
2025-02-27 11:23:10 -05:00
parent d89a039500
commit fbe57d0dea
17 changed files with 76 additions and 14 deletions

View File

@@ -0,0 +1,14 @@
Config(
// Also show the Desktop Actions defined in the desktop files, e.g. "New Window" from LibreWolf
desktop_actions: false,
max_entries: 5,
// The terminal used for running terminal based desktop entries, if left as `None` a static list of terminals is used
// to determine what terminal to use.
terminal: Some(Terminal(
// The main terminal command
command: "kitty",
// What arguments should be passed to the terminal process to run the command correctly
// {} is replaced with the command in the desktop entry
args: "-e {}",
)),
)

52
configs/anyrun/config.ron Normal file
View File

@@ -0,0 +1,52 @@
Config(
// Position/size fields use an enum for the value, it can be either:
// Absolute(n): The absolute value in pixels
// Fraction(n): A fraction of the width or height of the full screen (depends on exclusive zones and the settings related to them) window respectively
// The horizontal position, adjusted so that Relative(0.5) always centers the runner
x: Fraction(0.5),
// The vertical position, works the same as `x`
y: Fraction(0.300000),
// The width of the runner
width: Fraction(0.250000),
// 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,
// ignore exclusive zones, f.e. Waybar
ignore_exclusive_zones: false,
// Layer shell layer: Background, Bottom, Top, Overlay
layer: Overlay,
// Hide the plugin info panel
hide_plugin_info: true, // DEFAULT: false
// Close window when a click outside the main box is received
close_on_click: true, // DEFAULT: false
// Show search results immediately when Anyrun starts
show_results_immediately: true, // DEFAULT: true
// Limit amount of entries shown in total
max_entries: None,
// List of plugins to be loaded by default, can be specified with a relative path to be loaded from the
// `<anyrun config dir>/plugins` directory or with an absolute path to just load the file the path points to.
plugins: [
// On by default, but disabled for me:
// "libsymbols.so",
"libapplications.so",
"libshell.so",
"libtranslate.so",
"libdictionary.so",
"librink.so",
"libwebsearch.so",
],
)

View File

@@ -0,0 +1,4 @@
Config(
prefix: ":def",
max_entries: 5,
)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
configs/anyrun/plugins/librink.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,6 +1,7 @@
/* Stolen From: https://github.com/fufexan/dotfiles/blob/main/home/programs/anyrun/style-dark.css */
* {
all: unset;
font-family: "NotoSansM Nerd Font", monospace;
font-size: 1.2rem;
}

View File

@@ -0,0 +1,5 @@
Config(
prefix: ":tr ",
language_delimiter: " to ",
max_entries: 3,
)

View File

@@ -1,14 +0,0 @@
Config(
x: Fraction(0.500000),
y: Fraction(0.300000),
width: Fraction(0.250000),
height: Absolute(0),
hide_icons: false,
ignore_exclusive_zones: false,
layer: Overlay,
hide_plugin_info: true,
close_on_click: true,
show_results_immediately: true,
max_entries: None,
plugins: ["/nix/store/xvnjbsi8bw04briy4xq6r028qff7apfy-applications-0.1.0/lib/libapplications.so","/nix/store/61sd49k7q54jlnz3q3ahp2nkbrnsq78a-rink-0.1.0/lib/librink.so","/nix/store/h396la55cxr82msbij9rmsxja9s3md0x-shell-0.1.0/lib/libshell.so","/nix/store/g3mz3bck6qr22j0bwz9q4kki1h2bbc7g-kidex-0.1.0/lib/libkidex.so","/nix/store/b6slf9ch7dgmh272qs1h6vysis2gfdvv-symbols-0.1.0/lib/libsymbols.so"],
)