rofi 2.1.0
Script
Collaboration diagram for Script:

Functions

Mode * script_mode_parse_setup (const char *str)
gboolean script_mode_is_valid (const char *token)
void script_mode_gather_user_scripts (void)
void script_mode_cleanup (void)
void script_user_list (gboolean is_term)

Detailed Description

Function Documentation

◆ script_mode_cleanup()

void script_mode_cleanup ( void )

Cleanup memory allocated by script_mode_gather_user_scripts

Definition at line 628 of file script.c.

References num_scripts, script_mode_cleanup(), and user_scripts.

Referenced by cleanup(), and script_mode_cleanup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ script_mode_gather_user_scripts()

void script_mode_gather_user_scripts ( void )

Gather the users scripts from ~/.config/rofi/scripts/

Definition at line 635 of file script.c.

References ScriptUser::name, num_scripts, ScriptUser::path, script_mode_gather_user_scripts(), and user_scripts.

Referenced by rofi_collect_modes(), and script_mode_gather_user_scripts().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ script_mode_is_valid()

gboolean script_mode_is_valid ( const char * token)
Parameters
tokenThe modes str to check

Check if token could be a valid script modes.

Returns
true when valid.

Definition at line 726 of file script.c.

References script_mode_has_user_script(), and script_mode_is_valid().

Referenced by add_mode(), and script_mode_is_valid().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ script_mode_parse_setup()

Mode * script_mode_parse_setup ( const char * str)

◆ script_user_list()

void script_user_list ( gboolean is_term)
Parameters
is_termif printed to terminal

List the user scripts found.

Definition at line 733 of file script.c.

References color_bold, color_reset, num_scripts, script_user_list(), and user_scripts.

Referenced by help(), and script_user_list().

Here is the call graph for this function:
Here is the caller graph for this function: