[BUG] Shortcuts are not appearing.
Describe the bug
Hi everyone, how are you all doing?
I finally finished testing Arch+Hyperland+QEMU and went to my Desktop.
After installing, I encountered a problem: the menu where you can check the shortcuts doesn't show any.
This problem doesn't occur in the virtualized system in QEMU.
Steps to reproduce
When I press CTRL+Super+K, the shortcuts should appear, but they don't.
Expected behavior
O que posso fazer para arrumar isso?
Screenshots
Distribution
Arch Linux
If Other, specify
ArchLinux
Additional context
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Hi everyone, how are you doing?
I've done some testing and found the cause of the issue. My username is different from my user directory name, and this is reflected in the script ~/.mydotfiles/com.ml4w.dotfiles.stable/.config/hypr/scripts/keybindings.sh. I performed a manual execution test:
Line 13 of the script is configured in a way that anyone with a customized "$HOME" directory might encounter the same error:
To fix this, I edited the script and modified line 13 to use the following code:
config_file=${config_file//source = ~/$([ -d "/home/$USER" ] && echo "/home/$USER" || echo "$HOME")}
This code defines the base path: if /home/$USER does not exist, it falls back to using $HOME.
With this change, the "Super+CTRL+K" shortcut finally worked:
Thanks for the amazing work on this project; I really appreciate the effort you guys put into these dotfiles! Since the fix is identified, feel free to close this issue.
Thanks for testing.
Would this also work for you?
config_file=$(<~/.config/hypr/conf/keybinding.conf)
config_file=${config_file//source = ~/$HOME}
Thanks in advance for your feedback.
Thanks for testing.
Would this also work for you?
config_file=$(<~/.config/hypr/conf/keybinding.conf) config_file=${config_file//source = ~/$HOME}Thanks in advance for your feedback.
Hi there...
Yes, that would work too. However, I preferred not to change the original logic too much. By keeping the check, it resolves the issue for everyone while remaining robust; since not everyone has a customized HOME setup, we can preserve the original pathing logic while adding the fallback. This way, it works perfectly for both standard and custom cases.
OK. Just pushed an update to the rolling release with your suggestion.