Skip to content
rabfultonPublic

About

A simple Linux note taking application for your system tray that supports markdown

Topics

Resources

Stars

16 stars

Watchers

0 watching

Forks

Latest commit

 

History

39 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrayMD

A lightweight GTK 3 notes application for Linux system trays, supporting live editing of markdown syntax.

TrayMD

Features

  • Live in-place markdown rendering - See formatting as you type
  • System tray integration - Quick access from your window manager
  • Auto-save - Notes are saved automatically (500ms after last keystroke)
  • Minimal UI - Clean toolbar with new note and navigation buttons
  • Lightweight - Pure C, no web technologies, fast startup
  • Hyperlink support - 'ctrl left click' links to open them
  • Multi-level undo/redo - 'ctrl+z' to undo, 'ctrl+shift+z' or 'ctrl+y' to redo

Supported Markdown

Syntax Description
# Header 1 Large bold header
## Header 2 Medium bold header
### Header 3 Small bold header
**bold** Bold text
*italic* Italic text
`code` Inline code
... Code block
- item List item
- [ ] task Unchecked task with a clickable checkbox
- [x] task Completed task with strikethrough text
> quote Block quote
[text](url) Link
--- Horizontal rule

Code blocks currently support a beta version of keyword highlighting for fenced languages c, java, and python.

Task lists also accept * and + bullets, indentation, and uppercase [X]. Click a checkbox to toggle completion. Press Enter to continue with a new unchecked task, or press Enter on an empty task to end the list. Task states are saved as plain Markdown.

Installation

Arch Linux (AUR)

Debian/Ubuntu (.deb)

Download the .deb from the GitHub Actions “Package” workflow artifacts (tag builds) and install it with:

sudo apt install ./traymd_*.deb

Fedora/RHEL (.rpm)

Download the .rpm from the GitHub Actions “Package” workflow artifacts (tag builds) and install it with:

sudo dnf install ./traymd-*.rpm

Usage

Run traymd to start the application. It will appear in your system tray.

  • Left-click tray icon: Show/hide the main window
  • New Note button: Create a new note
  • Arrow buttons: Navigate between notes

If your desktop environment forces a context menu on left-click (common with AppIndicator-based trays), you can switch tray backends:

  • traymd --tray-backend=statusicon (left-click toggles window)
  • traymd --tray-backend=appindicator (menu-first behavior; middle-click toggles)
  • traymd --no-tray (disable tray icon; subsequent launches toggle window visibility)

Notes are stored in ~/.local/share/traymd/notes/ as plain markdown files.

Heading, list bullet, checkbox, and syntax highlight accents have separate light and dark defaults. System mode follows the GTK theme. In Settings, leave Use theme default checked for automatic colors; uncheck it to choose a custom color that stays the same across themes. Checking it again restores automatic colors.

Existing settings remain compatible: saved colors matching the original defaults become automatic, while other colors are preserved as custom. Older settings did not record whether a default was explicitly chosen, so an old custom choice that exactly matches an original default is treated as automatic. The existing color keys remain readable by older TrayMD versions; new *_custom flags record the distinction. An older version that saves settings will discard these new flags.

Building From Source

make
sudo make install

Run make test to run the GTK editor regression tests (requires a display).

This installs:

  • Binary to /usr/local/bin/traymd
  • Desktop file to /usr/local/share/applications/traymd.desktop

Uninstallation

sudo make uninstall

Dependencies

Arch Linux

sudo pacman -S gtk3 libayatana-appindicator

Ubuntu/Debian

sudo apt install libgtk-3-dev libayatana-appindicator3-dev

Fedora

sudo dnf install gtk3-devel libayatana-appindicator-gtk3-devel

License

MIT License

Other Useful Projects

  • Try my lightweight markdown viewer ViewMD
  • A lightweight image viewer preditor
  • Try my AI panel plugin for XFCE XFCE Ask
  • For a feature complete AI application try out ChatGTK
  • A lightweight speech to text implementation Auriscribe
  • A lightweight local movie database and browser ReelVault

About

A simple Linux note taking application for your system tray that supports markdown

Topics

Resources

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages