You are not logged in.
Hello, I'm new to Arch Linux. So after I updated my system, I came across this error:
(I use end4 hyprland)
Config error in file /home/phuc/.config/hypr/hyprland/keybinds.conf at line 28: Invalid expression type: supported +, -, *, /
Config error in file /home/phuc/.config/hypr/hyprland/keybinds.conf at line 30: Invalid expression type: supported +, -, *, /
Config error in file /home/phuc/.config/hypr/hyprland/keybinds.conf at line 31: Invalid expression type: supported +, -, *, /
Config error in file /home/phuc/.config/hypr/hyprland/keybinds.conf at line 36: Invalid expression type: supported +, -, *, /
Config error in file /home/phuc/.config/hypr/hyprland/keybinds.conf at line 161: Invalid expression type: supported +, -, *, /Please, anyone, help me... also here are lines in keybinds.conf I found and I couldn't find out how to fix it:
Line 28: bind = Super+Shift+Alt, S, exec, grim -g "$(slurp)" - | swappy -f - # Screen snip >> edit
Line 30: bind = Super+Shift,T,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l eng "tmp.png" - | wl-copy && rm "tmp.png" # Screen snip to text >> clipboard
Line 31: bind = Ctrl+Super+Shift,S,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract "tmp.png" - | wl-copy && rm "tmp.png" # [hidden]
Line 36: bindl= Ctrl,Print, exec, mkdir -p ~/Pictures/Screenshots && ~/.config/ags/scripts/grimblast.sh copysave screen ~/Pictures/Screenshots/Screenshot_"$(date '+%Y-%m-%d_%H.%M.%S')".png # Screenshot >> clipboard & file
Line 161: bind = Super, Slash, exec, for ((i=0; i<$(hyprctl monitors -j | jq length); i++)); do agsv1 -t "cheatsheet""$i"; done # Show cheatsheet(I just saw that there are 17 more but I don't know how to check what's the problem)
Last edited by hoangphuc08 (2025-05-08 08:20:08)
Offline
Same here. Seems like an issue with the latest release of hyprlang (0.6.2). I expect 0.6.3 will fix it based on the changelog: https://github.com/hyprwm/hyprlang/releases/tag/v0.6.3
Downgrading to 0.6.1-2 fixed the issue for me. Simply download it from the archive (https://archive.archlinux.org/packages/h/hyprlang/) and install it with `pacman -U /path/to/hyprlang-0.6.1-2-x86_64.pkg.tar.zst`.
Last edited by azertyfun (2025-05-08 08:05:56)
Offline
Tysm!! It worked!
Offline
~ hyprland -v
Hyprland 0.48.1 built from branch at commit 29e2e59fdbab8ed2cc23a20e3c6043d5decb5cdc (version: bump to v0.48.1).
Date: Fri Mar 28 16:16:07 2025
Tag: v0.48.1, commits: 5937
built against:
aquamarine 0.8.0
hyprlang 0.6.1
hyprutils 0.7.0
hyprcursor 0.1.12
hyprgraphics 0.1.3
its not worked for me still is persist
Offline
Im actually running hyprlang 0.6.1 and is bugged aswell:
Hyprland 0.48.1 built from branch at commit 29e2e59fdbab8ed2cc23a20e3c6043d5decb5cdc (version: bump to v0.48.1).
Date: Fri Mar 28 16:16:07 2025
Tag: v0.48.1, commits: 5937
built against:
aquamarine 0.8.0
hyprlang 0.6.1
hyprutils 0.7.0
hyprcursor 0.1.12
hyprgraphics 0.1.3
no flags were setI was able to make a workaround by creating a bash script with the command that i was having an error and execute that instead of the raw command.
Like, in my case i was having trouble with this command:
grim -g $(slurp) - | swappy -f -This command is for taking a screenshot in my system. I created a script named screenshot.sh and now my hyprland config file looks like this:
bind = ,Print, exec, .config/hypr/scripts/screenshot.shAnd that's it, works perfect.
PS:
The change that was made in hyprlang is that they no longer accept the syntax '$()' that's why you get the error.
Last edited by omarDans (2025-05-09 10:01:11)
Offline