Skip to content

fubuki4649/asahi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

朝日 asahi

asahi is a dark mode daemon using DBus Portals

GPLv2

DEPENDENCIES

  • xdg-desktop-portal
  • dbus-send (for asahictl)

INSTALLATION (Manual)

  1. Copy the binary to /usr/lib/xdg-desktop-portal-asahi (or wherever else portals are stored on the system)

  2. Copy config files

    • configs/asahi.portal to /usr/share/xdg-desktop-portal/portals/asahi.portal
    • configs/org.freedesktop.impl.portal.desktop.asahi.service to /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.asahi.service
    • configs/xdg-desktop-portal-asahi.service to /usr/lib/systemd/user/xdg-desktop-portal-asahi.service
  3. Append the following line to the end of the active *-portals.conf file

    org.freedesktop.impl.portal.Settings=asahi

For help identifying the active config file, read the XDG Desktop Portal docs here

Alternatively, use scripts/set-portal-config.sh to automatically perform this step.

  1. Finally, restart xdg-desktop-portal

    systemctl --user restart xdg-desktop-portal

See the Arch Wiki for more information on configuring the XDG Desktop Portal

TODO

  • Provide a makefile
  • Find a firefox workaround

About

XDG portal/geoclue based dark mode utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published