dragonwocky / obsidian-tray

Run Obsidian from the system tray for customisable window management & global quick notes
MIT License
205 stars 11 forks source link

Add "hide from taskbar" option #11

Closed bushnerd closed 1 year ago

bushnerd commented 1 year ago

Could you pls add "hide from taskbar" option in if its possible, it seems no need to display a icon in the taskbar.

dragonwocky commented 1 year ago

You can already do this? Just disable the "Create tray icon" option.

bushnerd commented 1 year ago

Sorry, this might be a bit ambiguous. I mean this icon in taskbar not tray icon. image

dragonwocky commented 1 year ago

Ah, gotcha. Could be done, I'll give it a go next time I update.

(Note to self: https://www.electronjs.org/docs/latest/api/browser-window#winsetskiptaskbarskip-macos-windows)

darkworks commented 1 year ago

yes pls add this hide from task bar option as its much needed. so that on minimize it directly go to tray instead of display icon etc in taskbar.

darkworks commented 1 year ago

@dragonwocky any update on this fix . pls

dragonwocky commented 1 year ago

@darkworks @bushnerd added in the latest commit, let me know how it goes.

darkworks commented 1 year ago

@darkworks @bushnerd added in the latest commit, let me know how it goes.

ya its working thanks for the fix..

is there way if we could listen for obsidian top right close button event and override it with this plugin so that instead of obsidian exit through this plugin it hide into tray.

thanks.

dragonwocky commented 1 year ago

@darkworks yes, that's one of the changes that need to be made before this is merged into the official repository (tracked here: https://github.com/obsidianmd/obsidian-releases/pull/1365). Currently closing the window using the Obsidian frame (where the window close button is part of the Obsidian interface) is overridden, but closing the window using the native titlebar isn't yet.

darkworks commented 1 year ago

@dragonwocky ok good to hear , check this it might help : https://medium.com/@onur.polattimur/electron-frameless-window-close-and-minimize-to-tray-5bab47f66f82