fanbox icon indicating copy to clipboard operation
fanbox copied to clipboard

Stick to the desktop background?

Open XiaofanLinUS opened this issue 6 years ago • 4 comments

Hi, I like this program more than conky for its simplicity to implement custom theme with css and html. I have been used fanbox for a while. I can't help wondering if fanbox can be set to stick with the desktop background like conky so that whenever I win+d, I can still see the dashboard. I don't know much about electron. Hope that you can give me the answer. Than you!

XiaofanLinUS avatar Aug 01 '17 03:08 XiaofanLinUS

Hi!

What OS and distribution are you using? I'm only asking because win+d suggests you're using windows?

Does win+d minimize all windows and show the desktop?

With a little bit more information I can look into it for you :)

Thanks!

joereynolds avatar Aug 01 '17 07:08 joereynolds

Oh, sorry, I forgot to tell you. I am using Ubuntu 16.04 LTS.

XiaofanLinUS avatar Aug 01 '17 08:08 XiaofanLinUS

Hi again,

It looks like it might be possible :D I think we might be able to do something along the lines of (untested)

win.on('close', (event) => {
    event.preventDefault();
})

Reference https://electron.atom.io/docs/all/#event-close

PR's welcome, I'll try and see if I can try this out in the coming days

joereynolds avatar Aug 01 '17 18:08 joereynolds

Hi,

Not sure if its exactly what you want, but try adding type: 'desktop' to the window options in main.js : https://github.com/joereynolds/fanbox/blob/de9985113c0af6e4330a4ffa981097f2276393be/app/main.js#L23-L31 On linux and macOS, that should render directly to the root window (resulting in conky-like behaviour). I tested this on my system (Ubuntu 16.04.3 LTS) and it works like a charm.

dseynaev avatar Sep 04 '17 09:09 dseynaev