forked from Shinonome/dots-hyprland
Update README with tty1 service start instructions
Added instructions for starting services after logging into tty1 using Fish shell.
This commit is contained in:
@@ -22,3 +22,20 @@
|
|||||||
## Making the dot-files work
|
## Making the dot-files work
|
||||||
- pipewire, pipewire-pulse, and wireplumber must be started after a dbus-session is created and before Hyprland is launched.
|
- pipewire, pipewire-pulse, and wireplumber must be started after a dbus-session is created and before Hyprland is launched.
|
||||||
|
|
||||||
|
If you want to start after logging into tty1 you can do something like this.
|
||||||
|
```fish
|
||||||
|
if status --is-interactive; and [ (tty) = "/dev/tty1" ]
|
||||||
|
# Start DBus session if not running
|
||||||
|
if not set -q DBUS_SESSION_BUS_ADDRESS
|
||||||
|
dbus-launch --sh-syntax | sed 's/^/set -gx /; s/=/ /' | source
|
||||||
|
end
|
||||||
|
|
||||||
|
# Start PipeWire if not running
|
||||||
|
pgrep -x pipewire >/dev/null; or pipewire &
|
||||||
|
pgrep -x pipewire-pulse >/dev/null; or pipewire-pulse &
|
||||||
|
pgrep -x wireplumber >/dev/null; or wireplumber &
|
||||||
|
|
||||||
|
# Launch Hyprland with DBus session
|
||||||
|
exec Hyprland
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user