我有一个问题,一些热键工作正常,而另一些热键工作正常(我知道它们实际上可以工作)。键绑定存在于我的 .conf/openbox/lxde-rc.xml 文件中,例如屏幕打印工作正常。我想设置亮度,但不起作用,音量也一样...我检查了 xbacklight、xrandr、lxhotkey...是否已安装。
管理亮度的唯一方法是使用终端xrandr --output eDP1 --brightness 1.3
<keybind key="Print">
<action name="Execute">
<command>gnome-screenshot -i</command>
</action>
</keybind>
<!-- Launch LXRandR when Fn+Screen is pressed -->
<keybind key="XF86Display">
<action name="Execute">
<command>lxrandr</command>
</action>
</keybind>
<!-- Change the brightness -->
<keybind key="XF86MonBrightnessUp">
<action name="Execute">
<command>brightnessctl set 5%+</command>
</action>
</keybind>
<keybind key="XF86MonBrightnessDown">
<action name="Execute">
<command>brightnessctl set 5%-</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>pactl -- set-sink-volume 0 -5%</command>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>pactl -- set-sink-volume 0 +5%</command>
</action>
</keybind>
<keybind key="W-p">
<action name="Execute">
<command>xrandr -o inverted</command>
</action>
</keybind>
<keybind key="C-F4">
<action name="Execute">
<command>xrandr -o normal</command>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<command>pactl set-sink-mute @DEFAULT_SINK@ toggle</command>
</action>
</keybind>
</keyboard>
有任何想法吗?