add connect/disconnect command for headset to KDE connect
This commit is contained in:
parent
f1a669d409
commit
e88c82f55d
1 changed files with 49 additions and 45 deletions
|
@ -1,46 +1,50 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"command": "systemctl poweroff",
|
"command": "systemctl poweroff",
|
||||||
"name": "shutdown"
|
"name": "shutdown"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "systemctl reboot",
|
"command": "systemctl reboot",
|
||||||
"name": "reboot"
|
"name": "reboot"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "systemctl suspend",
|
"command": "systemctl suspend",
|
||||||
"name": "suspend"
|
"name": "suspend"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "systemctl hibernate",
|
"command": "systemctl hibernate",
|
||||||
"name": "hibernate"
|
"name": "hibernate"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "loginctl lock-session",
|
"command": "loginctl lock-session",
|
||||||
"name": "lock"
|
"name": "lock"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "loginctl unlock-session",
|
"command": "loginctl unlock-session",
|
||||||
"name": "unlock"
|
"name": "unlock"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut \"mute\"",
|
"command": "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut \"mute\"",
|
||||||
"name": "mute"
|
"name": "mute"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut \"mic_mute\"",
|
"command": "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut \"mic_mute\"",
|
||||||
"name": "mute mic"
|
"name": "mute mic"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "file=/tmp/$(hostname)_$(date \"+%Y%m%d_%H%M%S\").png; spectacle -bo \"${file}\" && while ! [ -f \"${file}\" ]; do sleep 0.5; done && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share \"${file}\"",
|
"command": "file=/tmp/$(hostname)_$(date \"+%Y%m%d_%H%M%S\").png; spectacle -bo \"${file}\" && while ! [ -f \"${file}\" ]; do sleep 0.5; done && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share \"${file}\"",
|
||||||
"name": "screenshot to phone"
|
"name": "screenshot to phone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "file=\"$HOME/Images/WebcamImage_$(date \"+%Y%m%d_%H%M%S\").jpg\"; ffmpeg -f video4linux2 -s 1280x720 -i /dev/video0 -ss 0:0:2 -frames 1 \"${file}\" && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share \"${file}\"",
|
"command": "file=\"$HOME/Images/WebcamImage_$(date \"+%Y%m%d_%H%M%S\").jpg\"; ffmpeg -f video4linux2 -s 1280x720 -i /dev/video0 -ss 0:0:2 -frames 1 \"${file}\" && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share \"${file}\"",
|
||||||
"name": "webcam to phone"
|
"name": "webcam to phone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "",
|
"command": "bluetoothctl connect 38:18:4C:11:56:99",
|
||||||
"name": ""
|
"name": "connect headset"
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"command": "bluetoothctl disconnect 38:18:4C:11:56:99",
|
||||||
|
"name": "disconnect headset"
|
||||||
|
}
|
||||||
]
|
]
|
Loading…
Add table
Add a link
Reference in a new issue