blob: c977a0c1f89fc9b4b017c93a57cd94ed85fbd703 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
# 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" &
echo $! > "${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/swaybg.pid" &
# notification deamon
mako &
# wob
wobpipe="${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/wobpipe" &&
mkfifo "$wobpipe" &&
tail -f "$wobpipe" | wob &
# screen lock
caffeine -st 1 &
|