Portal:OpenSUSEway/Configuration
Sway configuration
openSUSEway customizes standard Sway config and stores it here by default:
/etc/sway/config /etc/sway/config.d/50-openSUSE.conf
If there is a need to slightly modify and add some options, the best way is to create directories in your local .config
directory and add your file there:
mkdir -p ~/.config/sway/config.d/ $EDITOR ~/.config/sway/config.d/my_config_file
Add your changes there, for example:
output eDP-1 scale 1
These files are automatically included by the sway configuration, and take precedence over the default Sway and openSUSEway ones. /etc/sway/config
should contain the line:
include ~/.config/sway/config.d/*
if it doesn't, just add it.
After config reload, changes should be applied.
Environment
openSUSEway installs Environment variables to the /etc/sway/env
to cover both tty
login and systemd
based login managers:
- sway-run.sh script installed to the
/usr/bin/sway-run.sh
and it is wrapper script to import environment - desktop file installed to
/usr/share/wayland-sessions/sway.desktop
and it points to the. Original file moved to /usr/share/wayland-sessions/sway.desktop.orig - service file
/usr/lib/systemd/system/sway.service
to run sway as service and it also has section to import environment from the file
For example there is QT_QPA_PLATFORMTHEME=qt5ct
that controls QT theme.
Style
openSUSEway forces GTK and QT themes.
GTK is forced in Sway config file 50-openSUSE.conf with gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
.
QT theme is controlled by settings in /etc/xdg/qt5ct/qt5ct.conf
and forcing QT_QPA_PLATFORMTHEME=qt5ct
environment. qt5ct.conf
got copied to the local user config and would have preference if user reconfigures the theme later.