sway: Usar runsvdir para correr servicios
This commit is contained in:
parent
cd8e5681f6
commit
e57889aeed
9 changed files with 14 additions and 5 deletions
1
.config/sv/.gitignore
vendored
Normal file
1
.config/sv/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*/supervise
|
2
.config/sv/gnome-keyring-daemon/run
Executable file
2
.config/sv/gnome-keyring-daemon/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec gnome-keyring-daemon --foreground --components=pkcs11,secrets,ssh
|
2
.config/sv/goimapnotify/run
Executable file
2
.config/sv/goimapnotify/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec goimapnotify -conf ~/.config/imapnotify/config.json
|
2
.config/sv/syncthing/run
Executable file
2
.config/sv/syncthing/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec syncthing -no-browser
|
|
@ -252,11 +252,7 @@ exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DE
|
|||
exec pipewire
|
||||
exec "foot --server"
|
||||
exec "wlsunset -l -34.61315 -L -58.37723"
|
||||
exec "pgrep -x syncthing >/dev/null || syncthing -no-browser"
|
||||
exec swaync
|
||||
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"
|
||||
|
||||
|
|
1
.local/share/service/gnome-keyring-daemon
Symbolic link
1
.local/share/service/gnome-keyring-daemon
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../.config/sv/gnome-keyring-daemon
|
1
.local/share/service/goimapnotify
Symbolic link
1
.local/share/service/goimapnotify
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../.config/sv/goimapnotify
|
1
.local/share/service/syncthing
Symbolic link
1
.local/share/service/syncthing
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../.config/sv/syncthing
|
|
@ -7,6 +7,9 @@ if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
|
|||
chmod 700 "$XDG_RUNTIME_DIR"
|
||||
mkdir -p "$HOME/.local/share/sway"
|
||||
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 \
|
||||
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
||||
XDG_CURRENT_DESKTOP=sway \
|
||||
|
|
Loading…
Reference in a new issue