EndeavourOS terminal emulators

After installing the system with Gnome, I was surprised to find about four terminal emulators installed.

Since I want to use this environment and Sway, always in Wayland, I installed the foot emulator and removed the others.

My surprise comes from seeing that some eos-welcome scripts require specific emulators, among which foot does not appear.

My question is twofold:

    • Is it easy to add foot to that list of terminals?
    • If not, which of them work in pure Wayland without Xwayland?

I believe @manuel may be able to respond to this.

1 Like

I just tried it and it seems to work in my very simple test.

But please test it e.g. by using environment variable EOS_YAD_TERMINAL:

export EOS_YAD_TERMINAL=foot

and report here about the result.

If it seems to work, I can add it to the list of supported terminals.

This is the result. For now, I am keeping gnome-terminal to avoid problems.

That’s just a warning, it may still work absolutely fine. It’s worth testing and if so, foot can be added to the supported list of terminal emulators.

The output seems strange. Did foot terminal work?
How did you use my tip above?
What shell are you using? Bash or something else?

Just a few checks:

  • Have you updated your system?
  • Can you show the contents of /etc/eos-script-lib-yad.conf?

:slightly_smiling_face: It’s been resolved thanks to your questions, which I will answer so that everything is clear.

foot works perfectly

I typed it into the terminal and tried again, but it didn’t seem to work, probably because I didn’t do something.

I use bash. I want to learn how to use scripts properly and I don’t want to get confused with others.

Yes, my system is updated, I come from pure Arch and I have a habit of updating at least once a week or before installing or removing something.

Of course, when I looked at it, I found the solution by uncommenting the line EOS_YAD_TERMINAL and replacing the terminal. por foot

/etc/eos-script-lib-yad.conf

Configuration file for eos-script-lib-yad.

To enable any setting below, simply remove the starting ‘#’ character

on the appropriate line.

Terminal program to be used by certain EndeavourOS packages

like ‘welcome’ and ‘eos-update-notifier’.

Many popular terminals are supported. See a list of terminals known to be compatible

in file /usr/share/endeavouros/scripts/eos-script-lib-yad, function eos_yad_terminal().

If you have any of the listed terminals installed, EOS_YAD_TERMINAL need not be enabled.

Then the programs will use the first available program in the list.

Note: other than the listed terminals may or may not be compatible.

EOS_YAD_TERMINAL=“foot”

EOS_ROOTER configures the command for acquiring elevated privileges

when running commands in terminal.

Supported values:

“su”

“sudo”

“pkexec”

“su-c_wrapper”

Still supported values, but deprecated and will be removed in the future:

“su -c”

“pkexec bash -c”

“sudo bash -c”

“/usr/bin/su -c”

“/usr/bin/pkexec bash -c”

“/usr/bin/sudo bash -c”

export EOS_ROOTER=“su”

EOS_WELCOME_CONNECTION_WARNING specifies whether you want to allow the warning window

in the Welcome app about not being connected to the internet.

Supported values are: “yes” or “no”.

EOS_WELCOME_CONNECTION_WARNING=yes

EOS_CONNECTION_CHECKER selects the way how an internet connection availability is checked.

Supported values are: “ping” or “curl”.

Note: “ping” may have problems if you are behind a proxy, thus “curl” is the default.

EOS_CONNECTION_CHECKER=“curl”

EOS_WIFIDEV_CHECK specifies if we want to make some ad hoc checks that we have the right

wifi card drivers installed. The checks are made in the Welcome app when using

the button “Detect system issues”.

Supported values are “yes” or “no”.

EOS_WIFIDEV_CHECK=“yes”

TERMINAL_AT_START, if set, causes the Welcome app to start a terminal always when

the Welcome app is started. The value should be an already installed terminal on your system.

Note that you can include any terminal specific options, for example:

TERMINAL_AT_START=“xfce4-terminal --working-directory=$HOME/Downloads --geometry=+50+50”

TERMINAL_AT_START=“xfce4-terminal”

EOS_KEEP_PKGS lists the names of packages that should not be removed when button

“Detect system issues” of the Welcome app is clicked.

For example:

EOS_KEEP_PKGS=“intel-ucode xf86-video-intel”

EOS_KEEP_PKGS=“”

EOS_AUR_HELPER contains the AUR helper program name.

Supported values are yay and paru, but other helpers may work as well.

The program must support options -Qua and -Sua.

For the Welcome app you can also set another AUR helper with

variable EOS_AUR_HELPER_OTHER.

Both apps must support the options mentioned above.

EOS_AUR_HELPER=“yay”
EOS_AUR_HELPER_OTHER=“” # for example: “paru”

EOS_WELCOME_PACDIFFER is an array of diff programs that can be used by pacdiff

(see man pacdiff) in Welcome.

Supported values are: kdiff3, kompare, diffuse, meld, code, diff, vim.

Other diff programs may work but are not tested (and may need additional support

by Welcome).

The array is written in preference order as only one of them is used.

EOS_WELCOME_PACDIFFERS=(meld kdiff3 kompare diffuse diff “vim -d”)

EOS_PACDIFF_WARNING specifies whether a warning about the power of eos-pacdiff

will be shown or not when starting it.

Supported values: “yes” or “no”.

Default: “yes”.

Note: ‘code’ is not supported.

EOS_PACDIFF_WARNING=yes

EOS_UPDATE_PACDIFFER contains the command to run in the end of ‘eos-update’.

If it is not empty, the string is used as-is.

Example: EOS_UPDATE_PACDIFFER=“eos-pacdiff --quiet”

Default is empty because incorrect usage of pacdiff can break the system in various ways.

EOS_UPDATE_PACDIFFER=“”

EOS_SUDO_EDITORS is an array of editor names that are suitable for

editing files with root permissions.

Currently they are used only in eos-update-notifier-configure.

Note that non-GUI editors (e.g. nano, emacs) are preferred for security reasons.

Currently editors known to work are:

- Non-GUI (preferred):

- nano

- emacs

- vim

- GUI (not preferred):

- leadpad

- xed

- geany

- mousepad (only with dbus-launch)

Other editors may work as well, but have not been tested.

The array is written in preference order as only one of them is used.

EOS_SUDO_EDITORS=(rnano nano vim “emacs -nw”)

EOS_WALLPAPER_FETCHER selects the program to be used for downloading

certain additional wallpapers to EndeavourOS. These wallpapers (currently)

include the legacy wallpapers, and wallpapers created by the

EndeavourOS community.

Supported values: “git” or “curl”. “git” is the default.

Of these, “curl” may be more suitable if bandwidth is limited.

EOS_WALLPAPER_FETCHER=“git”

EOS_WELCOME_HAS_SEE_YOU_LATER_BUTTON determines whether to show

the “See you later” button on the Welcome window.

Supported values: “yes” or “no”

Default: “no”

EOS_WELCOME_HAS_SEE_YOU_LATER_BUTTON=no

EOS_FILESERVER_SITE specifies the site where certain documents and

small files will be fetched during the install phase, and when using the

installed system.

Supported values:

gitlab (default)

github

EOS_FILESERVER_SITE=gitlab

SyncAfterUpdate specifies whether to call ‘sync’ after updating or not.

Possible values: “yes” or “no”.

Default: “no”.

Note: this setting was moved here from eos-update-notifier.conf at 2022-Apr-28.

SyncAfterUpdate=no

EOS_UPDATE_ARCH_KEYRING_FIRST, if set to “yes”, will try to update package

archlinux-keyring before updating other packages.

This may help with some PGP signature issues.

Note: this setting is deprecated and no more used in any app.

Supported values:

no (default)

yes

EOS_UPDATE_ARCH_KEYRING_FIRST=no

EOS_ICON_SETS_PREFERENCE array specifies the order of preference of the icon sets

you want to use in certain EndeavourOS apps.

The icon sets are folder names directly under /usr/share/icons.

The icon set names can be listed without path.

Default: all folders names found under /usr/share/icons

(note: not all of them contain icons…)

EOS_ICON_SETS_PREFERENCE=(

Add your preferred icon sets here.

For example:

Qogir Adwaita hicolor

This is the default list of icon sets (note: in alphabetical order):

/usr/share/icons/*
)

EOS_PREFERRED_BROWSERS is an ordered list of web browser apps.

EndeavourOS apps that use a web browser will look for this list first

when choosing a browser to use, unless there’s a compelling reason to

use something else.

Note that user can also export variables

_WELCOME_BROWSER

_WELCOME_BROWSER_OPTIONS

See file /usr/share/endeavouros/scripts/eos-scriptlib-yad and

function eos_select_browser() for more details.

User can add own favorites anywhere into this list, and/or change the order.

The first matching app (the app must be installed!) in the list will be used.

EOS_PREFERRED_BROWSERS=( # search order for browsers
xdg-open
exo-open
kde-open
firefox
chromium
vivaldi-stable
opera
)

RATE_MIRRORS_MAX_DELAY_ARCH is the max acceptable delay in seconds

since the last time a mirror has been synced. It is used only when ranking

the Arch mirrors with the ‘rate-mirrors’ program in Welcome.

Usually the range of reasonable values is somewhere between 60 and 3600.

The smaller the value, the less mirrors will match.

The bigger the value, the more mirrors will match.

If you want recently updated mirrors, use a small value (but not too small).

If no mirrors match, increase the value.

(Note that rate-mirrors defaults to 86400 seconds.)

RATE_MIRRORS_MAX_DELAY_ARCH=3600 # seconds

WELCOME_RATE_MIRRORS_COMMAND lets you specify all options for the rate-mirrors command (to be used for ranking Arch mirrors).

Tip: consider using option ‘–protocol https’ as well.

WELCOME_RATE_MIRRORS_COMMAND=“rate-mirrors arch --max-delay=$RATE_MIRRORS_MAX_DELAY_ARCH | sudo tee /etc/pacman.d/mirrorlist”

WELCOME_RAMI_OPTIONS provides all options for the rami command in Welcome.

The value can be set also by exporting this variable.

if [ -z “${WELCOME_RAMI_OPTIONS:-}” ] ; then
WELCOME_RAMI_OPTIONS=“–save”
WELCOME_RAMI_OPTIONS+=" --timeout-rank 10" # use bigger value on slow connection, smaller value on fast connection
WELCOME_RAMI_OPTIONS+=" --ranking-data --continent -cDE,US" # reasonable defaults?
WELCOME_RAMI_OPTIONS+=" -i acadielinux,k0.ae,lyrahosting,jtremesay,ungleich,sox.rs,urbanwave" # too old!
fi

EOS_LOCATION_PROVIDER_URL contains an URL for retrieving location info.

It is used by the ‘show-location-info’ app.

Alternatives known to work:

https://ipinfo.io (default, all features work)

https://ipapi.co (some features do not work)

EOS_LOCATION_PROVIDER_URL=“https://ipinfo.io”

EOS_REBOOT_RECOMMENDING specifies if the reboot recommendation notification

will be shown after updating certain system packages.

Supported values: “yes” (=default) or “no”.

EOS_REBOOT_RECOMMENDING=yes

EOS_YAD_MISSING_NOTIFICATION specifies whether some EndeavourOS apps show a notification

when ‘yad’ might be needed but is not installed.

EOS_YAD_MISSING_NOTIFICATION=yes

I’m not closing the thread because I’m not sure whether it’s appropriate or not, but for me this is settled.

Thank you very much for your help. With Coass, I am sure that one day I will be able to contribute something to this community.

OK, thanks.
Now I can add foot as one more supported terminal in the list.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.