Skip to content

About

Always-on-desktop sticky notes for Windows - Lightweight always-on-desktop sticky notes app for Windows. Offline, WPF (.NET 8), no telemetry.

Topics

Resources

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Repository files navigation

PermaNotes

Always-on-desktop sticky notes for Windows — lightweight, offline, and built to stay out of your way.

A lightweight, always-on-desktop sticky note app for Windows. Notes behave like desktop gadgets — they remain visible when you press Win + D (Show Desktop), but normal application windows draw over them.

PermaNotes pins rich-text sticky notes directly to your Windows desktop layer, so they're always visible (even alongside your icons, shown on Win+D) but never in the way of your open windows. Built in WPF on .NET 8, fully local — no accounts, no cloud sync, no telemetry.

Features

  • Always-on-Desktop: Notes sit above wallpaper icons but below active application windows (survives Win+D).
  • Images & screenshots: Paste or drop images into notes, resize them, and open a dedicated viewer.
  • Live Markdown & Rich Text: Rich text editing with instant markdown expansions (#, ---, **bold**, ==highlight==, -->).
  • Interactive Checklists: Clickable task lists (☐ / ☑) with single-click toggling and smart keyboard triggers ([] ).
  • 8-Way Resizing: Resize notes from any edge or corner.
  • Smart Paste Sanitization: Automatically strips foreign background fills from external apps while preserving intentional highlights.
  • Adaptive Contrast & Custom Caret: High-contrast I-Beam cursor and dynamic text contrast that adapts to light/dark note themes.
  • System Tray & Note Manager: Quick tray access, global hotkeys, search, and centralized note management.
  • Offline storage: Notes and images stay in your chosen storage folder and save automatically.

PermaNotes also includes automatic hyperlinks, a welcome tour, a Help & Features window organized by topic, and a dark Settings window.

Images and screenshots

Capture a screenshot with Win+Shift+S and paste it into a note with Ctrl+V, or drop a PNG, JPEG, BMP, or GIF from File Explorer. Imported files can be up to 25 MiB and 40 megapixels. GIF previews use the first frame.

  • Right-click an image to set its width, copy it, export PNG or JPEG, save the original format, reload or replace its file, or remove it from the note.
  • Double-click to open the viewer. Drag to pan, use Ctrl + mouse wheel to zoom, and choose Fit or 1:1. The viewer loads original pixels when extra detail is needed. Copy and export use the full-resolution image.
  • Undo and redo cover text and image edits. Note previews stay visible during resizing. Hide All Notes releases hidden windows and previews while preserving Undo for the current session.

See implementation and verification for storage compatibility, memory measurements, and release checks.

Why PermaNotes?

Unlike Windows Sticky Notes or browser-based note apps, PermaNotes notes live directly on your desktop layer, so they're always visible without cluttering your taskbar or stealing window focus.

Normal Windows (Chrome / VS Code / Explorer)
              ↓
        PermaNotes  ← visible on Win+D, hidden under apps
              ↓
        Desktop Wallpaper

✨ Feature Overview

Core Behaviour

Feature Detail
Desktop persistence Notes survive Win+D and sit behind normal windows via the Progman/WorkerW shell technique
8-Way Perimeter Resizing Grab any of the 4 edges or 4 corners to resize smoothly without DWM flicker; enforced min dimensions (200×150 px)
Multiple notes Each note has its own position, size, colour, opacity, and content
Auto-save Debounced saves use atomic file replacement and keep recovery backups
Position/size restore All notes reopen exactly where you left them across multiple monitors
Single-instance Only one copy of PermaNotes runs at a time
No admin required Runs entirely in user space
No network access Completely local — no telemetry

Rich Text & Live Markdown Engine

Feature Detail
Live Markdown Triggers Instant formatting on Space or Enter for headings (# ), dividers (---), task boxes ([] ), formatting (**bold**), and smart arrows (--> to →)
Interactive Checklists Real-time checkboxes (☐ / ☑) with pixel-perfect hitboxes and dedicated hover cursor detection
Smart Paste Sanitization Intercepts clipboard paste to strip foreign white/dark background fills from external tools (browsers, IDEs) while preserving yellow highlights
Bold / Italic / Underline Standard formatting via toolbar, context menu, or standard Ctrl shortcuts
Hyperlinks Detects typed and pasted URLs. Click a link for Open and Copy, or Ctrl+click to open it directly.
Strikethrough Toggle via toolbar button (S̶), context menu, or Ctrl+Shift+X (also via ~~text~~)
Highlight Toggles yellow highlight on selection — Ctrl+H, toolbar, context menu, or ==text==
Font size Absolute sizes (10–32 px) via context menu; relative ±2 via toolbar A↑/A↓
Bullet list One-click bullet list in the toolbar
Undo / Redo Ctrl+Z / Ctrl+Y — also exposed as ↶/↷ buttons in the popup toolbar
Insert Timestamp Inserts yyyy-MM-dd HH:mm at the caret — Ctrl+T, toolbar, or context menu

Formatting Popup

A floating toolbar appears automatically whenever you select text. It includes: B · I · U · S̶ · 🖍 Highlight · 🔵 Bullets · A↑ · A↓ · ↶ · ↷ · 🕐


Note Management

Feature Detail
Note Manager Central dashboard listing all notes (open + closed) with search, colour dot, status, and last-updated timestamp. Double-click to activate a note.
New Note Header button, context menu, tray icon, or Ctrl+N
Duplicate Context menu → Duplicate — clones content and position
Close note Hides the note (not deleted); reopen from Note Manager
Delete note Context menu → Delete Note — permanent, with confirmation prompt
Export as text Context menu → Export as Text File — saves plain text to a file
Lock note Makes the note read-only; disables all editing, resizing, and the format popup. Ctrl+Shift+L or the 🔒 header button

Appearance & UX

Feature Detail
9 preset colours Yellow, Orange, Green, Teal, Blue, Purple, Pink, White, Gray
Custom colour Full colour wheel picker (context menu → Color → Custom Color…)
Opacity control 100% down to 30% in 10% steps (context menu → Opacity)
Adaptive contrast Text and icon colours automatically switch to white on dark backgrounds
High-Contrast I-Beam Custom high-contrast text caret that isolates over scrollbars and checkbox controls
Slim Expanding Scrollbar Ultra-thin idle profile that smoothly widens on hover/drag for effortless grabbing
Adaptive border Border colour is derived from the note's background for a cohesive look
Always on Top Per-note toggle — floats above all windows; detached from desktop layer

Keyboard Shortcuts & Markdown Syntax

⌨️ Keyboard Shortcuts

Shortcut Action
Ctrl+N New note
Ctrl+H Toggle highlight on selected text
Ctrl+Shift+X Toggle strikethrough on selected text
Ctrl+Shift+L Toggle note lock (read-only)
Ctrl+T Insert timestamp at caret
Ctrl+Z / Ctrl+Y Undo / Redo
Ctrl+B / Ctrl+I / Ctrl+U Bold / Italic / Underline
Ctrl+Alt+N Global — create new note from anywhere
Ctrl+Alt+S Global — search notes

⚡ Live Markdown Triggers (Triggered on Space / Enter)

Syntax Trigger Result
# + Space Heading 1 (Large Bold)
## + Space Heading 2 (Medium Bold)
### + Space Heading 3 (Subheading)
[] or [ ] + Space Interactive Unchecked Task Box (☐ )
[x] + Space Interactive Checked Task Box (☑ )
--- or *** + Enter Inline Horizontal Divider Rule
**text** + Space Bold text
*text* + Space Italic text
~~text~~ + Space Strikethrough text
==text== + Space Yellow highlighted text
[text](url) + Space Hyperlink
--> / ==> / ---> + Space Smart arrows (→, ⇒, ⟶)

System Integration

Feature Detail
System tray icon Create a note, open Note Manager, show or hide all notes, open Settings, or exit
Global hotkeys Ctrl+Alt+N creates a note and Ctrl+Alt+S searches notes while PermaNotes is in the background
Reminders Schedule a Windows notification for a note
Click-through and capture controls Let clicks pass through a note or hide it from supported screen capture
In-app guide The welcome tour introduces the app. Open Help & Features from a note’s right-click menu for the full guide.
Start with Windows Optional toggle in Settings (written to HKCU registry — no admin required)
Per-Monitor V2 DPI Crisp rendering at 100%, 125%, 150%, 200% scale
Multi-monitor support Notes live on any monitor; orphaned notes auto-relocate to the primary
Explorer restart guard Re-attaches all note windows to WorkerW when Windows Explorer restarts

Requirements

  • Windows 10 / 11 (x64)
  • .NET 8.0 Runtime (bundled in self-contained release builds)

Build & Run

Install .NET 8 SDK (user-level, no admin)

powershell -ExecutionPolicy Bypass -Command "& { iwr https://dot.net/v1/dotnet-install.ps1 -OutFile dotnet-install.ps1; .\dotnet-install.ps1 -Channel 8.0 }"

Or use the user-local dotnet if already installed:

& "$env:LOCALAPPDATA\Microsoft\dotnet\dotnet.exe" run

Development run

dotnet run

To test with separate development notes/settings and force the welcome tour, exit any existing development instance from its tray menu, then run:

& "$env:LOCALAPPDATA\Microsoft\dotnet\dotnet.exe" run --project .\DesktopNotes.csproj -c Debug -p:DefineConstants=DEV -- --tour

The welcome note is created when storage is empty. The welcome tour normally appears only for a first launch or a newer app version; --tour opens it again without resetting notes or settings.

Publish standalone executable

dotnet publish -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -o dist/

Or run the automated build script (which automatically terminates running instances and packages the output):

.\build.ps1

Then run dist/PermaNotes.exe — no .NET installation needed on the target machine.


Architecture

DesktopNotes/
├── App.xaml / App.xaml.cs              # Central controller: tray, hotkeys, note lifecycle, persistence
├── Models/
│   └── Note.cs                         # Note data model (Id, Title, RtfText, position, colour, flags)
├── Views/
│   ├── NoteWindow.xaml/.cs             # Sticky note window — 8-way resize, rich text, live markdown
│   ├── NoteManagerWindow.xaml/.cs      # Note Manager dashboard — search, open/close, delete
│   ├── SettingsWindow.xaml/.cs         # Settings dialog + AppSettings persistence
│   └── SearchWindow.xaml/.cs          # Full-text search across all notes
├── Services/
│   ├── DesktopWindowService.cs         # Progman/WorkerW shell integration
│   ├── NoteStorageService.cs           # Atomic JSON persistence with debounced auto-save
│   └── StartupService.cs              # "Start with Windows" via HKCU registry
├── Interop/
│   └── NativeMethods.cs               # Win32 P/Invoke declarations
├── app.manifest                        # No-admin, Windows 10/11 compatibility declaration
└── docs/
    ├── index.html                      # Promotional website & download portal
    └── desktop-integration.md          # Technical deep-dive on shell integration

Key Design Decisions

Decision Rationale
ShutdownMode.OnExplicitShutdown App stays alive via tray even when all note windows are closed
Event-based window ↔ App communication NoteWindow raises events; App wires them up — clean separation of concerns
Progman/WorkerW owner (not SetParent) Preserves WPF's DirectX rendering pipeline while keeping notes on the desktop layer
Debounced save (500 ms) Avoids hammering disk on every keystroke while keeping data fresh
RTF + plain-text storage RTF is the canonical format; plain text is kept for search/preview
TextPointer walk for highlight detection GetPropertyValue is unreliable on mixed-format RTF selections; run-level walking is accurate
Custom 8-Way Thumb Grips Replaces WindowChrome resizing to prevent DWM composition flickers and crash bugs on transparent windows

Desktop Integration

The app uses the Progman/WorkerW owner technique:

  1. Sends message 0x052C to Progman to spawn a WorkerW behind desktop icons.
  2. Sets each note window's owner (not parent) to the WorkerW via GWLP_HWNDPARENT.
  3. This makes notes follow the desktop's show/hide behavior during Win + D.

Using the owner relationship (not SetParent) preserves WPF's DirectX rendering pipeline and avoids z-order artifacts.

See docs/desktop-integration.md for full technical details.


Data Storage

File Location Purpose
index.json Note storage folder Note metadata and searchable text
Notes/*.rtf Note storage folder Rich text and image references
Images/<note-id>/ Note storage folder Original image assets
settings.json %LOCALAPPDATA%\DesktopNotes\ App-wide settings (default colour, opacity, startup, storage path)
app_trace.log %LOCALAPPDATA%\DesktopNotes\ Debug trace log (auto-rotated at 512 KB)

The default note storage folder is Documents\PermaNotes. Change it in Settings to move notes and images together. DEV builds use Documents\PermaNotes_Dev and separate settings.


Known Limitations

  • Desktop integration relies on undocumented Windows shell internals (Progman/WorkerW) which could change in future Windows updates.
  • Notes appear on the virtual desktop where they were created; virtual desktop switching is not explicitly managed.
  • The GWLP_HWNDPARENT owner approach may not survive all Win+D edge cases on all Windows 11 builds.

License

PermaNotes is licensed under the GNU General Public License, version 3 (GPL-3.0-only). See LICENSE for the full license text.

About

Always-on-desktop sticky notes for Windows - Lightweight always-on-desktop sticky notes app for Windows. Offline, WPF (.NET 8), no telemetry.

Topics

Resources

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages