You are not logged in.

#1 2025-05-08 06:56:05

hoangphuc08
Member
Registered: 2025-05-08
Posts: 2

[SOLVED] config error in UserKeybind.conf after system update

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

#2 2025-05-08 08:05:41

azertyfun
Member
Registered: 2017-05-31
Posts: 3

Re: [SOLVED] config error in UserKeybind.conf after system update

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

#3 2025-05-08 08:17:44

hoangphuc08
Member
Registered: 2025-05-08
Posts: 2

Re: [SOLVED] config error in UserKeybind.conf after system update

Tysm!! It worked!

Offline

#4 2025-05-09 04:47:30

sanskar
Member
Registered: 2025-05-09
Posts: 5

Re: [SOLVED] config error in UserKeybind.conf after system update

    ~  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

#5 2025-05-09 10:00:28

omarDans
Member
Registered: 2025-05-09
Posts: 1

Re: [SOLVED] config error in UserKeybind.conf after system update

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 set

I 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.sh

And 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

Board footer

Powered by FluxBB