Skip to content

Instantly share code, notes, and snippets.

@markuskont
Last active June 14, 2019 10:16
Show Gist options
  • Save markuskont/4c7a50d6f4a549196fe7644dab9bc077 to your computer and use it in GitHub Desktop.
Save markuskont/4c7a50d6f4a549196fe7644dab9bc077 to your computer and use it in GitHub Desktop.

Make windows (10) great (again)

cmder ConEmu connection string for specific WSL linux app, in case you are running multiple Windows 10 linux distributions. Find UUID from registry.

set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -C~ --distro-guid={UUID} -cur_console:pm:/mnt

st

#!/bin/bash

sudo apt-get install pkg-config libxft-dev fonts-hack-ttf build-essential git make

git clone https://github.com/markuskont/st
cd st && git checkout 0.8.1-dracula && make
export DISPLAY=127.0.0.1:0.0; ./st

bat-launcher.vbs

If WScript.Arguments.Count <= 0 Then
    WScript.Quit
End If	

bat = Left(WScript.ScriptFullName, InStrRev(WScript.ScriptFullName, "\")) & WScript.Arguments(0) & ".bat"
arg = ""

If WScript.Arguments.Count > 1 Then
    arg = WScript.Arguments(1)
End If

CreateObject("WScript.Shell").Run """" & bat & """ """ & arg & """", 0, False

launch-st.bat

REM ### Start X server
REM start ""C:\Program Files\VcXsrv\vcxsrv.exe" -multiwindow"

REM ### Start suckless terminal
ubuntu1804.exe run export DISPLAY=127.0.0.1:0.0; /home/rev/.local/bin/st;

link

C:\Windows\System32\wscript.exe "C:\Users\user\Desktop\st-launch\bat-launcher.vbs" "launch-st"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment