sway: Usar runsvdir para correr servicios

This commit is contained in:
Cat /dev/Nulo 2022-10-15 12:48:38 -03:00
parent cd8e5681f6
commit e57889aeed
9 changed files with 14 additions and 5 deletions

1
.config/sv/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*/supervise

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec gnome-keyring-daemon --foreground --components=pkcs11,secrets,ssh

2
.config/sv/goimapnotify/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec goimapnotify -conf ~/.config/imapnotify/config.json

2
.config/sv/syncthing/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec syncthing -no-browser

View file

@ -252,11 +252,7 @@ exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DE
exec pipewire exec pipewire
exec "foot --server" exec "foot --server"
exec "wlsunset -l -34.61315 -L -58.37723" exec "wlsunset -l -34.61315 -L -58.37723"
exec "pgrep -x syncthing >/dev/null || syncthing -no-browser"
exec swaync exec swaync
exec kanshi exec kanshi
exec "mbsync -a"
exec "mpd"
exec "pgrep -x goimapnotify >/dev/null || goimapnotify -conf ~/.config/imapnotify/config.json"
exec "gnome-keyring-daemon --foreground --components=pkcs11,secrets,ssh"

View file

@ -0,0 +1 @@
../../../.config/sv/gnome-keyring-daemon

View file

@ -0,0 +1 @@
../../../.config/sv/goimapnotify

View file

@ -0,0 +1 @@
../../../.config/sv/syncthing

View file

@ -7,6 +7,9 @@ if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
chmod 700 "$XDG_RUNTIME_DIR" chmod 700 "$XDG_RUNTIME_DIR"
mkdir -p "$HOME/.local/share/sway" mkdir -p "$HOME/.local/share/sway"
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log" log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
pgrep -U "$(id -u)" runsv >/dev/null || (nohup runsvdir ~/.local/share/service >/dev/null &; disown)
exec env \ exec env \
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \ XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
XDG_CURRENT_DESKTOP=sway \ XDG_CURRENT_DESKTOP=sway \