hyprwm / hyprland-plugins

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

hyprbars: aligning left or right kinda "changes" the order of the buttons #223

Open msmafra opened 5 days ago

msmafra commented 5 days ago

Probaly my interpretation of aligning left aligning right (coming form text editors/processors, but I think the order should not change or at least have a starting point/anchor for the alignment to choose the order of the buttons the same or have it the inverse:

Aligned left Screenshot-240919_143815

Aligned right Screenshot-240919_143659

...
        hyprbars-button = $btend, 20, 󰖭, hyprctl dispatch killactive
        hyprbars-button = $btmax, 20, 󰖯, hyprctl dispatch fullscreen 1
        hyprbars-button = $btmin, 20, 󰖰, hyprctl dispatch movetoworkspacesilent special
        hyprbars-button = $cosmiccobalt, 20,  , hyprctl dispatch togglefloating
        hyprbars-button = $btmove, 20, , hyprctl dispatch movewindow mon:eDP-1
        hyprbars-button = $btmove, 20, , hyprctl dispatch movewindow mon:HDMI-A-1
        hyprbars-button = rgb(403899), 20, , hyprctl dispatch movetoworkspace special:nebula
        hyprbars-button = rgb(403899), 20, , hyprctl dispatch pin
        hyprbars-button = rgb(403899), 20,  , hyprctl dispatch fullscreenstate 0 3
        hyprbars-button = rgb(403899), 20,  , hyprctl dispatch fullscreen 0
...
vaxerski commented 4 days ago

no, this is intended behavior. Buttons always "grow" from the edge they are aligned to

msmafra commented 4 days ago

Is there a possibility to add a paramenter to toggle the order, so with the paramenter it would only "move" the buttons as group to the left or right not changing the order from the configuration file?

vaxerski commented 3 days ago

mrs welcome