From 81e8fa756e80bede3c515708252d935336b24358 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Wed, 29 Nov 2023 21:44:42 -0500 Subject: [PATCH] Add dccnt --- .config/dcnnt/conf.json | 14 +++++++ .config/dcnnt/devices/109589590.device.json | 7 ++++ .config/dcnnt/plugins/file.conf.json | 11 +++++ .config/dcnnt/plugins/nots.conf.json | 3 ++ .config/dcnnt/plugins/open.conf.json | 9 +++++ .config/dcnnt/plugins/rcmd.conf.json | 45 +++++++++++++++++++++ .config/dcnnt/plugins/sync.conf.json | 21 ++++++++++ 7 files changed, 110 insertions(+) create mode 100644 .config/dcnnt/conf.json create mode 100644 .config/dcnnt/devices/109589590.device.json create mode 100644 .config/dcnnt/plugins/file.conf.json create mode 100644 .config/dcnnt/plugins/nots.conf.json create mode 100644 .config/dcnnt/plugins/open.conf.json create mode 100644 .config/dcnnt/plugins/rcmd.conf.json create mode 100644 .config/dcnnt/plugins/sync.conf.json diff --git a/.config/dcnnt/conf.json b/.config/dcnnt/conf.json new file mode 100644 index 0000000..11dffc3 --- /dev/null +++ b/.config/dcnnt/conf.json @@ -0,0 +1,14 @@ +{ + "log": { + "path": "$HOME/.log/dcnnt.log", + "size": 262144, + "count": 3 + }, + "self": { + "uin": 450, + "name": "envy", + "description": "", + "password": "lttrtlhcea" + }, + "port": 5040 +} \ No newline at end of file diff --git a/.config/dcnnt/devices/109589590.device.json b/.config/dcnnt/devices/109589590.device.json new file mode 100644 index 0000000..8f3310a --- /dev/null +++ b/.config/dcnnt/devices/109589590.device.json @@ -0,0 +1,7 @@ +{ + "description": "", + "name": "Pixel 6A", + "password": "P[B@743efe4", + "role": "client", + "uin": 109589590 +} \ No newline at end of file diff --git a/.config/dcnnt/plugins/file.conf.json b/.config/dcnnt/plugins/file.conf.json new file mode 100644 index 0000000..f08feb4 --- /dev/null +++ b/.config/dcnnt/plugins/file.conf.json @@ -0,0 +1,11 @@ +{ + "download_directory": "/home/tyler/Downloads", + "shared_dirs": [ + { + "path": "/home/tyler/Downloads", + "name": "Shared", + "glob": "*", + "deep": 1024 + } + ] +} diff --git a/.config/dcnnt/plugins/nots.conf.json b/.config/dcnnt/plugins/nots.conf.json new file mode 100644 index 0000000..752f26a --- /dev/null +++ b/.config/dcnnt/plugins/nots.conf.json @@ -0,0 +1,3 @@ +{ + "cmd": "notify-send -i '{icon}' '{title}' '{text}'" +} \ No newline at end of file diff --git a/.config/dcnnt/plugins/open.conf.json b/.config/dcnnt/plugins/open.conf.json new file mode 100644 index 0000000..3af6d96 --- /dev/null +++ b/.config/dcnnt/plugins/open.conf.json @@ -0,0 +1,9 @@ +{ + "file": { + "download_directory": "/tmp/dcnnt/to_open", + "default_cmd": "xdg-open \"{path}\"" + }, + "link": { + "default_cmd": "xdg-open \"{url}\"" + } +} \ No newline at end of file diff --git a/.config/dcnnt/plugins/rcmd.conf.json b/.config/dcnnt/plugins/rcmd.conf.json new file mode 100644 index 0000000..f4689d1 --- /dev/null +++ b/.config/dcnnt/plugins/rcmd.conf.json @@ -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" + } + ] +} diff --git a/.config/dcnnt/plugins/sync.conf.json b/.config/dcnnt/plugins/sync.conf.json new file mode 100644 index 0000000..db20b0e --- /dev/null +++ b/.config/dcnnt/plugins/sync.conf.json @@ -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 + } +} \ No newline at end of file