mirror of https://github.com/ericonr/dotfiles.git
wayland: move to runit service start-up
This commit is contained in:
parent
a16b9f52de
commit
e771fa5e40
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -r "$1" ] && exec "$@" 2>&1
|
||||||
|
|
||||||
|
# if EXISTFAIL is set, exit, otherwise sleep
|
||||||
|
[ -z "$EXISTFAIL" ] && exit 1
|
||||||
|
exec sleep 999
|
|
@ -105,17 +105,6 @@ bindsym $mod+d exec $menu
|
||||||
# Resize windows with right mouse button + $mod.
|
# Resize windows with right mouse button + $mod.
|
||||||
floating_modifier $mod normal
|
floating_modifier $mod normal
|
||||||
|
|
||||||
## Enable further services for complete session
|
|
||||||
# Polkit authenticator
|
|
||||||
exec /usr/lib/polkit-kde-authentication-agent-1
|
|
||||||
for_window [app_id="polkit"] focus, floating enable, border pixel 4
|
|
||||||
# Notifications daemon
|
|
||||||
exec mako
|
|
||||||
# KDE Connect
|
|
||||||
exec /usr/lib/kdeconnectd
|
|
||||||
# Redshift
|
|
||||||
exec redshift
|
|
||||||
|
|
||||||
## Appearance
|
## Appearance
|
||||||
# Default wallpaper
|
# Default wallpaper
|
||||||
output * bg ~/Pictures/wallpaper.png fill
|
output * bg ~/Pictures/wallpaper.png fill
|
||||||
|
@ -311,7 +300,7 @@ for_window [app_id="mpv"] floating enable
|
||||||
for_window [app_id="krunner"] floating enable
|
for_window [app_id="krunner"] floating enable
|
||||||
for_window [app_id="konsole"] floating enable
|
for_window [app_id="konsole"] floating enable
|
||||||
for_window [app_id=".* KDE Connect Daemon"] floating enable
|
for_window [app_id=".* KDE Connect Daemon"] floating enable
|
||||||
|
for_window [app_id="polkit"] focus, floating enable, border pixel 4
|
||||||
# Firefox
|
# Firefox
|
||||||
for_window [title="Firefox - Sharing Indicator"] floating enable
|
for_window [title="Firefox - Sharing Indicator"] floating enable
|
||||||
for_window [app_id="org.mozilla.plasma-browser-integration-host"] floating enable
|
for_window [app_id="org.mozilla.plasma-browser-integration-host"] floating enable
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
pkill -HUP -f "^runsvdir /home/ericonr/.local/share/wayland-services"
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# created by elogind, usually
|
||||||
if test -z "${XDG_RUNTIME_DIR}"; then
|
if test -z "${XDG_RUNTIME_DIR}"; then
|
||||||
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
|
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
|
||||||
if ! test -d "${XDG_RUNTIME_DIR}"; then
|
if ! test -d "${XDG_RUNTIME_DIR}"; then
|
||||||
|
@ -8,6 +9,8 @@ if test -z "${XDG_RUNTIME_DIR}"; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export XDG_SESSION_TYPE=wayland
|
# activate PulseAudio, guarantee volume widget in Waybar works
|
||||||
|
pactl stat
|
||||||
|
|
||||||
exec sway
|
# start the compositor itself
|
||||||
|
exec dbus-run-session runsvdir $HOME/.local/share/wayland-services
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
exec swaynag \
|
exec swaynag \
|
||||||
-t warning \
|
-t warning \
|
||||||
-m 'Logout' \
|
-m 'Logout' \
|
||||||
-b 'Exit session' 'swaymsg exit' \
|
-b 'Exit session' 'kill-sway' \
|
||||||
-b 'Suspend' 'erctl suspend' \
|
-b 'Suspend' 'erctl suspend' \
|
||||||
-b 'Hibernate' 'erctl hibernate' \
|
-b 'Hibernate' 'erctl hibernate' \
|
||||||
-b 'Hybrid sleep' 'erctl hybrid-sleep' \
|
-b 'Hybrid sleep' 'erctl hybrid-sleep' \
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export SVDIR=$HOME/.local/share/wayland-services
|
||||||
|
exec sv "$@"
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export SVDIR=$HOME/.local/share/wayland-services
|
||||||
|
exec vsv "$@"
|
|
@ -0,0 +1 @@
|
||||||
|
supervise/
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# void location
|
||||||
|
export EXISTFAIL=1
|
||||||
|
exec exec-if-exists /usr/lib/libexec/kdeconnectd
|
||||||
|
|
||||||
|
# arch/manjaro location
|
||||||
|
unset EXISTFAIL
|
||||||
|
exec exec-if-exists /usr/lib/kdeconnectd
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
swaysv check sway >/dev/null || exit 1
|
||||||
|
exec mako 2>&1
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# arch/manjaro
|
||||||
|
export EXISTFAIL=1
|
||||||
|
exec exec-if-exists /usr/lib/polkit-kde-authentication-agent-1
|
||||||
|
|
||||||
|
# void
|
||||||
|
unset EXISTFAIL
|
||||||
|
exec exec-if-exists /usr/lib/libexec/polkit-kde-authentication-agent-1
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
swaysv check sway || exit 1
|
||||||
|
exec redshift 2>&1
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
cd $HOME
|
||||||
|
exec sway
|
Loading…
Reference in New Issue