Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: Reload the settings when they are applied from the interactive shell like gnome-terminal #439

Open
davidhedlund opened this issue Jul 18, 2023 · 0 comments

Comments

@davidhedlund
Copy link

davidhedlund commented Jul 18, 2023

Common settings to prevent digital eye-straining:

Expected behaviour

gnome-terminal (reference)

gnome-terminal does not have to be closed, and then started again for the settings to be used. gnome-terminal loads the settings directly. Example for both gsettings, or dconf:

Before:
image

After:

profile_key=$(gsettings get org.gnome.Terminal.ProfilesList default | sed -e "s/'//g" | tr -d "\n")
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$profile_key/ use-theme-colors true

# Same result with dconf
dconf write /org/gnome/terminal/legacy/profiles:/:$profile_key/use-theme-colors true

image

mate-terminal expected behaviour

Settings cannot be reloaded from the interactive shell

In Trisquel 11, these settings keep the default font and increase its size from 10 to 12, and disable the default colors and switch to black to light yellow:

# Font: Increase font size to prevent eye straining
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ use-system-font true
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ font 'Monospace Regular 12'

# Background color: Use light-yellow background which is ideal to prevent eye straining
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ use-theme-colors false

The font-size and the background color is manipulated on the screenshot to show the expected behaviour (for example, the --reload option does not exist but is a proposed first solution if it's very difficult to make the settings take effect immediately like in gnome-terminal):
image

Themes can be reloaded from the interactive shell

Default mate-terminal in Ubuntu MATE 22.04

Screenshot at 2023-07-27 21-37-59

Themes can be loaded directly from the interactive shell, so mate-terminal does not have to be restarted:

dconf write /org/mate/desktop/interface/gtk-theme "'Yaru-MATE-dark'"
dconf write /org/mate/desktop/interface/gtk-color-scheme "'tooltip_fg_color:#f7f7f7\ntooltip_bg_color:#353535'"
dconf write /org/mate/marco/general/theme "'Yaru-dark'"
dconf write /org/mate/pluma/color-scheme "'Yaru-dark'"
dconf write /org/mate/desktop/interface/icon-theme "'Yaru-MATE-dark'"
dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
dconf write /net/launchpad/plank/docks/dock1/theme "'Yaru-dark'"

Screenshot at 2023-07-27 21-38-25

Actual behaviour

The GUI update the settings interactively

Edit -> Profile Preferences

  • Font configuration: General [tab] -> Deselect "Use the system fixed with font". Increase the font size from 10 to 12 (see screenshot)
  • Background color: Color [tab] -> "Use colors from system theme" (uncheck) (see screenshot)

Example in Trisquel 11:
image

The interactive shell does not update the settings interactively

The corresponding commands for the GUI settings from the above section:

# Font: Increase font size to prevent eye straining
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ use-system-font true
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ font 'Monospace Regular 12'

# Background color: Use light-yellow background which is ideal to prevent eye straining
gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ use-theme-colors false

However, the problem is that the settings are not applied immediately.

Example in Trisquel 11:

image

Steps to reproduce the behaviour

Steps added above to avoid sectional confusion, as examples to both the GUI and the interactive shell, are provided above.

MATE general version

1.26.0

Package version

1.26.0

Linux Distribution

Ubuntu MATE 22.04, Trisquel 11

Link to bugreport of your Distribution (requirement)

Not applicable as this is a feature request.

@davidhedlund davidhedlund changed the title Request: Option to reload settings [Feature request]: Option to reload settings Jul 18, 2023
@davidhedlund davidhedlund changed the title [Feature request]: Option to reload settings [Feature request]: Option to reload settings from the interactive shell Jul 19, 2023
@davidhedlund davidhedlund changed the title [Feature request]: Option to reload settings from the interactive shell [Feature request]: Command line option to reload the settings Jul 19, 2023
@davidhedlund davidhedlund changed the title [Feature request]: Command line option to reload the settings [Feature request]: Add a command line option that reloads the settings Jul 19, 2023
@davidhedlund davidhedlund changed the title [Feature request]: Add a command line option that reloads the settings [Feature request]: Reload the settings when they are applied from the interactive shell like gnome-terminal Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant