The goal would have been to have these native elements
It’s not that important, I wanted it for window switching. I’ve just realised that the window shortcuts aren’t persisted during restarts of apps, so this native behaviour isn’t that important.
I’ll look into krohnkite and see if that can do what I want. Thank you!
Thank you kzhang, I wouldn’t have figured it out without your comment.
In my case (ArchLinux + XMonad, installed via the obsidian AUR package) I had to change frame: false to frame: true in two places in the file for the window border to be visible and controllable by my window manager.
In case it may help someone, I’ll post my process as well.
cd /usr/lib/obsidian
sudo npx azar extract obsidian.azar obsidian.azar.extracted
sudo vim obsidian.azar.extracted/main.js # edit and save
sudo npx azar pack obsidian.azar.extracted/ obsidian.azar
and then restart Obsidian, and the border will be visible.
Hi, i3wm user here. I need the border to see which window is focused.
(I don’t care about the file/edit/help bar)
Thank you so much for the workaround! But yes this would be a great toggle to have! Can I vote on that feature somewhere?
I installed the aur/obsidian as well (Manjaro) but I had a different packing format. The commands below should accomplished the same thing as above. Use with caution.
sudo asar extract obsidian.asar obsidian.asar.extracted
sudo sed -i 's/frame: false/frame: true/' obsidian.asar.extracted/main.js
sudo asar pack obsidian.asar.extracted/ obsidian.asar
I’ve tried the method here (albeit with a few changes) and it worked.
I like obsidian’s title bar better I think, because plugins can target it. Things like back/forward history (with numbers) with one of pjeby’s plugins or also his quick explorer use it and (I tested it with the first one) didn’t work/display with the native title bar but only with Obsidian’s one.
Obsidian’s title bar also looks better. It’s also not sure whether it could be easily implemented with a toggle (iirc what Licat said).
The bar is fine, but I need Obsidian to have a frame the system (Xorg) understands and can display. This is a system wide setting (border color, border size). Every window has it if it is in focus, browser, terminal, Discord – every window except Obsidian. This makes it impossible to reliably tell, if it is focus or not.
PS: Update on what I currently do, since Insider builds are quite frequent:
find ~/.config/obsidian/ -type f -name 'obsidian-*.asar' | xargs --no-run-if-empty -I{} sh -c 'asar extract "{}" /tmp/obsidian.asar.extracted && sed -i "s/frame: false/frame: true/" /tmp/obsidian.asar.extracted/main.js && asar pack /tmp/obsidian.asar.extracted/ "{}"'
Another way on KDE to force the system title bar is by going to ‘Settings → Window Managment → Window Rules’. There you can add a rule (‘Add Rule’ down the bottom) for obsidian. In there you can add the ‘No titlebar and frame’ property, and check the ‘no’ option.
Below is what mine looks like. Depending on your obsidian theme settings you may end up with both the system title bar and obsidian’s title bar. One bonus for KDE users might be that obsidian opens only in the active activity, rather than in all activities.
Same for me. The window bars on KDE have so much power that is all lost with the custom Obsidian bar. Also, not consistent with the rest of the system. Not only visual, but what buttons I have where on my bars.
Thank you!!! This restored the system title bar on Obsidian. I installed the Hider community plugin and turned on the “Hide title bar (frameless mode)” option to hide Obsidian’s titlebar.
Now Obsidian fits in with the rest of the applications running on my system.
I don’t mind about CSD but Obsidian title bar looks rather ugly. It’s sad because Gnome Adwaita is gorgeous. Tnx for the tip. I also managed to remove menu bar because it has no use. To do this add win.setMenuBarVisibility(false); to the end of the createWindow(...).