diff options
Diffstat (limited to '.config/rc/init.d')
| -rwxr-xr-x | .config/rc/init.d/secretsd | 18 | ||||
| -rwxr-xr-x | .config/rc/init.d/syncthing | 7 | ||||
| -rwxr-xr-x | .config/rc/init.d/xdg-desktop-portal | 13 |
3 files changed, 32 insertions, 6 deletions
diff --git a/.config/rc/init.d/secretsd b/.config/rc/init.d/secretsd new file mode 100755 index 0000000..8c639a9 --- /dev/null +++ b/.config/rc/init.d/secretsd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" +SECRETSD_HOME=${XDG_DATA_HOME}/secretsd + +description="Lightweight Wayland notification daemon" + +command="/usr/bin/secretsd" +command_args="--no-syslog --db-path=${SECRETSD_HOME}/db --key-location=file:${SECRETSD_HOME}/key" +supervisor=supervise-daemon +error_logger="logger -t '${RC_SVCNAME}' -p daemon.error" + +depend() { + need dbus +} + +start_pre() { + checkpath -q -d ${SECRETSD_HOME} +} diff --git a/.config/rc/init.d/syncthing b/.config/rc/init.d/syncthing index 083b092..8a790f8 100755 --- a/.config/rc/init.d/syncthing +++ b/.config/rc/init.d/syncthing @@ -12,3 +12,10 @@ browser() { syncthing browser eend $? "Opened syncthing gui in the browser" } + +start_post() { + pkill -RTMIN+3 waybar +} +stop_post() { + pkill -RTMIN+3 waybar +} diff --git a/.config/rc/init.d/xdg-desktop-portal b/.config/rc/init.d/xdg-desktop-portal index aeacb00..1852935 100755 --- a/.config/rc/init.d/xdg-desktop-portal +++ b/.config/rc/init.d/xdg-desktop-portal @@ -1,10 +1,6 @@ #!/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" +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later depend() { need dbus \ @@ -12,3 +8,8 @@ depend() { xdg-desktop-portal-wlr \ xdg-desktop-portal-darkman } + +DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" +supervisor=supervise-daemon +command="/usr/libexec/xdg-desktop-portal" +error_logger="logger -t '${RC_SVCNAME}' -p daemon.error" |