]> Skullheadx's Git Forge - nixos.git/commitdiff
obsidian config with hacky zoom fix
authorAndrew <admonty1@protonmail.com>
Sat, 23 Aug 2025 15:15:26 +0000 (11:15 -0400)
committerAndrew <admonty1@protonmail.com>
Sat, 23 Aug 2025 15:15:26 +0000 (11:15 -0400)
obsidian.nix
zoom.css [new file with mode: 0644]

index 4c168d76616b10dda5e1c6622ac832a6fc5fc7a1..1c55a9007c99cefdc383168fcf07d6c9287d8fd5 100644 (file)
@@ -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 (file)
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);
+}