Xbindkey

Catalogue
  1. 1. 安装
  2. 2. 配置
  3. 3. Media Btn

安装

1
sudo apt install xbindkeys xautomation wish

配置

1
xbindkeys --defaults > $HOME/.xbindkeysrc

Media Btn

1
2
3
4
5
6
7
8
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.netease-cloud-music /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
b:8

"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.netease-cloud-music /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
b:2

"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.netease-cloud-music /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
b:9