update old socket directories (#630)

Updated the documentation to reflect the correct directory
This commit is contained in:
Cam F 2024-05-04 11:10:02 +00:00 committed by GitHub
parent 707aaf6d48
commit 9a0bf63c0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -12,14 +12,14 @@ via code / bash utilities.
echo $HYPRLAND_INSTANCE_SIGNATURE
```
## $XDG_RUNTIME_DIR/hypr/\[HIS\]/.socket.sock
## /tmp/hypr/\[HIS\]/.socket.sock
Used for hyprctl-like requests. See the
[Hyprctl page](../Configuring/Using-hyprctl) for commands.
basically, write `[flag(s)]/command args`.
## $XDG_RUNTIME_DIR/hypr/\[HIS\]/.socket2.sock
## /tmp/hypr/\[HIS\]/.socket2.sock
Used for events. Hyprland will write to each connected client live events like
this:
@ -89,5 +89,5 @@ handle() {
esac
}
socat -U - UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read -r line; do handle "$line"; done
socat -U - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read -r line; do handle "$line"; done
```