hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.71k stars 837 forks source link

hyprctl workspaces names and percentages in rules #53

Closed fedoranvar closed 2 years ago

fedoranvar commented 2 years ago

Good day to you!

few suggestions:

  1. Displayin workspace's names in hyprctl workspaces and hyprctl monitors - could be useful for information bars image image

  2. Ability to use percentage values in move, size rules - so we could align (snap) windows, regarding different monitors resolutions

(example: powermenu, launchher etc. in terminal) image

  1. Setting opacity by rule

Thank you!

vaxerski commented 2 years ago

Ability to use percentage values in move, size rules - so we could align (snap) windows, regarding different monitors resolutions

like? what percentage vals?

Setting opacity by rule

you have active and inactive - you mean additional per-app?

vaxerski commented 2 years ago
  1. done in 727851d6e2c2b1023fe530ac57e2aba19c87a193 20220421_21h26m07s_grim
fedoranvar commented 2 years ago

Ability to use percentage values in move, size rules - so we could align (snap) windows, regarding different monitors resolutions

image

or i can move this window to right side with this:

windowrule=size 35% 100%,util
windowrule=move 65% 0,util

in example above rules will move apps with class util to left corner and resize to monitor height.

in first pair, it can be done with absolute values in second pair - it can be done with percentage values (or , maybe float? [0.0 .. 1.0]

Setting opacity by rule yes. similar to that image

vaxerski commented 2 years ago

added opacity in 94811485c9e50eb310d8abf19ab60ea01fc3860d added %s to move and size in a8e5e9c5587b02f6fbbd9bdff97b3913f32f490f

please remember opacity is a product, meaning active_opacity to 0.5 and windowrule opacity to 0.5 will result in an active window's opacity being 0.25. You are allowed to set individual opacities to values >1, but a product of >1 will cause graphical glitches.

cheers

fedoranvar commented 2 years ago

that is good.

Thank you !