Skip to content

Scripting

Louis DeLosSantos edited this page Apr 17, 2024 · 1 revision

Scripting Way-Shell

Way-Shell allows for scripts to be ran at various hooks.

All scripts reside in $XDG_CONFIG_DIR/way-shell.

The following scripts are supported

on_theme_changed.sh - Invoked with a single argument of "light" or "dark" depending on the theme style which was just invoked. Useful for performing any other theme switching tasks like changing editor or terminal themes.

on_workspace_new.sh - Invoked with a single argument, the workspace name, when a new workspace is created. Useful when you want to perform any workspace "setup" given a particular workspace name. For instance, opening a terminal to "--working-dir {workspace}" if you organize your workspaces by workspace folders.

Clone this wiki locally