mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
81 lines
2.8 KiB
YAML
81 lines
2.8 KiB
YAML
####################################################################
|
|
# #
|
|
# Override Pi-KVM system settings. This file uses the YAML syntax. #
|
|
# #
|
|
# https://github.com/pikvm/pikvm/blob/master/pages/config.md #
|
|
# #
|
|
# All overridden parameters will be applied AFTER other configs #
|
|
# and "!include" directives and BEFORE validation. #
|
|
# Not: Sections should be combined under shared keys. #
|
|
# #
|
|
####################################################################
|
|
vnc:
|
|
# See https://github.com/pikvm/pikvm/blob/master/pages/vnc.md
|
|
keymap: /usr/share/kvmd/keymaps/ru # Set russian keymap
|
|
auth:
|
|
vncauth:
|
|
enabled: true # Enable auth via /etc/kvmd/vncpasswd
|
|
kvmd:
|
|
hid:
|
|
mouse_alt:
|
|
device: /dev/kvmd-hid-mouse-alt # allow relative mouse mode
|
|
msd:
|
|
type: disabled
|
|
atx:
|
|
type: disabled
|
|
gpio:
|
|
drivers:
|
|
wol_server1:
|
|
type: wol
|
|
mac: 2c:56:dc:db:7c:1e
|
|
short_press:
|
|
type: cmd
|
|
cmd: [/usr/bin/sudo, onecloud_gpio.sh, short]
|
|
long_press:
|
|
type: cmd
|
|
cmd: [/usr/bin/sudo, onecloud_gpio.sh, long]
|
|
reset_press:
|
|
type: cmd
|
|
cmd: [/usr/bin/sudo, onecloud_gpio.sh, reset]
|
|
scheme:
|
|
wol_server1:
|
|
driver: wol_server1
|
|
pin: 0
|
|
mode: output
|
|
switch: false
|
|
short_button:
|
|
driver: short_press
|
|
pin: 0
|
|
mode: output
|
|
switch: false
|
|
long_button:
|
|
driver: long_press
|
|
pin: 0
|
|
mode: output
|
|
switch: false
|
|
reset_button:
|
|
driver: reset_press
|
|
pin: 0
|
|
mode: output
|
|
switch: false
|
|
view:
|
|
header:
|
|
title: 电源管理
|
|
table:
|
|
- ["#电源管理"]
|
|
- []
|
|
- ["#短按(开/关机):", short_button|按下]
|
|
- ["#长按(强制关机):", long_button|按下]
|
|
- ["#重启:", reset_button|按下]
|
|
- []
|
|
- ["#网络唤醒"]
|
|
- ["#被控机设备", wol_server1|网络唤醒]
|
|
streamer:
|
|
#forever: true
|
|
cmd_append: [--slowdown]
|
|
resolution:
|
|
default: 1280x720
|
|
desired_fps:
|
|
default: 30
|
|
max: 60
|
|
min: 0 |