我想创建一个 bash 脚本或 python 脚本,这将帮助我改变 xubntu xfce v20.04 lts 的整体外观和感觉,因此我需要指导如何处理这个问题。我了解 bash,但了解不多,我也经历过 kali自定义图像链接仍然没有运气
答案1
我试图根据一个有关自定义 xfce 的 YouTube 视频做类似的事情,使其看起来更像 mac os big sur,这里是一个示例脚本,我认为或多或少是您想要做的事情。它下载并更改 xfce 主题、图标、光标和壁纸,使全新安装的 xubuntu 看起来更像 mac os:
#! /usr/bin/env bash
cd ~
mkdir .themes
cd .themes
wget https://github.com/vinceliuice/WhiteSur-gtk-theme/raw/ceed403d404dc93895d8da4f8b8a4af82be9cf92/stable-release/Gnome-3-28/WhiteSur-light.tar.xz
tar -xf WhiteSur-light.tar.xz
rm WhiteSur-light.tar.xz
xfconf-query -c xsettings -p /Net/ThemeName -s WhiteSur-light
xfconf-query -c xfwm4 -p /general/theme -s WhiteSur-light
cd ~
mkdir .icons
cd .icons
wget https://github.com/vinceliuice/WhiteSur-icon-theme/archive/refs/tags/2020-10-11.tar.gz
tar -xf 2020-10-11.tar.gz WhiteSur-icon-theme-2020-10-11
cd WhiteSur-icon-theme-2020-10-11
./install.sh -d $HOME/.icons
cd ~/.icons
rm 2020-10-11.tar.gz
rm -r WhiteSur-icon-theme-2020-10-11
xfconf-query -c xsettings -p /Net/IconThemeName -s WhiteSur
wget https://github.com/vinceliuice/McMojave-cursors/archive/25120f0f3cd0fc2390fae4abbee184c524b84738.zip
unzip 25120f0f3cd0fc2390fae4abbee184c524b84738.zip
cd McMojave-cursors-25120f0f3cd0fc2390fae4abbee184c524b84738
cp -r dist ~/.icons/McMojave-cursors
cd ~/.icons
rm 25120f0f3cd0fc2390fae4abbee184c524b84738.zip
rm -r McMojave-cursors-25120f0f3cd0fc2390fae4abbee184c524b84738
xfconf-query -c xsettings -p /Gtk/CursorThemeName -s "McMojave-cursors"
cd ~/Pictures
wget https://raw.githubusercontent.com/vinceliuice/WhiteSur-kde/e9342d222905267245724155fdaf23ff697ddd19/wallpaper/WhiteSur.png
xfconf-query -c xfce4-desktop -l | grep last-image | while read path; do xfconf-query -c xfce4-desktop -p $path -s ~/Pictures/WhiteSur.png; done