47 lines
1.3 KiB
JSON
47 lines
1.3 KiB
JSON
|
[
|
||
|
{
|
||
|
"command": "systemctl poweroff",
|
||
|
"name": "shutdown"
|
||
|
},
|
||
|
{
|
||
|
"command": "systemctl reboot",
|
||
|
"name": "reboot"
|
||
|
},
|
||
|
{
|
||
|
"command": "systemctl suspend",
|
||
|
"name": "suspend"
|
||
|
},
|
||
|
{
|
||
|
"command": "systemctl hibernate",
|
||
|
"name": "hibernate"
|
||
|
},
|
||
|
{
|
||
|
"command": "loginctl lock-session",
|
||
|
"name": "lock"
|
||
|
},
|
||
|
{
|
||
|
"command": "loginctl unlock-session",
|
||
|
"name": "unlock"
|
||
|
},
|
||
|
{
|
||
|
"command": "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut \"mute\"",
|
||
|
"name": "mute"
|
||
|
},
|
||
|
{
|
||
|
"command": "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut \"mic_mute\"",
|
||
|
"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}\"",
|
||
|
"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}\"",
|
||
|
"name": "webcam to phone"
|
||
|
},
|
||
|
{
|
||
|
"command": "",
|
||
|
"name": ""
|
||
|
}
|
||
|
]
|