Files
arch/noctalia-dotfiles/.config/niri/config.kdl
2026-03-31 20:13:15 +08:00

113 lines
3.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ██████ ██ ██ ██████ ███████ ██ ███ ██
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
// ███████ ███████ ██ ██ ██████ ██ ██ ██ ██
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
// ██████ ██ ██ ██████ ██ ██ ██ ██ ████
// 截图保存位置
screenshot-path "~/Pictures/Screenshots/Niri-screenshots/%Y-%m-%d_%H-%M-%S.png"
// 环境变量
environment {
//LC_CTYPE "zh_CN.UTF-8" 会导致输入法出现漏字
//LC_MESSAGES "zh_CN.UTF-8" 让系统全局使用英文,仅主要界面为英文时使用这个环境变量
// 设置界面语言
LANGUAGE "zh_CN.UTF-8"
LANG "zh_CN.UTF-8"
LC_CTYPE "en_US.UTF-8" //这一项可以解决漏字问题但是也许会导致steam之类的x11应用无法使用中文输入法
// 输入法环境变量
XMODIFIERS "@im=fcitx"
// qt主题
QT_QPA_PLATFORMTHEME "gtk3"
QT_QPA_PLATFORMTHEME_QT6 "gtk3"
// 解决quickshell图标主题缺失问题
QS_ICON_THEME "Adwaita"
// GTK软件使用的渲染器可以解决n卡双显卡导致的GTK应用启动缓慢问题AMD或Intel单显卡不需要这行设置可以注释掉
//GSK_RENDERER "gl"
// 默认文本编辑器
EDITOR "vim"
}
input {
keyboard {
xkb {
}
}
touchpad {
// off
tap
// dwt
// dwtp
// drag false
// drag-lock
// nautural-scroll可以翻转触摸板滚动的方向
natural-scroll
//accel-speed -0.5
// accel-profile "flat"
// scroll-method "two-finger"
// disabled-on-external-mouse
}
mouse {
// off
// natural-scroll
// 鼠标速度
accel-speed -0.15
// 禁用鼠标加速
accel-profile "flat"
// scroll-method "no-scroll"
//speed of scroll,like:
//scroll-factor horizontal=2.0 vertical=-5.0
}
trackpoint {
// off
// natural-scroll
// accel-speed 0.2
// accel-profile "flat"
// scroll-method "on-button-down"
// scroll-button 273
// scroll-button-lock
// middle-emulation
}
}
// 自动启动
spawn-sh-at-startup "qs -c noctalia-shell"
// 询问管理员权限功能(身份验证)
spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
spawn-sh-at-startup "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=niri & /usr/lib/xdg-desktop-portal-gnome"
// GNOME tracker修复
spawn-sh-at-startup "systemctl --user set-environment XDG_SESSION_CLASS=user"
// 输入法
spawn-at-startup "fcitx5"
// 截图音效的守护进程
spawn-at-startup "~/.config/niri/scripts/screenshot-sound.sh"
// 允许root通过用户的xwayland打开窗口
spawn-at-startup "xhost" "+si:localuser:root"
// 开启时自动随机更换一次壁纸
spawn-sh-at-startup "sleep 3 && qs -c noctalia-shell ipc call wallpaper random all"
// 取消启动niri时自动开启快捷键教程
hotkey-overlay {
// Uncomment this line to disable the "Important Hotkeys" pop-up at startup.
skip-at-startup
}
// 隐藏窗口标题栏
prefer-no-csd
include "layout.kdl"
include "animations.kdl"
include "binds.kdl"
include "supertab.kdl"
include "windowrules.kdl"
include "cursor.kdl"
include "outputs.kdl"
include "./noctalia.kdl"