The network discovery of remote speakers is enabled by default on Fedora, leading to a very long list in the output device setting. To disable this feature:
Source: Fedora Discussion
Posts
23 个页面
笔记
Applications installed via Flatpak do not respect fontconfig settings stored in ~/.config/fontconfig/ by default. The solution is to copy the fontconfig directory to .var/app/<APP_ID>/config/, where <APP_ID> is the Flatpak application ID.
For example:
Toggle Color Theme on Plasma
How to toggle between light and dark themes on KDE Plasma while preserving customizations.
The shortcut Ctrl+C+C is used to look up the selected word in Goldendict and Goldendict-NG. However, this shortcut does not work properly on Wayland, because Wayland does not support the underlying function it relies on, as explained in the official documentation.
Fortunately, there is a simple workaround that is even more convenient than the …
When writing code within lists like the following structure, quarto cannot render the list properly.
The trick is to add an extra space after single-digit list indexes. This is because indentation is significant in Quarto, and both the list itself and any nested code blocks must start in the same column (note that the index itself, e.g., 1., 2., …
It is really painful and annoying that the cursor color is white when the vscode using a light theme. Using mpo_disable.reg provided by Nvidia can correct this behavior. It also works for computers with AMD GPUs.
mpo_disable.reg
The Windows installer assigns too little space to the EFI and Recovery partitions by default, which is not ideal for future updates. To resolve this issue, we need to manually partition using Diskpart during the installation phase. The following script is from Microsoft and serves as an example of a partitioning script.
The following is a modified …
SumatraPDF 小巧,快速,对于浏览 PDF 来说再合适不过。唯一的缺点就是功能有些许缺失,例如:虽然有更换主题功能,但是不能跟随 Windows 主题一起变化,并且界面颜色改变时,文档的颜色不改变。于是乎每当在夜晚打开一份 PDF 都仿佛打开了太阳……
微软的应用商店 Microsoft Store 中有一款软件 Auto Dark Mode 可以自动切换 Windows 的暗色模式,并且支持在切换时运行脚本。正巧 SumatraPDF 可以通过配置文件配置,实际上对于一些高级设置(例如字体颜色和背景颜色)只支持使用配置文件设置。因此一个简单的方案就是:编写一个脚本根据参数不同自动修改 SumatraPDF 的配置文件,并且设置 Auto Dark …
WinDirStat
概率论中的公式 在南信大的时候,我在概率论期末考试前整理了一份公式大全(当时我脑中全部能想到的),最近整理电脑文件时偶然又把它翻出来了。
Chapter 1 $$
\begin{align}
&P(A+B)=P(A)+P(B)-P(AB) \\
&P(A-B)=P(A\bar{B})=P(A)-P(AB) \\
&P(AB)=P(A)P(B) \iff \text{A and B are independent} \\
&P(A+B+C)=P(A)+P(B)+P(C)-P(AB)-P(AC)-P(BC)+P(ABC) \\
&P(A|B)=\frac{P(AB)}{P(B)} \\
&P(B|A)=\frac{P(AB)}{P(A)} \\ …
Disabling-Hyper-V Certain advanced Windows 10 features, such as Device Guard (in particular, Hypervisor-protected code integrity or HVCI) and Credential Guard, can prevent Hyper-V from being completely disabled. In other words, when any of these features are enabled, so is Hyper-V, even though Windows may report otherwise.
The Device Guard and …
Using pkgfile to find out the package of such files
I get a directory like following:
I want to transform all mp4 files to mp3 and move them to a new directory called mp3 in current directory. here is the command:
where {/.} represents a clear file name that stripped extension name and path
URLs of transcripts Script
众所周知,gnome 目前默认使用 wayland,但某些程序在 wayland 下表现不佳。例如 telegram 有时边框外会显示奇怪的阴影,解决方法是开启选项:使用系统边框。然而在 wayland 下没有此选项,取而代之的是:使用 qt 边框,但 qt 边框与 gtk 应用的风格很不统一,导致看起来很丑。解决方法是在其 .desktop 文件中添加环境变量使 telegram 强制使用 x11,事实上,我已经使用QT_QPA_PLATFORM=xcb这个环境变量为另一个程序 anki 解决了这个问题。
然而,同样的方法对 telegram 却失效了。经过一番摸索我发现,直接运行 .desktop 文件,在命令行运行指令或使用dex命令运行都生效,可一旦从 gnome 的应用抽屉里启动或 …
在 KDE 上使用 aurorae 主题(除 Breeze 外的所有主题)时,如果字体 DPI 大于 96,应用程序的边框会变得巨大无比,十分丑陋。偏偏在高分屏幕上增加字体 DPI 是放大界面而不损失清晰度的唯一方法,这一问题几乎动摇了我使用 KDE 的决心转而尝试了几天 Gnome (颜值即生产力)。虽然最后还是回到了 KDE,但是这个问题还是亟待解决的。一开始使用的方法是,修改主题时不修改窗口装饰元素,还是用 Breeze 的窗口装饰元素,但是这样导致风格很割裂,不统一。网络上也没有什么好的解决方案,在 github 上看到主题 sweet 的作者声称解决了这个问题,但是当有人询问解决方案时他又不再回答。而另一款主题 materia 的作者提出可以修改主题的 css 文件,虽然这个方法还 …
从 Flatpak 安装的 Obsidian 不显示全局菜单。执行下列命令后解决:
prime-run steam命令报错X Error of failed request: BadValue (integer parameter out of range for operation),原因是内核与 nvidia 驱动不匹配。按照 archwiki 的说明,安装linux-zen-headers和nvidia-dkms并添加内核参数CONFIG_DRM_SIMPLEDRM=y后解决。
为了使用 waydroid 不得已换 X11 为 Wayland,随之问题就来了。基于 Qt6 的 Anki 似乎与 Wayland 兼容的不太好,无法在 KDE 中使用全局菜单,并且 Goldendict 的Ctrl+c+c粘贴板查词功能在 Anki 里也无法使用了。 Google 上搜索了一番后发现可以用WAYLAND_DISPLAY=""环境变量强制 Anki 使用 X11 解决。使用后果然没有上述问题了,但是出现了新的问题: fcitx 无法在 Anki 里使用了。略微思考后,我想起来我遵从 Wayland 的建议删掉了在/etc/environment全局设置的QT_IM_MODULE=fcitx。这个问题官方的建议也提及了,可以单独为 Anki 设置环境变量, …
Dolphin 中无法加载缩略图,也无法打开图片。
安装kimageformats后解决。
参考 https://www.reddit.com/r/kde/comments/s4bres/heifheic_support_in_dolphingwenview/
