This file contains 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 characters
#!/bin/bash | |
unset LD_PRELOAD | |
unset XDG_DESKTOP_PORTAL_DIR | |
unset XDG_SEAT_PATH | |
unset XDG_SESSION_PATH | |
RES=$(xdpyinfo | awk '/dimensions/{print $2}') | |
# Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper | |
# whilst being launched by plasma-session |
This file contains 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 characters
#!/bin/bash | |
# 确保脚本以root权限运行 | |
if [ "$EUID" -ne 0 ]; then | |
echo "请以root用户或使用sudo运行此脚本" | |
exit 1 | |
fi | |
# 检测操作系统类型 | |
if [[ $(grep -oP '(?<=^NAME=")[^"]*' /etc/os-release) =~ "Ubuntu" ]]; then |