diff options
Diffstat (limited to '')
| -rwxr-xr-x | .config/rc/init.d/xdg-desktop-portal | 14 | ||||
| -rwxr-xr-x | .config/rc/init.d/xdg-desktop-portal-darkman | 13 | ||||
| -rwxr-xr-x | .config/rc/init.d/xdg-desktop-portal-gtk | 11 | ||||
| -rwxr-xr-x | .config/rc/init.d/xdg-desktop-portal-wlr | 11 |
4 files changed, 49 insertions, 0 deletions
diff --git a/.config/rc/init.d/xdg-desktop-portal b/.config/rc/init.d/xdg-desktop-portal new file mode 100755 index 0000000..aeacb00 --- /dev/null +++ b/.config/rc/init.d/xdg-desktop-portal @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" + +supervisor=supervise-daemon +command="/usr/libexec/xdg-desktop-portal" +command_args="--replace $command_args" +error_logger="logger -t '${RC_SVCNAME}' -p daemon.error" + +depend() { + need dbus \ + xdg-desktop-portal-gtk \ + xdg-desktop-portal-wlr \ + xdg-desktop-portal-darkman +} diff --git a/.config/rc/init.d/xdg-desktop-portal-darkman b/.config/rc/init.d/xdg-desktop-portal-darkman new file mode 100755 index 0000000..8067c95 --- /dev/null +++ b/.config/rc/init.d/xdg-desktop-portal-darkman @@ -0,0 +1,13 @@ +#!/sbin/openrc-run + +name="darkman" +description="Control dark mode and light mode transitions" + +supervisor=supervise-daemon +command="/usr/bin/darkman" +command_args="run" +error_logger="logger -t '${RC_SVCNAME}' -p daemon.error" + +depend() { + need dbus +} diff --git a/.config/rc/init.d/xdg-desktop-portal-gtk b/.config/rc/init.d/xdg-desktop-portal-gtk new file mode 100755 index 0000000..91bcae1 --- /dev/null +++ b/.config/rc/init.d/xdg-desktop-portal-gtk @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" + +supervisor=supervise-daemon +command="/usr/libexec/xdg-desktop-portal-gtk" +command_args="--replace" +error_logger="logger -t '${RC_SVCNAME}' -p daemon.error" + +depend() { + need dbus +} diff --git a/.config/rc/init.d/xdg-desktop-portal-wlr b/.config/rc/init.d/xdg-desktop-portal-wlr new file mode 100755 index 0000000..c041a05 --- /dev/null +++ b/.config/rc/init.d/xdg-desktop-portal-wlr @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" + +supervisor=supervise-daemon +command="/usr/libexec/xdg-desktop-portal-wlr" +command_args="--replace" +error_logger="logger -t '${RC_SVCNAME}' -p daemon.error" + +depend() { + need dbus +} |