Move wayland-services to s6.

Also:

- moved the services directory to a less hidden position.
- update swaylock config.
- use wayland-logout in killing script (it's provided by wf-shell >= 0.6.0)
This commit is contained in:
Érico Rolim 2020-11-16 16:14:45 -03:00
parent ad7d67984b
commit 57344ab495
17 changed files with 16 additions and 18 deletions

View File

@ -1,4 +1,3 @@
#!/bin/execlineb -P
foreground
{ sv up spotifyd }
sv reload spotifyd
importas HOME HOME
s6-svc -r ${HOME}/services/spotifyd

3
utils/.local/bin/s6-svscan-tty Executable file
View File

@ -0,0 +1,3 @@
#!/bin/execlineb -S0
trap -x { SIGINT { importas pid ! kill -SIGTERM $pid } } setsid s6-svscan $@
# useful for running s6-svscan on a terminal

View File

@ -5,7 +5,5 @@
# \___||_| |_| \___| \___/ |_| |_||_|
#
daemonize
color=000000
image=~/Pictures/wallpaper.png

View File

@ -1,6 +0,0 @@
#!/bin/sh
# TODO: some way of checking if this is the right runsvdir instance to kill
echo "Quitting sway"
pkill -HUP -f "^runsvdir $HOME/.local/share/wayland-services"
swaymsg exit

View File

@ -1,7 +1,3 @@
#!/bin/sh
pgrep -f "^runsvdir $HOME/.local/share/wayland-services" &&
exec echo "runsvdir has already been launched"
exec runsvdir "$HOME/.local/share/wayland-services" \
'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
#!/bin/execlineb -P
importas HOME HOME
s6-svscan ${HOME}/services

View File

@ -0,0 +1,5 @@
#!/bin/execlineb -P
importas HOME HOME
foreground
{ s6-svscanctl -t ${HOME}/services }
wayland-logout

View File

@ -1 +1,2 @@
supervise/
event/

View File

@ -0,0 +1,2 @@
#!/bin/execlineb -P
exit