From b16fdf596ed5c6f3869d30576b9afea226089256 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 10 Jul 2023 18:11:41 +0530 Subject: wayland: split systemd and systemd less routine --- .config/wayland/winit | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to '.config/wayland/winit') diff --git a/.config/wayland/winit b/.config/wayland/winit index 3184e54..c977a0c 100755 --- a/.config/wayland/winit +++ b/.config/wayland/winit @@ -1,8 +1,19 @@ #!/bin/sh -# misc -dbus-xdp-enviroment & -configure-gtk & +# audio and xdp +if command -v systemctl > /dev/null; then + # https://git.sinanmohd.com/nixos/tree/features/wayland.nix + dbus-xdp-enviroment & +else + xdg-desktop-portal & + xdg-desktop-portal-wlr & + pipewire & + pipewire-pulse & + sleep 1 && wireplumber & +fi + +# gtk +configure-gtk & # https://git.sinanmohd.com/nixos/tree/features/wayland.nix # background swaybg -m fill -i "${XDG_DATA_HOME:-$HOME/.local/share}/wallpaper" & @@ -11,11 +22,6 @@ echo $! > "${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/swaybg.pid" & # notification deamon mako & -# audio -pipewire & -pipewire-pulse & -sleep 1 && wireplumber & - # wob wobpipe="${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/wobpipe" && mkfifo "$wobpipe" && -- cgit v1.2.3