[记录]ArchLinux安装KDE桌面环境 您所在的位置:网站首页 wifi6路由器拆机 [记录]ArchLinux安装KDE桌面环境

[记录]ArchLinux安装KDE桌面环境

2023-03-13 10:40| 来源: 网络整理| 查看: 265

这篇文章是记录性质的,专注于我的切身实践的过程,不会有太多扩展,也不会太深入。重点讲述我的实践步骤、遇到的问题和解决方法。如果你的情况与我相似,遇到了类似的问题,希望这篇文章对你有帮助。

安装KDE

不需要单独安装Xorg,它作为依赖自动安装,单独安装没有意义。把显卡驱动装好就行,不装也能运行,但会比较卡。

安装plasma包组。也可以安装plasma-meta元包,但不建议,这样无法在不卸载元包的情况下卸载组件,并且所有组件被安装为依赖。

Arch Linux对KDE的打包很差劲,像dolphin(文件管理器)、konsole(终端模拟器)、kate(文本编辑器)等关键组件都不在plasma包组中,而discover(应用商店)、flatpak-kcm(应用商店flatpak集成)、plasma-sdk(plasma开发工具)等无关紧要的东西却在plasma包组中。

kde-applications包组里有其他所有的KDE应用程序,但非常不建议安装这个包组,因为里面的东西太杂了,包括好多游戏、专业软件,以及两个浏览器。可以安装细分类别的包组,推荐kde-accessibility、kde-graphics、kde-system、kde-utilities,以及其他几个包:cups、ffmpegthumbs、noto-fonts。

最终的安装命令:

sudo pacman -Sy plasma kde-accessibility kde-graphics kde-system kde-utilities \ cups ffmpegthumbs noto-fonts 复制代码

卸载多余软件:

sudo pacman -Rns discover flatpak-kcm plasma-sdk 复制代码 启动服务 启动SDDM

SDDM作为依赖已经自动安装,使用SDDM从登录界面启动桌面环境。

启动SDDM的命令:

sudo systemctl enable sddm 复制代码 启动网络、蓝牙、打印机服务 sudo systemctl enable NetworkManager bluetooth cups 复制代码

不建议以root身份使用桌面环境,应该新建一个用户,并给sudo权限。

重启系统即可进入图形界面。

配置系统 字体

推荐安装:

sudo pacman -Sy noto-fonts-emoji ttf-dejavu \ adobe-source-han-sans-cn-fonts \ adobe-source-han-sans-tw-fonts \ adobe-source-han-sans-jp-fonts \ adobe-source-han-sans-kr-fonts 复制代码 输入法 安装Fcitx5 sudo pacman -Sy fcitx5-im fcitx5-chinese-addons 复制代码

其中fcitx5-im是一个包组,包含fcitx5、fcitx5-configtool、fcitx5-gtk、fcitx5-qt。fcitx5-chinese-addons是中文扩展,包含一些输入法引擎。

添加环境变量

通过环境变量配置应用程序的输入法模块。

创建文件:$HOME/.config/plasma-workspace/env/fcitx.sh,并写入以下内容:

export XMODIFIERS=@im=fcitx export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx 复制代码 配置输入法 添加输入法

打开System Settings,导航到Regional Settings > Input Method,点击Add Input Method...,搜索pinyin,选择简体中文下面的Pinyin,添加。

配置输入法框架

在Input Method页面,点击Configure global options...,根据个人习惯更改快捷键和行为。

Trigger Input Method改成Super+Space,原来的Control+Space与VSCode快捷键冲突 Enumerate相关的快捷键都删掉,因为只有一个输入法不需要枚举,且Control+Shift很容易误触 取消勾选Show preedit in application、Show first input method information

点击Configure addons...,设置组件。

设置UI下的Classic User Interface,把Theme改为KDE Plasma (Experimental) 设置Module下的Cloud Pinyin,把Backend改为Baidu 配置拼音输入法

进入Pinyin设置。

勾选Enable Cloud Pinyin。 取消勾选Show preedit within application Action when switching input method,选择Clear 导入词库

进入Pinyin设置,点击Dictionaries > Import > Brownse Sougou Cell Dictionary Online,即可在网页上浏览搜狗词库,选中后下载,即可自动添加到词库。

配置输入法托盘

如果没有输入法托盘图标,手动运行Fcitx 5应用程序。

任务栏右键,点击Add Widgets...,搜索input,把Input Method Panel拖到托盘左侧,再添加一个Margins Separator将它与其他托盘图标分隔开。

Input Method Panel会取代原来的托盘图标,作为独立部件存在,这样就能保证它始终在所有托盘图标的左侧。

Input Method Panel的另一个功能是显示输入法的各种开关,切换到拼音即可见。但开关太多了不好看,右键点击开关选择隐藏。

系统设置 禁止单击打开

Workspace Behavior > General Behavior > Clicking files or folders,选择Selects them。

关闭自动锁屏

Workspace Behavior > Screen Locking > Lock screen automatically > After,取消勾选。

调整访问记录

本来应该关掉,但只能关掉文件记录,关不掉目录记录。无奈只能设置1个月清理。

Workspace Behavior > Recent Files > Keep history,改为一个月。

关闭窗口位置记忆

Windows Management > Window Behavior > Advanced > Allow apps to remember...,取消勾选。

设置快捷键

Shortcuts > Shortcuts > Add Application...,选择Konsole和System Monitor。

Konsole默认快捷键是Ctrl+Alt+T。System Monitor默认没有快捷键,设置为Ctrl+Shift+Esc。

删除Spectacle下的所有快捷键,设置为:

Capture Active Window:Ctrl+Print(本该设置为Alt+Print,但KDE无法设置这个组合键) Capture Entire Desktop:Print Capture Rectangular region:Shift+Print 改变开关机行为

Startup and Shutdown > Desktop Session。

取消勾选Logout Screen下面的Show。关机不再需要二次验证。

选择Start with an empty session。开机不再恢复上次会话。

改变搜索行为

Search > Plasma Search。

全部取消勾选,只留下Applications、Desktop Search、Locations、Places、Recent Files、System Settings。

打开NumLock

Input Devices > Keyboard > Numlock on Plasms Startup,选择Turn on。

关闭鼠标自适应加速

Input Devices > Mouse > Acceleration profile,选择Flat。

设置刷新率

对于高刷屏,Plasma可能不会默认设置最大刷新率。

Display and Monitor > Display Configuration > Refresh rate。

调增电源计划

Power Management > Energy Saving。

取消勾选Screen Energy Saving。

When power button pressed选择Shut down。

配置登录界面

Startup and Shutdown > Login Screen (SDDM)。

双击Breeze主题,应用到登录界面。

点击Apply Plasma Settings...,将系统设置同步到登录界面。

组件设置 Dolphin

打开Dolphin,先调整窗口大小。

在菜单栏里找到Configure Dolphin...。

General Behavior,取消勾选Show selection marker Confirmations,取消勾选Closing windows with multiple tabs Startup Show on startup,选择主目录 Navigation 勾选Open folders during drag operations Context Menu,全部取消勾选,仅保留以下 'Compress' service menu 'Extract' service menu Add to Places Sort By View Mode Copy Location Encrypt File Open in New Tab Open in New Window Open Terminal Here Plasma Vault mount and unmount Run in Konsole Set as Wallpaper Share Start a Slideshow View file decrypted Trash 勾选Cleanup,时间设置为30天 Clipboard

系统托盘右键Clipboard,点击Configure Clipboard...。General标签,取消勾选Save history across desktop sessions。

开始菜单图标

打开Application Launcher Settings,点击Icon,在Other分类里有archlinux-logo。

System Monitor

打开System Monitor,History > Edit Page,点击CPU的图表。

取消勾选Stacked Charts Fill Opacity改为10 Spectacle

Configure... > General > Remember selected area,选择Never。

Konsole

Settings > Configure Konsole...。

General,取消勾选*Remember windows size Temporaty Files,选择User cache directory Tab Bar/Splitters > Appearance > Position,选择Above terminal area

Profiles,新建配置。

General > General Settings 勾选Default profile Terminal bell mode,选择System Bell Appearance Color scheme & font,字体设置为11号 Complex Text Layout,取消勾选Word mode Scrolling Scrollbar position,选择Hidden 取消勾选Highlight the lines coming into view Mouse Text interaction,取消勾选Copy test as HTML Miscellnneous > Text Editor Command,选择KWrite

Settings,取消勾选Show Menubar



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有