Skip to content

mini-oled-dock 1.5.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 16:57
· 8 commits to main since this release
7377d05

Changes since 1.4.3: a launcher on a shortcut key (off until you switch it on), fixes to the way the dock gives the screen edge back to Windows, and a complete third-party licence file.

The launcher

A search box that opens on a key, finds an app, a window, a setting, a file, a command or an answer, and starts it. It is off by default: the launcher itself adds no hook, timer or process until you pick a shortcut (see "Start menu and memory" below for what changes for everyone).

Switch it on. Settings → Launcher → Shortcut: Alt+Space or Alt+Shift+Space. Or edit config.json:

"launcher": { "chord": "alt+space" }

Until you answer it, a Start search begins with a row offering the same choice (Use Alt+Space, Use Alt+Shift+Space, Don't show again). While the shortcut is set, the window menu that Alt+Space normally opens stays reachable: type window menu in the launcher. The launcher opens on the display under the pointer; press the shortcut again or Esc to close it. System keys such as CapsLock, volume, media and PrintScreen pass straight through to Windows, also in the half second after the shortcut.

What it searches (type, and every kind answers together; the best name match comes first):

  • Apps: everything in the native Start menu, Store apps included, with the same synonyms and typo handling as the dock's Start search. Apps you pick often rise.
  • Windows: < lists the open windows (switch, or Ctrl+W to close one); a running app's row switches to its most recent window.
  • Settings: $ or a plain word; the pages of Windows Settings.
  • Files and folders: file and a space, or a plain word (a few rows). Names that start with the typed words, found through the Windows Search index, in your profile, the Start menu folders and your Desktop, Documents, Downloads, Pictures, Music and Videos folders wherever they are (moved to another local drive too; a personal folder set to the top of a drive (D:\) is searched only when you list it in file_folders, and one on a network share is not searched), and in up to 8 folders of your own listed in config.json ("launcher": { "file_folders": ["D:\\Archive", "E:\\"] }; a whole data drive is allowed, network paths, short ~1 names, the Windows and Program Files folders and other accounts' profiles never are, and an entry the dock refuses is ignored and counted in dock.log). File search runs with the dock's administrator rights, so in a folder you list in file_folders it can show the names of files another account of this PC keeps there: only you and other administrators can change that list (other accounts can only read config.json), your personal folders never count a whole drive, and no folder searched may hold or lie in another account's profile, the Windows folder or Program Files. It is not a content or mid-word search, and it needs the Windows Search service. A short-lived helper process does the search; it exists only while the launcher is open. Not available under Administrator protection.
  • Calculator and units: = or just type: 12*(3+4)/2,5, sqrt(2), 0xff in dec, 5 km in miles (length, mass, temperature, volume, area, speed, time, data, angle; English and Italian unit names; no currencies). Enter copies the answer; for a conversion, the number without its unit.
  • Date and time: ), or the word "date" or "time" (also "now" and "today", and the week): today's date, the time, ISO week, day of the year, UTC and Unix time, in your locale. Enter copies the line. When you type one of those words among other results (Windows Settings has several pages named "date and time"), the date or time row is always on the screen, in third place at worst; the first two rows stay what ranking gave.
  • Commands: Lock, Sleep, Restart, Shut down, Sign out, Window menu, Open Registry Editor, Clipboard history (opens Windows' own history, Win+V).
  • Run and web: > runs a command line (a console program runs in a console that stays open); ?? searches the web (Google by default; Bing or DuckDuckGo in Settings → Launcher; your own https template in the config file); a typed URL or path opens as is.
  • Aliases: your own words for a program, folder, page or link (they are saved in config.json, which other accounts of this PC can read). Add them from the row's action list (Ctrl+K → Assign alias) or in the config:
"launcher": { "chord": "alt+space", "aliases": {
  "docs":    "https://example.com",
  "notepad": "app:Microsoft.WindowsNotepad_8wekyb3d8bbwe!App",
  "work":    "D:\\Projects"
} }

Keys: Enter opens, Shift+Enter opens a new instance, Ctrl+Enter shows the file in its folder, Ctrl+C copies, Ctrl+K opens the action list of the row, Tab completes, Shift+Delete forgets a row, Ctrl+, opens Settings → Launcher. Every prefix is a setting (launcher.prefixes) and every kind can be switched off one by one.

What it never does. What you start from it is started at your normal rights through the desktop shell, as a pinned app is. A program that itself asks for administrator rights (Registry Editor does) shows the usual UAC prompt, as from Start. The launcher asks for elevation only when you choose to: Ctrl+Shift+Enter on a row, or Run as administrator in an app's action list (Ctrl+K); both go through the usual UAC prompt. An alias, a typed line or a search result never runs elevated without a UAC prompt. The launcher's helpers are copies of the dock itself and read only the Start catalogue and its icons, the Settings list, the search index and Windows' file-type associations; the dock treats everything they send back as untrusted. What you type is never written to dock.log, and neither is what you pick (a launch is logged by its kind and length only). Two things are kept per user in %ProgramData%\mini-oled-dock\cache\<your account>\ (readable only by you and administrators): the last 50 command lines you ran (with > or from a Run row; a line typed with a leading space is not kept), and the items you pick, as hashes with no text. Learn from what I pick switches both off and deletes them at once (shortcut set or not), Forget history clears them, and Shift+Delete forgets one row. Aliases you save are kept in config.json with your other settings; that file is readable by the other accounts of this PC, so keep nothing private in an alias. The clipboard is read only when you paste into the launcher yourself, and a paste that the source marked private (password managers do) is refused. The launcher makes no network call; Web search hands the address to your browser.

What it costs (measured on pre-release builds of 1.5.0 on the developer's machine, Windows 11 build 26300, with a measuring probe, synthetic keys and three monitors, while other programs were compiling on the same PC; nothing here is a promise for your machine):

  • Per key: at most 3.4 ms of work for any key, even while compilers ran; a key waited in the queue 0.47 ms at the median and 1.9 ms or less at the 95th percentile (2.9 ms at worst). Nothing on the per-key path touches the disk.
  • At rest, with the launcher on and closed: 36 KB more memory than with it off (30 minutes hidden, same script), no extra thread, 5 to 8 more handles. Hidden wake-ups are the same as in 1.4.3. The launcher adds nothing while no shortcut is set.
  • While open it uses more memory (the panel and the icons it shows): the peak was 0.6 to 2.5 MB above the level before the open (budget 3 MiB), given back on close. The Start catalogue, Settings list and icons are read by short-lived helper processes that exit when done.

Leaving PowerToys Command Palette. Both want Alt+Space. If Command Palette runs, the launcher yields the key while Command Palette answers it, and shows once a notice with the choice (take Alt+Space, leave it, or use Alt+Shift+Space). To use only the launcher: in PowerToys → Command Palette, turn its shortcut off or turn Command Palette off, then choose "Take Alt+Space". The dock never reads, stops or changes PowerToys.

Known limits. No input-method (IME) composition in the field yet; file search needs the dock installed (dock.exe --install): a dock started from another folder shows no file rows; it is off under Administrator protection and returns nothing if the Windows Search service is stopped; files outside your profile, the Start menu, your six personal folders and the folders you list in launcher.file_folders are not searched, nor is anything on a network share; screen reader support is best effort (the window is named "Launcher", results are not announced); exclusive full-screen games keep Alt+Space, and over borderless full-screen windows the shortcut passes through unless you choose "Open" in Settings. A run line that holds a %VAR% is run through cmd.exe (at your normal rights) so the variable is expanded with your own environment; as with a line typed at a command prompt, Windows' downloaded-file warning does not appear for a program named that way, and a console window may flash. Paths and alias targets that go through Explorer keep that warning.

Start menu and memory

These changes apply to everyone, with the launcher on or off. The Start menu now makes its icons and its settings list in short-lived copies of dock.exe that exit when done. COM libraries it no longer needs are unloaded about 11 minutes later. The daily update check now asks GitHub from a short-lived copy of dock.exe (--update-fetch) that exits when it has the answer, for every user, with the launcher on or off. Until you answer it, Start's search results begin with a row offering the launcher (Use Alt+Space / Use Alt+Shift+Space / Don't show again).

Taskbar fixes

  • The dock no longer freezes when the window in front has stopped responding. In 1.4.3, opening Start (or taking the focus back) while the foreground program was hung could hold the dock for as long as that program stayed hung (28 s in a test); the dock's watchdog then took the dock for dead, gave the Windows taskbar back and the dock stopped hiding it. The dock now first checks that the window answers (50 ms) and, if it does not, takes the focus another way that does not wait for it. Every other wait the dock makes on a window of another program (the window-menu commands to an app, the messages to Explorer's taskbar, the hand-over to another dock's tray host) now ends at its time limit even while other programs keep sending the dock messages, so a window that has stopped responding can no longer hold the dock past it. Until a window that has stopped responding wakes, the dock cannot hand the focus back to it. This applies with the launcher on or off.
  • The reserved strip is released when the program holding the screen edge leaves. In 1.4.3 the dock leaves the Windows auto-hide setting alone when another program's bar already holds an edge; if that program later exited, Windows could keep a strip at the screen edge free. The dock now asks for auto-hide again when the holder's window is gone.
  • One WinEvent hook instead of two. The taskbar code now shares the window-event hook the apps list already installs, so the dock holds one hook less.
  • A safer uninstall. --uninstall --remove now stops with an error and deletes nothing if Explorer did not answer the taskbar restore; run dock.exe --restore, then uninstall again.

Third-party notices

THIRD_PARTY_NOTICES.md now carries the full licence texts: the EarTrumpet licence verbatim, the licences of every Rust crate in the build (generated from the lock file), and the Rust standard library with the crates it links. The release checksum file (dock.exe.sha256) is written with LF-only line endings so verification gives the same result on every system.

Install / update

Requires Windows 11. Download dock.exe and run it from a terminal:

.\dock.exe --install

It asks for administrator rights, replaces the installed dock and restarts it. Settings are kept. Or use Settings → Updates → Update now from a running 1.4.2 or 1.4.3. The launcher stays off until you choose a shortcut.

Going back to 1.4.x. 1.4.x does not know the launcher settings: the first time it writes config.json it drops the launcher settings and your aliases. Copy config.json somewhere first if you may come back.


SHA256 of dock.exe: 5c593bfa188c099035a32a6a83d7fd318997b965885ade01806a6d6fa32f0129