使用sway来进行wsl2的程序开发

512 阅读1分钟

今天突然发现直接idea连接wsl中项目进行debug时报错,说idea的jlauncher无法使用,被这个搞头疼了,然后使用了wslg来进行开发,每次都好多个窗口,比较麻烦,启动也慢。现在采用了sway的方式来运行,发现很不错。

sway中进行了窗口管理,可以防止多个窗口开出,扰乱本该属于windows的窗口,所有的项目都进入到sway的窗口管理很方便使用。

非常好看。

image.png 也可以支持中文输入法,如上图所示。接下来,将使用sway来开发项目了。

启动sway的命令

I just purchased an Intel Arc A750 and struggling to get the graphics card working within (Void, or any distribution of) Linux for the past month, while the graphics/video card worked with Windows 10 without problems. Happened to find a recent Internet post stating somebody else could not get their Intel A750/A770 working with either Xorg or Gnome Wayland, however using Sway the video/graphics card finally worked. And low and behold, same here, this Intel A750 is coming alive with using Sway, Void Linux kernel 6.0.7_1 version, i915.force_probe Linux cmdline option, and just the older default installed dg2_dmc 2022.10.22 linux-firmware!
​
I also had a problem with no graphical mouse pointer or invisible mouse pointer:
$ export WLR_NO_HARDWARE_CURSORS=1 && sway --verbose # 使用这个启动全屏话的sway
​
Already mentioned, if the DISPLAY variable is initialized, for example within $HOME/.bashrc or $HOME/.bash_profile file, ensure $DISPLAY variable is not set!
$ unset DISPLAY

image.png image.png