jeffshee / hidamari

Video wallpaper for Linux. Written in Python. 🐍
https://flathub.org/apps/details/io.github.jeffshee.Hidamari
GNU General Public License v3.0
1.1k stars 31 forks source link

[REQUEST] Make hidamari start minimized at startup. #72

Open Mephistople opened 2 years ago

Mephistople commented 2 years ago

Hi Love the project and been using it for a couple of weeks now. However I have one minor nitpick, is it possible you could add an option so Hidamari could start minimized at system startup. I find myself constantly needing to close the window at system startup. thanks again.

jeffshee commented 2 years ago

Hi @Mephistople

is it possible you could add an option so Hidamari could start minimized at system startup.

Hidamari should start minimized at system startup, it is the normal behavior. I can't tell why it doesn't work for you without additional information:

  1. Did you install Hidamari through Flatpak?
  2. What is your distro and desktop environment?
  3. What is the output of cat ~/.config/autostart/io.github.jeffshee.Hidamari.desktop?

Could you please provide these information? Thanks.

Mephistople commented 2 years ago

Hi Sorry about that, using a Steam Deck with SteamOS 3.3.2 and KDE Plasma 5.23.5. Hidamari is installed via Flatpak.

Tried running the command you supplied but I get: [Desktop Entry] Exec=flatpak run --command=hidamari io.github.jeffshee.Hidamari -b Name=io.github.jeffshee.Hidamari Type=Application X-Flatpak=io.github.jeffshee.Hidamari

I forgot to mention that if I enable "autostart at login" I will get the output above but hidamari wont start at login. So what I originally did was to manually go to the autostart setting in system settings and add hidamari as an application at startup. Witch of course would lead to the hidamari window coming up at every startup, so that's on me.

Managed to work around the problem by adding window rule in KDE in system settings->window management->window rules, and setting minimized to forced.

I tested the setting at a another computer with Linux installed, and as you said hidamari started minimized at startup. Maybe an issue specific to the steam deck, but I managed to find a workaround.

jeffshee commented 2 years ago

@Mephistople Thanks for reporting back!

[Desktop Entry]
Exec=flatpak run --command=hidamari io.github.jeffshee.Hidamari -b
Name=io.github.jeffshee.Hidamari
Type=Application
X-Flatpak=io.github.jeffshee.Hidamari

The output seems fine to me. I'm not sure if SteamOS has some issue with autorun stuff. Have to wait for my pre-ordered Steam Deck to find out the problem then =)

manually go to the autostart setting in system settings and add hidamari as an application at startup

I'm glad that you found a workaround. Actually, you could also try adding -b as an argument if KDE's setting allows it. It tells Hidamari to run in background mode.

zachvlat commented 4 months ago

I m using KDE plasma 5.27 and although the app starts with -b (background) it still lives on my task manager, which is really annoying because its a "window" or an app that I can't hide it somehow. Is it possible to be closed on tray or something?

zachvlat commented 3 months ago

I m using KDE plasma 5.27 and although the app starts with -b (background) it still lives on my task manager, which is really annoying because its a "window" or an app that I can't hide it somehow. Is it possible to be closed on tray or something?

nvm i just wrote in a .kwinrule file:

[Hidamari] Description=Hidamari skiptaskbar=true skiptaskbarrule=5 wmclass=hidamari wmclasscomplete=true wmclassmatch=3

if you import this on Window Management > Window Rules you 'll now see any window named "hidamari"