Repository navigation
Autostart.zh CN
Nakanomk edited this page Jun 27, 2026
·
2 revisions
语言: English · 简体中文
./install.sh 不会装开机自启项——不同 Wayland 合成器有不同启动机制,正确选择取决于你的工作流。按你的桌面挑一段。
创建 ~/.config/autostart/seekey.desktop:
[Desktop Entry]
Type=Application
Name=Seekey
Comment=Keyboard visualizer overlay for Wayland
Exec=seekey
Terminal=false
Categories=Utility;
X-GNOME-Autostart-enabled=true加到 ~/.config/hypr/hyprland.conf:
exec-once = seekey加到 ~/.config/sway/config:
exec seekey
加到 ~/.config/niri/config.kdl:
spawn-at-startup "seekey"加到 ~/.config/river/init:
riverctl spawn seekey加到 ~/.config/wayfire.ini:
[autostart]
seekey = seekey加到 ~/.config/labwc/autostart(加可执行权限):
#!/bin/sh
seekey &创建 ~/.config/systemd/user/seekey.service:
[Unit]
Description=Seekey keyboard visualizer
After=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/local/bin/seekey
Restart=on-failure
[Install]
WantedBy=default.target然后启用:
systemctl --user enable --now seekey.service提示:
~/.local/bin(install.sh默认前缀)在某些登录会话里不在$PATH上。systemd 单元里用绝对路径(如ExecStart=%h/.local/bin/seekey),或把~/.local/bin加到 shell rc。
按需把命令行参数(见 Configuration.zh-CN#命令行覆盖)追加到 Exec/ExecStart/spawn,例如:
ExecStart=/usr/local/bin/seekey --config /home/you/.config/seekey/config.iniGetting started
Behaviour & compatibility
Looks
For contributors
Reference