From: Andrew Date: Sat, 23 Aug 2025 15:15:26 +0000 (-0400) Subject: obsidian config with hacky zoom fix X-Git-Url: http://git.skullheadx.com/nixos/projects.html?a=commitdiff_plain;h=5121ffd2e96387b5fae28ca0206385d3d3506c56;p=nixos.git obsidian config with hacky zoom fix --- diff --git a/obsidian.nix b/obsidian.nix index 4c168d7..1c55a90 100644 --- a/obsidian.nix +++ b/obsidian.nix @@ -1,19 +1,22 @@ { config, pkgs, ... }: - { programs.obsidian = { enable = true; + defaultSettings = { + app = { + showLineNumber = true; + vimMode = true; + }; + cssSnippets = [ + ./zoom.css + ]; + + }; vaults."Vault" = { enable = true; settings = { - app = { - showLineNumbers = true; - }; - appearance = { - zoomLevel = 1.50; - }; }; - }; }; + } diff --git a/zoom.css b/zoom.css new file mode 100644 index 0000000..220b1c3 --- /dev/null +++ b/zoom.css @@ -0,0 +1,22 @@ +/* zoom.css */ +/****************************************************************************/ +/* Adjust content and metadata styling. Not tabs. */ +/****************************************************************************/ +:root { + /* ADJUST THIS VALUE TO YOUR LIKING */ + --custom-font-size-base: 30px; + --custom-font-size: calc(1 * var(--custom-font-size-base)); + --custom-title-size: calc(2 * var(--custom-font-size-base)); +} + +.cm-contentContainer, +.metadata-container, +.is-live-preview, +.markdown-reading-view, +.markdown-preview-view { + font-size: var(--custom-font-size); +} + +.inline-title { + font-size: var(--custom-title-size); +}