mirror of https://github.com/ericonr/dotfiles.git
wayland: modify service setup
- sway config launches runsvdir: - has a mechanism for verifying if it's already running - doesn't have a mechanism for killing the runsvdir only when adequate
This commit is contained in:
parent
7d4d0e1ae7
commit
4c5fa61376
|
@ -286,6 +286,9 @@ bar {
|
||||||
swaybar_command waybar
|
swaybar_command waybar
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## Services directory
|
||||||
|
exec runsvdir-sway
|
||||||
|
|
||||||
## Application specific settings
|
## Application specific settings
|
||||||
# PDF
|
# PDF
|
||||||
assign [app_id="okular"] $wsp
|
assign [app_id="okular"] $wsp
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# TODO: some way of checking if this is the right runsvdir instance to kill
|
||||||
|
|
||||||
pkill -HUP -f "^runsvdir /home/ericonr/.local/share/wayland-services"
|
echo "Quitting sway"
|
||||||
|
pkill -HUP -f "^runsvdir $HOME/.local/share/wayland-services"
|
||||||
|
swaymsg exit
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/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: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
|
|
@ -9,6 +9,7 @@ if test -z "${XDG_RUNTIME_DIR}"; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
|
||||||
# start the compositor itself
|
# start the compositor itself
|
||||||
exec dbus-run-session runsvdir "$HOME/.local/share/wayland-services" \
|
WLR_DRM_DEVICES=/dev/dri/card0 exec dbus-run-session sway --my-next-gpu-wont-be-nvidia
|
||||||
'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
swaysv check sway >/dev/null || exit 1
|
|
||||||
exec mako 2>&1
|
exec mako 2>&1
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
swaysv check sway || exit 1
|
|
||||||
exec redshift 2>&1
|
exec redshift 2>&1
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SWAYSOCK=$(find $XDG_RUNTIME_DIR -type s -name "sway-ipc*") \
|
|
||||||
exec swaymsg -t send_tick
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
export XDG_SESSION_TYPE=wayland
|
|
||||||
cd $HOME
|
|
||||||
WLR_DRM_DEVICES=/dev/dri/card0 exec sway --my-next-gpu-wont-be-nvidia
|
|
Loading…
Reference in New Issue