hyprwm / hyprland-plugins

Official plugins for Hyprland
BSD 3-Clause "New" or "Revised" License
521 stars 54 forks source link

Hyprbars: Add vertical Decoration Support #44

Open nine7nine opened 11 months ago

nine7nine commented 11 months ago

It would be very interesting (if possible) to add vertical decoration support to Hyprbars, similar to what is possible with AwesomeWM: https://www.reddit.com/r/unixporn/comments/15ei050/awesome_another_awesomewm_rice/

Aside from uniqueness / flashy-ness, it does save 'real estate' with vertical pixels, and at least in my case: it's more 'left-handed friendly'.

as an aside: I'm looking forward to when the decoration and floating/stacking window support is improved in Hyprland. ~ At the point it is a bit more usable: Hyprland + Aylur's GTK Shell becomes a viable alternative to the big DEs (like Gnome / KDE) for me. The best tiling WM + Stacking WM option will be killer.

also, I'm sure you are aware, but Hyprbars doesn't compile, ATM... I think due to some recent refactor in Hyprland - I get the following errors:

g++ -shared -fPIC --no-gnu-unique -g -std=c++2b -Wno-c++11-narrowing `pkg-config --cflags pixman-1 libdrm hyprland pangocairo` main.cpp barDeco.cpp  -o hyprbars.so `pkg-config --libs pangocairo`
In file included from /usr/include/hyprland/src/helpers/Vector2D.hpp:5,
                 from /usr/include/hyprland/src/includes.hpp:148,
                 from /usr/include/hyprland/src/defines.hpp:1,
                 from /usr/include/hyprland/src/Compositor.hpp:7,
                 from main.cpp:6:
/usr/include/hyprland/src/macros.hpp:17:10: fatal error: version.h: No such file or directory
   17 | #include "version.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from /usr/include/hyprland/src/helpers/Vector2D.hpp:5,
                 from /usr/include/hyprland/src/includes.hpp:148,
                 from /usr/include/hyprland/src/defines.hpp:1,
                 from /usr/include/hyprland/src/render/decorations/IHyprWindowDecoration.hpp:3,
                 from barDeco.hpp:5,
                 from barDeco.cpp:1:
/usr/include/hyprland/src/macros.hpp:17:10: fatal error: version.h: No such file or directory
   17 | #include "version.h"
      |          ^~~~~~~~~~~
compilation terminated.
vaxerski commented 11 months ago

hb compiles just fine, looks like you didn't sudo make pluginenv

nine7nine commented 11 months ago

ah, thanks - fixed it. I was building from the AUR - so i just modified the PKGBUILD.

rice7th commented 11 months ago

I would love to have complex titlebars on hyprland, it's literally the only thing holding me back from awesomewm.

beckkake commented 9 months ago

second this. the ability to switch the sides the titlebars are on, or add them on all sides, would be nice

cprin21 commented 9 months ago

Thirding this, as it would save vertical space on 16:9 and even further ratio monitors.