diff --git a/recipes/core/ion/initrc b/recipes/core/ion/initrc new file mode 100644 index 000000000..ff6eb7d85 --- /dev/null +++ b/recipes/core/ion/initrc @@ -0,0 +1,5 @@ +# set orbital screen resolution to avoid x11 or wayland fallback for applications in a orbital session and workaround shell quirks +export DISPLAY=/scheme/orbital/99.0 +export ORBITAL_DISPLAY=/scheme/orbital +# optional alias for the "clear" command +#alias cl = "clear" diff --git a/recipes/core/ion/recipe.toml b/recipes/core/ion/recipe.toml index 80c82e33e..ad62bc089 100644 --- a/recipes/core/ion/recipe.toml +++ b/recipes/core/ion/recipe.toml @@ -2,4 +2,10 @@ git = "https://gitlab.redox-os.org/redox-os/ion.git" [build] -template = "cargo" +template = "custom" +script = """ +DYNAMIC_INIT +cookbook_cargo +mkdir -pv "${COOKBOOK_STAGE}/home/user/.config/ion" +cp -rv "${COOKBOOK_RECIPE}"/initrc "${COOKBOOK_STAGE}/home/user/.config/ion" +""" diff --git a/recipes/terminal/bash/etc/skel/.bashrc b/recipes/terminal/bash/etc/skel/.bashrc index 437837411..37de902ba 100644 --- a/recipes/terminal/bash/etc/skel/.bashrc +++ b/recipes/terminal/bash/etc/skel/.bashrc @@ -97,3 +97,7 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi + +# set orbital screen resolution to workaround shell quirks and avoid x11 or wayland fallback for applications in a orbital session +export DISPLAY=/scheme/orbital/99.0 +export ORBITAL_DISPLAY=/scheme/orbital