Add initial configs for obsidian and copy logic for files

obsidian seems to only have a per-vault config approach, so my approach
is to define settings within .config/obsidian, then copy to vault dirs
This commit is contained in:
2025-10-02 15:06:13 -05:00
parent 26028eb228
commit a3707b5ca9
7 changed files with 93 additions and 11 deletions

View File

@@ -42,6 +42,11 @@ copy_dir src_files/.config $XDG_CONFIG_HOME
copy_dir src_files/.local/bin $DIR_BIN copy_dir src_files/.local/bin $DIR_BIN
copy_dir src_files/.local/scripts $DIR_SCRIPTS copy_dir src_files/.local/scripts $DIR_SCRIPTS
for obs_dir in "${OBSIDIAN_WORKSPACES_TO_CONFIGURE[@]}"; do
[[ ! -d "$obs_dir/.obsidian" ]] && mkdir "$obs_dir/.obsidian"
copy_dir $XDG_CONFIG_HOME/obsidian "$obs_dir/.obsidian"
done
[[ "$BOX_SETUP_OS" = "macos" ]] && { [[ "$BOX_SETUP_OS" = "macos" ]] && {
copy_dir src_files/executable_wrappers_macos $DIR_BIN copy_dir src_files/executable_wrappers_macos $DIR_BIN
link_dir "$XDG_CONFIG_HOME/GIMP" "$HOME/Library/Application Support/GIMP" link_dir "$XDG_CONFIG_HOME/GIMP" "$HOME/Library/Application Support/GIMP"

View File

@@ -38,18 +38,22 @@ idea from the ThePrimeagen: designated workspace/label/desktop per app/purpose
- key bindings are set for moving window focus up/down (vim style: mod + k/j) - key bindings are set for moving window focus up/down (vim style: mod + k/j)
- the mental model here is that every fullscreen window is in a stack, so i can move - the mental model here is that every fullscreen window is in a stack, so i can move
focus up and down the stack focus up and down the stack
- for any app which can have tabs, pair the above mental model of a stack with a mental - for apps with tabs, pair the above mental model of a stack with a mental model of a
model of a circular-linked list being in any position in that stack circular list being in any position in that stack
- so, keybindings are also set for previous/next tab (vim style: mod + h/l) - so, keybindings are also set for previous/next tab (vim style: mod + h/l)
- specifically, mod+h is mapped to ctrl+shift+tab and mod+l is mapped to ctrl+tab,
so it should work anywhere ctrl+tab and ctrl+shift+tab work
- all this said, it is better to keep things simple when possible and avoid having too - all this said, it is better to keep things simple when possible and avoid having too
many windows and/or tabs open at one time; however, with the designated purpose for many windows and/or tabs open at one time; however, with the designated purpose for
each workspace and the mental models above, it rarely takes me long to find what i need each workspace and the mental models above, it rarely takes me long to find what i need
- examples:
## examples cases
- if i want a particular browser window, i jump to workspace 9, then move focus - if i want a particular browser window, i jump to workspace 9, then move focus
up or down until i get to the window i want; if the window is right but i need up or down until i get to the window i want; if the window is right but i need
a different tab, i then just move "right or left" through my tabs a different tab, i then just move "right or left" through my tabs
- if i want a particular music-playing app/tui, i jumpt to workspace 4 and move - if i want a particular music-playing app/tui, i jumpt to workspace 4 and move
focus up or down as needed to find it focus up or down as needed to find it
- exception case: if i want a particular terminal workspace, i jump to workspace - variation case: if i want a particular terminal workspace, i jump to workspace
8, but then i'm in tmux land and navigate via the methods i've set up for tmux 8, but then i'm in tmux land and navigate via the methods i've set up for tmux

View File

@@ -0,0 +1,17 @@
{
"defaultViewMode": "preview",
"showLineNumber": true,
"spellcheck": false,
"autoPairBrackets": false,
"autoPairMarkdown": false,
"useTab": false,
"autoConvertHtml": false,
"vimMode": true,
"trashOption": "none",
"newFileLocation": "folder",
"newFileFolderPath": "inbox",
"showUnsupportedFiles": true,
"attachmentFolderPath": "inbox",
"showInlineTitle": false,
"readableLineLength": false
}

View File

@@ -0,0 +1,4 @@
{
"theme": "obsidian",
"accentColor": "#2f930e"
}

View File

@@ -0,0 +1,33 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"footnotes": false,
"properties": false,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false,
"bases": true,
"webviewer": false
}

View File

@@ -0,0 +1,16 @@
{
"markdown:toggle-preview": [
{
"modifiers": [
"Mod"
],
"key": "E"
},
{
"modifiers": [
"Alt"
],
"key": "R"
}
]
}

View File

@@ -31,6 +31,9 @@ export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # may already be set, set anyway
# git # git
export GIT_EDITOR="$EDITOR" export GIT_EDITOR="$EDITOR"
# obsidian
export OBSIDIAN_WORKSPACES_TO_CONFIGURE=("$DIR_NOTES")
# clean-up of home dir # clean-up of home dir
export __CF_USER_TEXT_ENCODING="0x0:0x0" export __CF_USER_TEXT_ENCODING="0x0:0x0"