Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

nixheads/kdeconnect-cli_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kdeconnect-cli wrapper

A series of bash script wrappers for the CLI client for KDEconnect

Usage

kdecclist

$ ./kdecclist

kdecclist is a script to list all device IDs on the LAN. The other scripts such as kdeccpair, kdeccunpair, and kdeccping all call this script by default for the device field of kdeconnect-cli. This script runs:

$ kdeconnect-cli --id-only -l

kdeccpair

$ ./kdeccpair

The kdeccpair script works by calling kdeconnect-cli's default pairing method, so in effect running $ ./kdeccpair without input runs:

$ kdeconnect -d "$(./kdecclist)" --pair

While running $ ./kdeccpair with input effectively runs:

$ kdeconnect -d "$1" --pair

kdeccunpair

$ ./kdeccunpair

The kdeccunpair script works by calling kdeconnect-cli's default unpairing method, so in effect running $ ./kdeccunpair without input runs:

$ kdeconnect -d "$(./kdecclist)" --unpair

While running $ ./kdeccunpair with input effectively runs:

$ kdeconnect -d "$1" --unpair

kdeccping

$ ./kdeccping

The kdeccping script calls:

$ kdeconnect-cli -d "$(./kdecclist)" --ping

If there is no user input. While if there is input it runs:

$ kdeconnect-cli -d "$(./kdecclist)" --ping-msg "$1"

TODO:

  • A script for --refresh
  • A script for --share <path>
  • A script for --list-notifications
  • A script for --lock
  • A script for -a, --list-avilable
  • Make scripts not use ./ for execution
  • Create Makefile for install

About

A series of bash script wrappers for the CLI client for KDEconnect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published