Linux GTK SDDM 主题设置

Linux GTK SDDM 主题设置

无桌面环境时 GTK SDDM 主题的设置

软件包

GTK 主题

  • fluent-gtk-theme-git
  • fluent-cursor-theme-git
  • tela-icon-theme-git

GTK 主题配置 GUI

  • lxappearance

SDDM 主题

  • sddm-swish-zh
1
paru -S fluent-gtk-theme-git fluent-cursor-theme-git tela-icon-theme-git lxappearance sddm-swish-zh

配置

主题路径

1
2
3
4
5
6
# 鼠标和图标主题
/usr/share/icons/
# GTK窗体主题
/usr/share/themes/
# SDDM主题
/usr/share/sddm/themes/

桌面主题

使用 lxappearance 配置即可

SDDM 主题

SDDM 配置路径

1
2
3
4
5
6
# SDDM默认配置路径
/usr/lib/sddm/sddm.conf.d/default.conf
# SDDM配置文件路径
/etc/sddm.conf
# 或者
/etc/sddm.conf.d/xxx.conf #对xxx配置块进行配置

SDDM 配置

1
sudo cp /usr/lib/sddm/sddm.conf.d/default.conf /etc/sddm.conf

更改对应的配置块的选项即可

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Autologin]
Relogin=false
Session=
User=

[General]
HaltCommand=/usr/bin/systemctl poweroff
Numlock=on
RebootCommand=/usr/bin/systemctl reboot

[Theme]
Current=Swish
CursorTheme=Fluent-dark-cursors
Font=Microsoft YaHei UI Light,12,-1,5,23,0,0,0,0,0,Regular

[Users]
MaximumUid=60513
MinimumUid=1000

[X11]
ServerArguments=-dpi 144

预览主题

1
sddm-greeter --test-mode --theme /usr/share/sddm/themes/主题名

参考资料

GTK (简体中文) - ArchWiki
Cursor themes (简体中文) - ArchWiki
SDDM (简体中文) - ArchWiki

作者

Meow-2

发布于

2022-11-03

更新于

2022-11-06


评论