Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyprctl getoption no longer supports device options? #5724

Open
Rabcor opened this issue Apr 23, 2024 · 3 comments
Open

hyprctl getoption no longer supports device options? #5724

Rabcor opened this issue Apr 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Rabcor
Copy link

Rabcor commented Apr 23, 2024

Hyprland Version

System/Version info
Hyprland, built from branch  at commit fe7b748eb668136dd0558b7c8279bfcd7ab4d759  (props: bump version to 0.39.1).
Date: Tue Apr 16 16:01:03 2024
Tag: v0.39.1, commits: 4460

flags: (if any)


System Information:
System name: Linux
Node name: Murmaider
Release: 6.6.28-1-lts
Version: #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 10:11:09 +0000


GPU information: 
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104 [Geforce RTX 3070 Ti Laptop GPU] [10de:24a0] (rev a1) (prog-if 00 [VGA controller])
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev c7) (prog-if 00 [VGA controller])


os-release: NAME="EndeavourOS"
PRETTY_NAME="EndeavourOS"
ID="endeavouros"
ID_LIKE="arch"
BUILD_ID="2023.11.17"
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://endeavouros.com"
DOCUMENTATION_URL="https://discovery.endeavouros.com"
SUPPORT_URL="https://forum.endeavouros.com"
BUG_REPORT_URL="https://forum.endeavouros.com/c/arch-based-related-questions/bug-reports"
PRIVACY_POLICY_URL="https://endeavouros.com/privacy-policy-2"
LOGO="endeavouros"


plugins:

Bug or Regression?

Regression

Description

I used to be able to do:
hyprctl getoption "device:asue120a:00-04f3:319b-touchpad:enabled"

To see if the touchpad is enabled or not, i tried also with the new keyword syntax

hyprctl getoption "device[asue120a:00-04f3:319b-touchpad]:enabled"

But now in both cases it just says no such option

How to reproduce

hyprctl getoption "device[$(hyprctl -j devices | jq -r '.mice[].name | select(contains("touchpad"))')]:enabled"

@Rabcor Rabcor added the bug Something isn't working label Apr 23, 2024
@tchofy
Copy link

tchofy commented Apr 23, 2024

Ever since the migration to hyprlang, it was one of the tradeoffs for the improvement. A workaround suggested by vaxry is having a variable on hyprland.conf and update that value: #5195 (comment)

@Rabcor
Copy link
Author

Rabcor commented Apr 23, 2024

Ever since the migration to hyprlang, it was one of the tradeoffs for the improvement. A workaround suggested by vaxry is having a variable on hyprland.conf and update that value: #5195 (comment)

Well that's old, like i said there's a new syntax, device:<dev>:<param> with device[<dev>]:<param>, it's working with keyword but not with getoption. It's even mentioned in the thread you linked me to ( hyprwm/hyprlang#35 )

@tchofy
Copy link

tchofy commented Apr 23, 2024

Ah you're right, sorry, just woke up.
Everything I've tried doesn't give me the value of the variable, so I don't see a way to get it outside of grepping hyprland.conf directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants