Configuration for joplin

This commit is contained in:
2021-06-14 22:27:12 +01:00
parent 90b24b389a
commit cf19d6f5a9
5 changed files with 43 additions and 11 deletions

View File

@@ -0,0 +1,24 @@
[
{ "keys": [":", ";"], "type": "function", "command": "enter_command_line_mode" },
{ "keys": ["TAB", "RIGHT", "l"], "type": "function", "command": "focus_next" },
{ "keys": ["SHIFT_TAB", "LEFT", "h"], "type": "function", "command": "focus_previous" },
{ "keys": ["UP", "k"], "type": "function", "command": "move_up" },
{ "keys": ["DOWN", "j"], "type": "function", "command": "move_down" },
{ "keys": ["PAGE_UP", "gg"], "type": "function", "command": "page_up" },
{ "keys": ["PAGE_DOWN", "G"], "type": "function", "command": "page_down" },
{ "keys": ["ENTER"], "type": "function", "command": "activate" },
{ "keys": ["DELETE", "BACKSPACE", "dd"], "type": "function", "command": "delete" },
{ "keys": [" "], "command": "todo toggle $n" },
{ "keys": ["n", "]"], "type": "function", "command": "next_link" },
{ "keys": ["b", "["], "type": "function", "command": "previous_link" },
{ "keys": ["o"], "type": "function", "command": "open_link" },
{ "keys": ["tc"], "type": "function", "command": "toggle_console" },
{ "keys": ["tm"], "type": "function", "command": "toggle_metadata" },
{ "keys": ["/"], "type": "prompt", "command": "search \"\"", "cursorPosition": -2 },
{ "keys": ["mn"], "type": "prompt", "command": "mknote \"\"", "cursorPosition": -2 },
{ "keys": ["mt"], "type": "prompt", "command": "mktodo \"\"", "cursorPosition": -2 },
{ "keys": ["mb"], "type": "prompt", "command": "mkbook \"\"", "cursorPosition": -2 },
{ "keys": ["yn"], "type": "prompt", "command": "cp $n \"\"", "cursorPosition": -2 },
{ "keys": ["dn"], "type": "prompt", "command": "mv $n \"\"", "cursorPosition": -2 },
{ "keys": ["q"], "command": "exit"}
]

View File

@@ -88,5 +88,7 @@ setxkbmap gb
autoload edit-commandd-line; zle -N edit-command-line
bindkey '^e' edit-command-line
set -o ignoreeof # Stop CTRL-D from quitting
# Load syntax highlighting; should be last.
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null

6
.local/bin/remindernote Executable file
View File

@@ -0,0 +1,6 @@
#! /usr/bin/zsh
joplin use "Main"
joplin edit "Reminder"

View File

@@ -10,21 +10,21 @@ joplin config sync.target 5
joplin config sync.5.path "$path"
joplin config sync.5.username "$TOWERUN"
joplin config sync.5.password "$TOWERPW"
joplin sync &
joplin sync
echo "$path" | xclip -selection clipboard -i
# echo "$path" | xclip -selection clipboard -i
joplin-desktop &
# joplin-desktop &
clipnotify
# clipnotify
echo "$TOWERUN" | xclip -selection clipboard -i
# echo "$TOWERUN" | xclip -selection clipboard -i
clipnotify
# clipnotify
echo "$TOWERPW" | xclip -selection clipboard -i
# echo "$TOWERPW" | xclip -selection clipboard -i
read -n 1 -r -s -p $'Press enter when you have synced Joplin...\n'
# read -n 1 -r -s -p $'Press enter when you have synced Joplin...\n'
echo "" | xclip -selection clipboard -i
# echo "" | xclip -selection clipboard -i

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/zsh
# A dmenu wrapper script for system functions.
@@ -17,6 +17,6 @@ cmds="\
 reboot ${reb:-sudo -A reboot}
 shutdown ${shut:-sudo -A shutdown -h now}"
choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1
choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu -n)" || exit 1
`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2-`