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
21.36k stars 898 forks source link

Allow getting dollar-sign `$` variables with `hyprctl getoption` #7462

Open JL2210 opened 2 months ago

JL2210 commented 2 months ago

Description

Allow getting dollar-sign $ variables with hyprctl getoption, something like this:

hyprctl getoption '$myVariable'

Right now this just says "no such option"

vaxerski commented 2 months ago

would need support in hyprlang first

JL2210 commented 2 months ago

I think this would be necessary to work around the removal of device:abcxyz:params. In my config I'm using a hack job that uses the variable to set something I'm not using (input:touchdevice:enabled) and then reading that from hyprctl getoption rather than device[my-touchpad]:enabled. It's kind of ugly and requires me to use hyprctl keyword twice to actually take effect