aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--wsl/.config/alacritty/local.yml14
-rwxr-xr-xwsl/.local/bin/discord-relay.sh3
-rw-r--r--wsl/.local/share/wsl/shell/wsl.plugin.zsh21
3 files changed, 2 insertions, 36 deletions
diff --git a/wsl/.config/alacritty/local.yml b/wsl/.config/alacritty/local.yml
deleted file mode 100644
index 29c0afb..0000000
--- a/wsl/.config/alacritty/local.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-shell:
- program: wsl.exe
- args:
- - zsh -l -c 'tmux new -As $USER'
-
-working_directory: '\\wsl$\Arch\home\tobyv'
-
-font:
- normal:
- family: FiraCode NF
- size: 15
-
-window:
- opacity: 0.98
diff --git a/wsl/.local/bin/discord-relay.sh b/wsl/.local/bin/discord-relay.sh
index 3932908..d0f8cc6 100755
--- a/wsl/.local/bin/discord-relay.sh
+++ b/wsl/.local/bin/discord-relay.sh
@@ -1,2 +1,3 @@
#!/bin/sh
-exec socat UNIX-LISTEN:/var/run/discord-ipc-0,fork,group=discord,umask=007 EXEC:"npiperelay.exe -ep -s //./pipe/discord-ipc-0",nofork >/dev/null 2>&1
+
+exec socat UNIX-LISTEN:/var/run/discord-ipc-0,fork,group=discord,umask=007 EXEC:"/home/tobyv/.local/bin/npiperelay.exe -ep -s //./pipe/discord-ipc-0",nofork
diff --git a/wsl/.local/share/wsl/shell/wsl.plugin.zsh b/wsl/.local/share/wsl/shell/wsl.plugin.zsh
index 4c654ab..4a65466 100644
--- a/wsl/.local/share/wsl/shell/wsl.plugin.zsh
+++ b/wsl/.local/share/wsl/shell/wsl.plugin.zsh
@@ -1,31 +1,11 @@
#!/bin/sh
# shellcheck disable=2155
-# [ -n "${WSL_DISTRO_NAME+1}" ] || return 0
-
-WINHOME="/mnt/c/Users/$USER"
-# shellcheck disable=2164
-[ "$PWD" = "$WINHOME" ] && cd
-
-mkdir -p /tmp/xdg
-
-export DISPLAY="$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}')":0
-export BROWSER=wslview
-export XDG_RUNTIME_DIR=/tmp/xdg
-export GPG_TTY="$(tty)"
-export SHELDON_PROFILE="wsl"
-
alias wsl="/mnt/c/Windows/system32/wsl.exe"
alias powershell="/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"
alias pwsh="/mnt/c/Program Files/PowerShell/7/pwsh.exe"
alias ykman='/mnt/c/Program\ Files/Yubico/YubiKey\ Manager/ykman.exe'
-alias pip2="DISPLAY= pip2"
-alias pip3="DISPLAY= pip3"
-alias pip3.7="DISPLAY= pip3.7"
-alias pip3.10="DISPLAY= pip3.10"
-alias pip="DISPLAY= pip3"
-
wsl_path() {
win_path="$(powershell.exe "(get-command $1 -ErrorAction SilentlyContinue).Source")"
if [ ! -z "$win_path" ]; then
@@ -33,7 +13,6 @@ wsl_path() {
fi
}
-alias alacritty="$(wsl_path "alacritty")"
alias pwsh="$(wsl_path "pwsh")"
alias ykhold='sudo systemctl stop usbip@wsl.service && echo "Press any key..." && read && sudo systemctl start usbip@wsl.service'