Skip to content

Latest commit

 

History

History
211 lines (152 loc) · 3.95 KB

INSTALL.md

File metadata and controls

211 lines (152 loc) · 3.95 KB

OmNote Installation Guide

Quick Install (Recommended)

git clone https://github.com/litescript/OmNote.git
cd OmNote
./install.sh

That's it! OmNote will appear in your Omarchy launcher.


Requirements

System Dependencies

Arch Linux:

sudo pacman -S python python-gobject gtk4 libadwaita gtksourceview5

Ubuntu/Debian:

sudo apt install python3 python3-gi gir1.2-gtk-4.0 gir1.2-adw-1 gir1.2-gtksource-5

Fedora:

sudo dnf install python3 python3-gobject gtk4 libadwaita gtksourceview5

Python Version

  • Python 3.11+ required

Manual Installation

If you prefer to install manually:

1. Install Python Package

python3 -m pip install --user -e .

2. Install Desktop Integration

# Desktop file
install -Dm644 dist/dev.omarchy.OmNote.desktop \
    ~/.local/share/applications/dev.omarchy.OmNote.desktop

# Icon
install -Dm644 assets/dev.omarchy.OmNote.svg \
    ~/.local/share/icons/hicolor/scalable/apps/dev.omarchy.OmNote.svg

# Update desktop database
update-desktop-database ~/.local/share/applications

3. Verify Installation

omnote --help

Usage

Launch Methods

1. From Omarchy Launcher (recommended)

  • Press Super key → Type "OmNote" → Enter

2. From Terminal

omnote

3. Direct Python Module

python3 -m omnote

Command-Line Options

omnote --help              # Show help
omnote --system-theme      # Use system theme (ignore Omarchy themes)
omnote --no-watch          # Disable theme file watching
omnote [file.txt]          # Open specific file

Uninstallation

Quick Uninstall

cd OmNote
./uninstall.sh

Manual Uninstall

# Remove package
python3 -m pip uninstall omnote

# Remove desktop integration
rm ~/.local/share/applications/dev.omarchy.OmNote.desktop
rm ~/.local/share/icons/hicolor/scalable/apps/dev.omarchy.OmNote.svg
update-desktop-database ~/.local/share/applications

# Optionally remove config
rm -rf ~/.config/omnote

Configuration

OmNote stores its configuration in:

  • State file: ~/.config/omnote/state.json
  • Debug log: ~/.cache/omnote/debug.log

Theme Integration

OmNote automatically syncs with Omarchy themes. Priority order:

  1. Omarchy theme: ~/.local/state/omarchy/current/theme/ (Omarchy 4+), or ~/.config/omarchy/current/theme/ on older releases. Colors come from the theme's alacritty.toml, kitty.conf, or foot.ini.
  2. Alacritty config (~/.config/alacritty/alacritty.toml, following general.import)
  3. Kitty config (~/.config/kitty/kitty.conf, following include)
  4. OMNOTE_* environment variables (OMNOTE_BG, OMNOTE_FG, etc.)
  5. System GTK4 theme, including ~/.config/gtk-4.0/gtk.css (fallback)

To force system theme:

omnote --system-theme
# or
export OMNOTE_THEME_MODE=system

Legacy compatibility: Old MICROPAD_* environment variables still work.


Troubleshooting

"omnote: command not found"

Add ~/.local/bin to your PATH:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

"No module named 'gi'"

Install PyGObject:

# Arch
sudo pacman -S python-gobject

# Ubuntu/Debian
sudo apt install python3-gi

Theme not updating

Enable debug mode:

OMNOTE_DEBUG=1 omnote
# Theme detection messages ([OmNote:theme] ...) print to the terminal

App won't launch

Check system dependencies:

python3 -c "import gi; gi.require_version('Gtk', '4.0'); gi.require_version('GtkSource', '5'); from gi.repository import Gtk, Adw, GtkSource"

Development

Running from Source (No Install)

make run

Code Quality Checks

make lint    # Run ruff
make type    # Run mypy
make test    # Run pytest

Support


License

See LICENSE file.