Last active
October 5, 2023 00:34
-
-
Save DPS0340/0537596c53f90f310b6b400ae3dbad68 to your computer and use it in GitHub Desktop.
Revisions
-
DPS0340 revised this gist
Dec 22, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ sudo pacman -S socat ## Usage Run init script only once per session. ```bash sudo ./init-discord-rpc.sh -
DPS0340 revised this gist
Dec 22, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ sudo pacman -S socat ## Usage Run init script only once per session, using sudo. ```bash sudo ./init-discord-rpc.sh -
DPS0340 revised this gist
Dec 22, 2022 . No changes.There are no files selected for viewing
-
DPS0340 created this gist
Dec 22, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #!/bin/bash set -x if pgrep -x "socat" then exit 1 fi pkill socat rm -f /var/run/discord-ipc-0 socat UNIX-LISTEN:/var/run/discord-ipc-0,fork \ EXEC:"npiperelay.exe //./pipe/discord-ipc-0" & sleep 2 chmod 777 /var/run/discord-ipc-0 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ ## PowerShell ```pwsh scoop bucket add extras scoop install npiperelay ``` ## WSL 2 Install [presence.nvim](https://github.com/andweeb/presence.nvim). Install socat. ```bash sudo pacman -S socat ``` ## Usage Run init script only once using sudo. ```bash sudo ./init-discord-rpc.sh ```