~/swaydesk/components/desktop-config

← All components

Theme and settings from the terminal

Theme and settings from the terminal

Theme and settings from the terminal

Sets the GTK theme, the icons and the accent color from the terminal (swaydesk-theme), and writes the files Sway, the bar and the apps read from ~/.config/swaydesk/config.toml: run swaydesk-desktop-config apply after editing it by hand.

  • swaydesk-theme list, current, families and colors show the installed themes, the one in use and the Papirus folder colors.
  • swaydesk-theme set or pick (family, light or dark, color) switches the theme, with optional --accent, --folders and --icons.
  • swaydesk-theme icons and cursor change only the icon theme or the cursor size (16 to 96).
  • swaydesk-theme accent-auto applies the wallpaper’s nearest Papirus color; --print only names it.
  • accent_auto is on when set to true, or when it’s absent and there’s a wallpaper file.
  • generate and apply also write the bar’s config without turned-off modules, and without updates when update_notifier = false.
  • swaydesk-desktop-config keys sets up the shortcuts of the profile named in shortcuts.
  • get, enabled and css give your own scripts a config value, a component’s on/off state or the accent colors.
  • An empty file_manager takes the first installed of nemo, thunar, nautilus and dolphin, else thunar.
  • Sway’s tabs (tabbed and stacked groups) are taller, with the title centred and an outline, in three accent levels: the focused tab in the accent, the visible tab of an unfocused group in a darker shade (lighter with a light theme), and the others in grey. On plain Sway, the opt-in 50-swaydesk-theme-tool.conf brings the same look.
  • The files it writes start with a Generated by sway-desktop-config: … line; a file without it is yours, and is left alone.
  • cursor_theme in config.toml picks the cursor theme, and swaydesk-desktop-config apply applies it at once (Sway, GTK, gsettings); without the key, the automatic one stays: Bibata on Debian and Ubuntu, Capitaine on Arch.

Without editing by hand: the Desktop, Region, Power and lock and Default apps panels of Settings write the same config.toml keys, and keep your comments.

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-theme-tool

Ubuntu 26.04 · Mint 27

sudo apt install swaydesk-theme-tool

Arch Linux

sudo pacman -Syu swaydesk-theme-tool papirus-icon-theme dconf gnome-themes-extra

pacman doesn't install optional dependencies, so the line already has the ones apt installs by itself.

Start it on plain Sway

Nothing to add to the Sway config: they’re command-line tools. man swaydesk-theme and man swaydesk-desktop-config list their options.

Shortcuts

In the terminal

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