Skip to content

Doesn't switch theme on Linux #56

@mks-h

Description

@mks-h

Hi. Both with and without this plugin, Neovim starts with the correct theme, but doesn't react to system theme changes like on the screen recordings in README.

I've installed this plugin using MiniDeps:

MiniDeps.add {
	source = "f-person/auto-dark-mode.nvim",
}

I've tried running the dbus-send query command from the source directly in the terminal, and it seems to work:

# Dark theme
$ dbus-send --session --print-reply=literal --reply-timeout=1000 --dest=org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read string:org.freedesktop.appearance string:color-scheme
   variant       variant          uint32 1
# Light theme
$ dbus-send --session --print-reply=literal --reply-timeout=1000 --dest=org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read string:org.freedesktop.appearance string:color-scheme
   variant       variant          uint32 0

Software Information:

  • Neovim Version: NVIM v0.11.1
  • OS Name: Fedora Linux 42 (Workstation Edition)
  • GNOME Version: 48
  • Windowing System: Wayland

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions