From 08989ab4fcfe586528f783a318b836d2936ac039 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 26 Oct 2024 12:07:47 +0200 Subject: [PATCH] [Doc] Clarify documentation for User Script directory. Fixes: #2043 --- doc/rofi-script.5.markdown | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/rofi-script.5.markdown b/doc/rofi-script.5.markdown index 4e1a31e0..aeeac8fd 100644 --- a/doc/rofi-script.5.markdown +++ b/doc/rofi-script.5.markdown @@ -184,11 +184,20 @@ To specify a script there are the following options: - Specify an absolute path to the script. - The script is executable and located in your $PATH -Scripts located in the following location are loaded on startup: +Scripts located in the following location are **loaded** on startup +and can be directly launched based on the filename (without extension): -- The script is in `$XDG_CONFIG_PATH/rofi/scripts/`, this is usually +- The script is in `$XDG_CONFIG_HOME/rofi/scripts/`, this is usually `~/.config/rofi/scripts/`. +If you have a script 'mymode.sh' in this folder you can open it using: + +```bash +rofi -show mymode +``` + +See `rofi -h` output for a list of detected scripts. + ## SEE ALSO rofi(1), rofi-sensible-terminal(1), dmenu(1), rofi-theme(5),