waybar/src/modules/hyprland
Oleksandr Kulkov 220b859948
Fix kbName initialization
Second argument of substr is the length of the substring, _not_ the position. With positions, it's better to do like this.

Example:
```sh
[2023-01-29 13:08:00.927] [debug] hyprland IPC received activelayout>>ITE Tech. Inc. ITE Device(8910) Keyboard,Russian (with Ukrainian-Belorussian layout)
[2023-01-29 13:08:00.927] [debug] kbName is ITE Tech. Inc. ITE Device(8910) Keyboard,Russian (with
```

After the fix it's correct:
```sh
[2023-01-29 13:11:11.408] [debug] hyprland IPC received activelayout>>ITE Tech. Inc. ITE Device(8910) Keyboard,Russian (with Ukrainian-Belorussian layout)
[2023-01-29 13:11:11.408] [debug] kbName is ITE Tech. Inc. ITE Device(8910) Keyboard
```
2023-01-29 13:14:05 +01:00
..
backend.cpp make linter happy 2022-11-10 09:19:49 +01:00
language.cpp Fix kbName initialization 2023-01-29 13:14:05 +01:00
submap.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00
window.cpp fix: compilation errors with cpp_std=c++20 2023-01-20 22:50:02 -08:00