From 256c414a9b26ca323b9901fdaa03234397f05e3d Mon Sep 17 00:00:00 2001 From: Ribbon Date: Mon, 22 Jun 2026 03:42:50 -0300 Subject: [PATCH 1/4] Small changes to ion and bash config --- recipes/core/ion/initrc | 5 +++++ recipes/core/ion/recipe.toml | 8 +++++++- recipes/terminal/bash/etc/skel/.bashrc | 4 ++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 recipes/core/ion/initrc 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 From 958fd719c66fac9db743eebc91a31079dd07da3e Mon Sep 17 00:00:00 2001 From: Ribbon Date: Mon, 22 Jun 2026 03:49:58 -0300 Subject: [PATCH 2/4] Add alias to bash config --- recipes/terminal/bash/etc/skel/.bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/terminal/bash/etc/skel/.bashrc b/recipes/terminal/bash/etc/skel/.bashrc index 37de902ba..bffa2bfe3 100644 --- a/recipes/terminal/bash/etc/skel/.bashrc +++ b/recipes/terminal/bash/etc/skel/.bashrc @@ -75,6 +75,7 @@ fi alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' +#alias cl='clear' # optional alias for the "clear" command # TODO # Add an "alert" alias for long running commands. Use like so: @@ -100,4 +101,4 @@ 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 +export ORBITAL_DISPLAY=/scheme/orbital \ No newline at end of file From 39301c21bf33cd54bd0308e2f9821f288d83a795 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Mon, 22 Jun 2026 05:00:38 -0300 Subject: [PATCH 3/4] Apply 2 suggestion(s) to 2 file(s) Co-authored-by: Wildan Mubarok --- recipes/core/ion/initrc | 3 ++- recipes/core/ion/recipe.toml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes/core/ion/initrc b/recipes/core/ion/initrc index ff6eb7d85..4e4a51f92 100644 --- a/recipes/core/ion/initrc +++ b/recipes/core/ion/initrc @@ -1,5 +1,6 @@ # 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 +export DISPLAY=$or($DISPLAY "/scheme/orbital/99.0") +export ORBITAL_DISPLAY=$or($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 ad62bc089..56b931d2d 100644 --- a/recipes/core/ion/recipe.toml +++ b/recipes/core/ion/recipe.toml @@ -6,6 +6,6 @@ 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" +mkdir -pv "${COOKBOOK_STAGE}/etc/skel/.config/ion" +cp -rv "${COOKBOOK_RECIPE}"/config "${COOKBOOK_STAGE}/etc/skel/.config/ion" """ From 0ff32cb64e5bcfb5390f41e9c4b2f23a9ccd4f0b Mon Sep 17 00:00:00 2001 From: Ribbon Date: Mon, 22 Jun 2026 05:02:19 -0300 Subject: [PATCH 4/4] Move ion config file --- recipes/core/ion/{ => config}/initrc | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename recipes/core/ion/{ => config}/initrc (100%) diff --git a/recipes/core/ion/initrc b/recipes/core/ion/config/initrc similarity index 100% rename from recipes/core/ion/initrc rename to recipes/core/ion/config/initrc