Skip to content

[BUG] Caelestia is overwriting gtk/qt5ct files and breaking dark mode on nixos #78

@anarion80

Description

@anarion80

Step 1. Before you submit

  • I have read the above instructions and am sure that this is supposed to be posted here.
  • I've successfully updated to the latest versions following the updating guide.
  • I've successfully updated the system packages to the latest.
  • I've ticked the checkboxes without reading their contents

Step 2. Version info

Version info
❯ caelestia -v
Packages: not on Arch

fatal: not a git repository: '/home/anarion/.config/.git'
Caelestia: not installed

Shell: version helper not available

Quickshell: not in PATH

Local copy of shell found:
    Last merged upstream commit: 96942d5ff38698513f0330618073dbdf2af1bd59
    Commit message: sysinfo: allow overriding OS icon (#1091)  * Allow overriding OS icon  Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>  * Support icons and live reloading  Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>  * isDefaultLogo should default to true  Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>  ---------  Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>

    Last commit: 9e4d18bbadf431b4f5777d45cc4919c0df11658d
    Commit message: Merge branch 'pull_upstream' into topbar

Step 3. Describe the issue

I am running NixOS with Caelestia and I am quite happy. Recently though my carefully prepared dark mode for all apps (GTK/QT/XWayland) stopped working. I was using home manager to set ~/.config/qt5ct/qt5ct.conf and ~/.config/qt6ct/qt6ct.conf to this:

[Appearance]
      color_scheme_path=/home/anarion/.config/qt5ct/colors/style-colors.conf
      custom_palette=true
      icon_theme=Papirus-Dark
      standard_dialogs=default
      style=Breeze
      # style=Darkly
      # style=Fusion

      [Fonts]
      fixed="Monospace,12,-1,5,50,0,0,0,0,0,Regular"
      general="Noto Sans,12,-1,5,50,0,0,0,0,0,Regular"

      [Interface]
      activate_item_on_single_click=1
      buttonbox_layout=0
      cursor_flash_time=1000
      dialog_buttons_have_icons=1
      double_click_interval=400
      gui_effects=@Invalid()
      keyboard_scheme=2
      menus_have_icons=true
      show_shortcuts_in_context_menus=true
      stylesheets=@Invalid()
      toolbutton_style=4
      underline_shortcut=1
      wheel_scroll_lines=3

      [SettingsWindow]
      geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x5P\0\0\0\0\0\0\xf\xcf\0\0\x4m\0\0\x5P\0\0\0\0\0\0\xf\xcf\0\0\x4m\0\0\0\0\x2\0\0\0\xf\0\0\0\x5P\0\0\0\0\0\0\xf\xcf\0\0\x4m)

      [Troubleshooting]
      force_raster_widgets=1
      ignored_applications=@Invalid()

it works fine after activation, the qt config files are created as symlinks to nix store. But after reboot, the files are gone, replaced by default:

[Appearance]
color_scheme_path=/home/anarion/.config/qt5ct/colors/caelestia.colors
custom_palette=true
icon_theme=Papirus-Dark
standard_dialogs=default
style=Darkly

[Fonts]
fixed="Monospace,12,-1,5,50,0,0,0,0,0"
general="Sans Serif,12,-1,5,50,0,0,0,0,0"

I figured this is caelestia overwriting the file. Unfortunately I can't get caelestia to switch light/dark for everything. Seems like only firefox works in caelestia, but everything else like Thunar, Double Commander stay with light mode.

Is there a way to somehow fix/tweak/configure this?

Logs
<!-- Put your log content here!-->

Reminder

  • I agree that it's usually impossible for others to help me without my logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions