~/swaydesk/components/portal

← All components

Accent color in apps

Accent color in apps

Gives the desktop’s accent color to apps that read the portal’s appearance settings, such as libadwaita and GTK 4 apps.

  • It answers only the accent color (org.freedesktop.appearance accent-color); light or dark comes from the GTK portal.
  • Open apps take a new accent color right away, without restarting.
  • It starts on demand through D-Bus, keeps running when it can’t see Sway, and exits with Sway.

Rust · source · More in the guide

Install it alone

Only this component, without the full session. First add the Swaydesk repository, as on the page Install.

Debian 13

sudo apt install swaydesk-portal

Ubuntu 26.04 · Mint 27

sudo apt install swaydesk-portal

Arch Linux

sudo pacman -Syu swaydesk-portal

Start it on plain Sway

If you already have your own ~/.config/xdg-desktop-portal/sway-portals.conf, add only org.freedesktop.impl.portal.Settings=swaydesktop;gtk to its [preferred] section. Otherwise, copy the file swaydesk-portal ships (the copy never replaces a file you have), then log in again:

mkdir -p ~/.config/xdg-desktop-portal
cp --update=none /usr/share/swaydesk/xdg-desktop-portal/sway-portals.conf ~/.config/xdg-desktop-portal/

It keeps the lines of the sway package’s own file and adds the accent one. It needs xdg-desktop-portal-gtk and xdg-desktop-portal-wlr, and XDG_CURRENT_DESKTOP=sway in the systemd user environment, which sway’s own 50-systemd-user.conf imports. In the Swaydesk session this is already in place.

Shortcuts

On its own, through D-Bus

Those of the Swaydesk profile, the default. The other profiles are in Shortcuts.