Add dccnt

This commit is contained in:
Tyler Perkins 2023-11-29 21:44:42 -05:00
parent c3a9f0dd1c
commit 81e8fa756e
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
7 changed files with 110 additions and 0 deletions

14
.config/dcnnt/conf.json Normal file
View File

@ -0,0 +1,14 @@
{
"log": {
"path": "$HOME/.log/dcnnt.log",
"size": 262144,
"count": 3
},
"self": {
"uin": 450,
"name": "envy",
"description": "",
"password": "lttrtlhcea"
},
"port": 5040
}

View File

@ -0,0 +1,7 @@
{
"description": "",
"name": "Pixel 6A",
"password": "P[B@743efe4",
"role": "client",
"uin": 109589590
}

View File

@ -0,0 +1,11 @@
{
"download_directory": "/home/tyler/Downloads",
"shared_dirs": [
{
"path": "/home/tyler/Downloads",
"name": "Shared",
"glob": "*",
"deep": 1024
}
]
}

View File

@ -0,0 +1,3 @@
{
"cmd": "notify-send -i '{icon}' '{title}' '{text}'"
}

View File

@ -0,0 +1,9 @@
{
"file": {
"download_directory": "/tmp/dcnnt/to_open",
"default_cmd": "xdg-open \"{path}\""
},
"link": {
"default_cmd": "xdg-open \"{url}\""
}
}

View File

@ -0,0 +1,45 @@
{
"menu": [
{
"name": "Sync operations"
},
{
"name": "pass sync",
"method": "shell",
"cmd": "pass git push"
},
{
"name": "Administration"
},
{
"name": "Shutdown",
"method": "shell",
"cmd": "doas shutdown -h now"
},
{
"name": "Restart",
"method": "shell",
"cmd": "doas restart"
},
{
"name": "Lock",
"method": "shell",
"cmd": "lock_with_cam.sh"
},
{
"name": "Volume up",
"method": "shell",
"cmd": "pactl -- set-sink-volume 0 +5%"
},
{
"name": "Volume down",
"method": "shell",
"cmd": "pactl -- set-sink-volume 0 -5%"
},
{
"name": "Toggle mute",
"method": "shell",
"cmd": "pactl -- set-sink-mute 0 toggle"
}
]
}

View File

@ -0,0 +1,21 @@
{
"dir": [
{
"name": "Temporary",
"path": "/tmp/dcnnt/sync/files",
"on_done": null
}
],
"file": [
{
"name": "Example",
"path": "/tmp/dcnnt/sync/dcnnt-example-file.txt",
"on_merge": "cat \"{local}\" \"{remote}\" > \"{output}\"",
"on_done": "true"
}
],
"contacts": {
"path": "/tmp/dcnnt/sync/contacts",
"backup_count": 3
}
}