我听说过kwriteconfig
as begin 相当于 for gsettings
。
我希望能够在 KDE Plasma 中模仿 GNOME 脚本中显示的功能。
侏儒脚本
根据我的喜好设置 gnome。
- 设置窗口主题
- 设置图标主题
- 设置光标外观
- 设置窗口按钮布局
代码
#!/bin/bash
#yaourt -Sy
declare -a Pacs=(
'macos-icon-theme'
'macos-arc-white-theme'
'capitaine-cursors'
'gtk-theme-united-gnome'
);
for i in ${Pacs[@]}; do
yaourt -S $i --noconfirm --needed
done
# List gnome installed themes
#gsettings list-recursively org.gnome.desktop.interface
#gsettings list-keys org.gnome.desktop.interface
#gsettings get org.gnome.shell.extensions.user-theme name
# GTK
gsettings set org.gnome.desktop.interface gtk-theme "United-Ubuntu"
# Icons
gsettings set org.gnome.desktop.interface icon-theme "macOS"
# Windows
gsettings set org.gnome.desktop.wm.preferences theme ""
# Cursor
gsettings set org.gnome.desktop.interface cursor-theme "Capitain"
# Buttons left (uses : separator )
gsettings set org.gnome.desktop.wm.preferences button-layout "close,minimize,maximize:"
# Shell Theme
gsettings set org.gnome.shell.extensions.user-theme name "United-Arch"
# lightdm login screen
yaourt -S lightdm-webkit-theme-litarvan