# Close to tray

**URL:** <https://forum.obsidian.md/t/close-to-tray/6781>\
**Category:** Feature requests\
**Tags:** keyboard-shortcut, ui-ux\
**Created:** [October 9, 2020, 3:31am UTC](https://forum.obsidian.md/t/close-to-tray/6781 "2020-10-09T03:31:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaelek](https://forum.obsidian.md/user_avatar/forum.obsidian.md/vaelek/32/5260_2.png) [@Vaelek](https://forum.obsidian.md/u/Vaelek)\
**Post date:** [October 9, 2020, 3:31am UTC](https://forum.obsidian.md/t/close-to-tray/6781/1 "2020-10-09T03:31:04Z")

</div>

I mentioned this in discord and was asked to post it here. I would like to see an option to minimize to the system tray when the window is closed, as well as a global hotkey to hide/show the window. Both Flashnote, and My Notes Keeper which I used prior to Obsidian, had this feature and it is very nice to have it always a hotkey away but not always on the taskbar.

---

<div class="post-metadata">

**Author:** ![Fantazmo](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/f/7ab992/32.png) [@Fantazmo](https://forum.obsidian.md/u/Fantazmo)\
**Post date:** [November 16, 2020, 7:32pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/2 "2020-11-16T19:32:48Z")

</div>

I want minimize and expands itself to the system tray using hotkey like Flashnote too. it is very comfortable. I cannot switch to obsidian completely because of this.

---

<div class="post-metadata">

**Author:** ![j0e](https://forum.obsidian.md/user_avatar/forum.obsidian.md/j0e/32/8280_2.png) [@j0e](https://forum.obsidian.md/u/j0e)\
**Post date:** [December 28, 2020, 8:40pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/3 "2020-12-28T20:40:56Z")

</div>

+1

I really miss the “Autostart” and “Minimize to Try” option.  
That’s pretty much standard on Windows for note-taking apps.

---

<div class="post-metadata">

**Author:** ![eddiecsilva](https://forum.obsidian.md/user_avatar/forum.obsidian.md/eddiecsilva/32/5915_2.png) [@eddiecsilva](https://forum.obsidian.md/u/eddiecsilva)\
**Post date:** [January 7, 2021, 11:21am UTC](https://forum.obsidian.md/t/close-to-tray/6781/4 "2021-01-07T11:21:53Z")

</div>

I’m trying to unify my notes from different platforms (and years) in Obsidian and the function of keeping the app always open is really missing. For now I am getting around using Alltray (linux), but, it would be fantastic that this feature was native.

🖖

---

<div class="post-metadata">

**Author:** ![iiz](https://forum.obsidian.md/user_avatar/forum.obsidian.md/iiz/32/54708_2.png) [@iiz](https://forum.obsidian.md/u/iiz)\
**Post date:** [February 28, 2021, 4:04pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/5 "2021-02-28T16:04:42Z")

</div>

I really hope for this feature, which would make note-taking much more comfortable!

---

<div class="post-metadata">

**Author:** ![entity](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/e47c2d/32.png) [@entity](https://forum.obsidian.md/u/entity)\
**Post date:** [March 25, 2021, 8:41am UTC](https://forum.obsidian.md/t/close-to-tray/6781/6 "2021-03-25T08:41:10Z")

</div>

Oh yes, minimize to tray, please! 🙂 Moving from evernote without having the new note-taking app’s icon always available in the tray feels like I’m gonna have a bad time.

---

<div class="post-metadata">

**Author:** ![anon77306713](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@anon77306713](https://forum.obsidian.md/u/anon77306713)\
**Post date:** [May 16, 2021, 7:00pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/7 "2021-05-16T19:00:55Z")

</div>

Does anyone have any ideas how to make this work in Windows until it hopefully gets added?

---

<div class="post-metadata">

**Author:** ![trulycoool](https://forum.obsidian.md/user_avatar/forum.obsidian.md/trulycoool/32/15551_2.png) [@trulycoool](https://forum.obsidian.md/u/trulycoool)\
**Post date:** [May 31, 2021, 7:07pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/8 "2021-05-31T19:07:07Z")

</div>

This can be accomplished using AutoHotkey. Can be a bit time consuming to work out though…

Have been using Actual Window Minimizer by Actual Tools for this as it’s really quick to get working; point and click, with a few tweaks.

Note that while AWM has a “Close minimizes to tray” option, which works with any “regularly titled app”, it doesn’t work well with these electron/chrome based apps, i.e. Obsidian. Nor does Obsidian create/expose the minimize button normally.

AWM has an option to put special overlay buttons. Note in the image below there is a little white dot under the regular minimize dash. That overlay makes the minimize button minimize to tray…

 ![image](https://forum.obsidian.md/uploads/default/original/2X/d/d2dced070f99e4c566e0e09841d4d5a7c21cf9fa.png)

…and here it is nicely in the tray…

![image](https://forum.obsidian.md/uploads/default/original/2X/9/9654491df86734f4af4d08a0b1560b1410774b0d.png)

Will post back if I end up creating an AutoHotkey version, which should allow fixing of the close/minimize without overlay. Or resorting to a paid program (like Actual Window Minimizer). Though I will say at $20, I find it well worth it when I just want to minimize to tray with AHK programming fuss…

(no affiliation w/ Actual Tools, just a satisfied user)

---

<div class="post-metadata">

**Author:** ![NomarCub](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/bbe5ce/32.png) [@NomarCub](https://forum.obsidian.md/u/NomarCub)\
**Post date:** [June 2, 2021, 7:00am UTC](https://forum.obsidian.md/t/close-to-tray/6781/9 "2021-06-02T07:00:34Z")

</div>

For the devs or plugin makers looking to implement this [here](https://github.com/microsoft/vscode/issues/67042) is an Electron snippet I found for running in the background.  
The workarounds have been really awkward for me, hope this gets fixed soon.

---

<div class="post-metadata">

**Author:** ![anon77306713](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@anon77306713](https://forum.obsidian.md/u/anon77306713)\
**Post date:** [June 18, 2021, 7:32am UTC](https://forum.obsidian.md/t/close-to-tray/6781/10 "2021-06-18T07:32:54Z")

</div>

You can use RBtray to do this for free. It makes it so that whenever you right-click on the minimize button, the app gets put into the system tray. These workarounds are okay, but there are plenty of functionalities which aren’t supported.

- If you try to open Obsidian while it’s in the system tray, it doesn’t pop that window out, but instead let’s you open a new one. For me personally, it’s quite annoying to need to go to the system tray all the time to open an app.
- It doesn’t automatically send the window to system tray when you want to close it, so the app won’t always be open and this is pretty much the primary reason why I’d want this feature.
- Obsidian can’t be launched in system tray on startup with this method.
- etc.

---

<div class="post-metadata">

**Author:** ![Comodoes](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/c/f19dbf/32.png) [@Comodoes](https://forum.obsidian.md/u/Comodoes)\
**Post date:** [July 22, 2021, 8:34am UTC](https://forum.obsidian.md/t/close-to-tray/6781/11 "2021-07-22T08:34:16Z")

</div>

+1. fast open

---

<div class="post-metadata">

**Author:** ![tero](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/e47774/32.png) [@tero](https://forum.obsidian.md/u/tero)\
**Post date:** [August 6, 2021, 7:51am UTC](https://forum.obsidian.md/t/close-to-tray/6781/12 "2021-08-06T07:51:52Z")

</div>

I guess you’re using Windows, so this doesn’t help you (but in case anyone else needs this), but on a Mac, the global ⌘H keyboard shortcut does this, and you can ⌘Tab back to the app.

---

<div class="post-metadata">

**Author:** ![iiz](https://forum.obsidian.md/user_avatar/forum.obsidian.md/iiz/32/54708_2.png) [@iiz](https://forum.obsidian.md/u/iiz)\
**Post date:** [August 6, 2021, 9:14am UTC](https://forum.obsidian.md/t/close-to-tray/6781/13 "2021-08-06T09:14:05Z")

</div>

It’s great if we could run Obsidian in system tray at startup with preloading vaults and Obsidian Sync.

---

<div class="post-metadata">

**Author:** ![JaguarGod](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/dbc845/32.png) [@JaguarGod](https://forum.obsidian.md/u/JaguarGod)\
**Post date:** [August 9, 2021, 2:39pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/14 "2021-08-09T14:39:37Z")

</div>

+1 - Minimize to tray.

---

<div class="post-metadata">

**Author:** ![anhofmann](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@anhofmann](https://forum.obsidian.md/u/anhofmann)\
**Post date:** [September 3, 2021, 7:31am UTC](https://forum.obsidian.md/t/close-to-tray/6781/15 "2021-09-03T07:31:32Z")

</div>

I just registered to say that I also dearly miss this feature!

---

<div class="post-metadata">

**Author:** ![darsain](https://forum.obsidian.md/user_avatar/forum.obsidian.md/darsain/32/19455_2.png) [@darsain](https://forum.obsidian.md/u/darsain)\
**Post date:** [September 8, 2021, 2:51pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/16 "2021-09-08T14:51:03Z")

</div>

The lack of a global shortcut to hide/show the window was a huge productivity hit, so I made this autohotkey script that hacks it in.

I expect it to have edge cases, maybe glitchiness sometimes as has to be expected every time you try to hack features like this into an app (this should really just be built it). For example, it doesn’t account for multiple windows.

```auto
ScrollLock::
	global hidden_obsidian_window_id

	window_id := WinExist("ahk_exe Obsidian.exe")

	; If app window exists (hidden windows are ignored by WinExist)
	if (window_id) {
		; Check if it's focused
		if (WinActive("ahk_id " . window_id)) {
			; Activate previous window
			Send !{Esc}
			; Save window id and hide
			hidden_obsidian_window_id := window_id
			WinHide, % "ahk_id " . window_id
		} else {
			; Focus
			WinActivate, % "ahk_id " . window_id
		}
	} else {
		if (hidden_obsidian_window_id) {
			; Unhide
			WinShow, % "ahk_id " . hidden_obsidian_window_id
			WinActivate, % "ahk_id " . hidden_obsidian_window_id
			hidden_obsidian_window_id := false
		} else {
			; Launch the app
			EnvGet, A_LocalAppData, LocalAppData
			Run, % A_LocalAppData . "\Obsidian\Obsidian.exe"
		}
	}
	return

```

---

<div class="post-metadata">

**Author:** ![Flexit](https://forum.obsidian.md/user_avatar/forum.obsidian.md/flexit/32/15306_2.png) [@Flexit](https://forum.obsidian.md/u/Flexit)\
**Post date:** [September 8, 2021, 9:54pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/17 "2021-09-08T21:54:31Z")

</div>

This little old freeware [https://github.com/igr/dm2/releases/tag/v1.23.1](https://github.com/igr/dm2/releases/tag/v1.23.1) does it in Windows

---

<div class="post-metadata">

**Author:** ![Reizo](https://forum.obsidian.md/user_avatar/forum.obsidian.md/reizo/32/21482_2.png) [@Reizo](https://forum.obsidian.md/u/Reizo)\
**Post date:** [November 1, 2021, 10:52am UTC](https://forum.obsidian.md/t/close-to-tray/6781/18 "2021-11-01T10:52:10Z")

</div>

> **[Download MinimizeToTray 2.4](https://www.softpedia.com/get/PORTABLE-SOFTWARE/System/System-Enhancements/Minimize-ToTray.shtml)**
>
> Download MinimizeToTray - Minimize any window to the system tray, and then restore it with a hotkey or a couple of mouse clicks, with this unobtrusive utility

Is what I’ve been using, since it has keyboard shortcuts for both hide to tray and unhide from tray. However, native support to show/hide window (like Notion-Rapackaged) with a dedicated hotkey would be ideal.

---

<div class="post-metadata">

**Author:** ![Comodoes](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/c/f19dbf/32.png) [@Comodoes](https://forum.obsidian.md/u/Comodoes)\
**Post date:** [November 7, 2021, 5:27pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/19 "2021-11-07T17:27:52Z")

</div>

@Licat @Silver ny plan native support?

> **[Tray | Electron](https://www.electronjs.org/docs/latest/api/tray/)**
>
> Add icons and context menus to the system's notification area.

---

<div class="post-metadata">

**Author:** ![Agata](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@Agata](https://forum.obsidian.md/u/Agata)\
**Post date:** [November 12, 2021, 9:22pm UTC](https://forum.obsidian.md/t/close-to-tray/6781/20 "2021-11-12T21:22:57Z")

</div>

+1 This feature will be very helpfule in Obsidian App :).

[Next page](https://forum.obsidian.md/t/close-to-tray/6781.md?page=2)
