1 Star 0 Fork 0

会PS的小码农 / remove_wechat_shadow_archlinux_i3wm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Remove Wechat (Wine) Shadows

The wine Wechat in Arch Linux usually comes with shadow borders. I use i3wm and the wechat windows have shadow borders that may stay on other windows, which is ugly. One way to get rid of this shadow is to use wine-for-wechat in archlinuxcn. However, the wine it uses has many issues such as unclickable tray icon (I have to reload the i3 to click the icon when I need my wechat window back) and fcitx input box going to the upper left corner of the window.

The solution I come up with is to use com.qq.weixin.spark and manually hide these shadow windows. They are actually auxiliary windows that lies under the main wechat windows. The script remove_wechat_shadow detects the shadow windows and hide them. This script requires xwininfo and xdotool, which you can install by

pacman -S xorg-xwininfo xdotool

This script can remove the shadows of currently opened windows. However, when the window is opened again (e.g., using PengYouQuan), the shadows come back. To address this, I wrote a monitor script that calls remove_wechat_shadow everytime a wechat window is opened, based on i3ipc. You can adapt this logic easily to your DM or WM similarly.

yay -S com.qq.weixin.spark

Finally, install the monitor script to i3:

pacman -S python-i3ipc

# In .config/i3/config
exec_always python /usr/local/bin/wechat_monitor.py

空文件

简介

解决i3wm下微信显示黑框问题,基于github上大佬的方案本人添加了自动安装脚本 展开 收起
Python 等 2 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/liushuai05/remove_wechat_shadow_archlinux_i3wm.git
git@gitee.com:liushuai05/remove_wechat_shadow_archlinux_i3wm.git
liushuai05
remove_wechat_shadow_archlinux_i3wm
remove_wechat_shadow_archlinux_i3wm
main

搜索帮助