dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] Shortcuts are not appearing.

Open elppans opened this issue 7 months ago • 4 comments

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

Image

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

elppans avatar Apr 06 '26 05:04 elppans

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:

Image

Line 13 of the script is configured in a way that anyone with a customized "$HOME" directory might encounter the same error:

Image

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")}
Image

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:

Image

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.

elppans avatar Apr 07 '26 01:04 elppans

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.

mylinuxforwork avatar Apr 07 '26 19:04 mylinuxforwork

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.

elppans avatar Apr 08 '26 03:04 elppans

OK. Just pushed an update to the rolling release with your suggestion.

mylinuxforwork avatar Apr 12 '26 14:04 mylinuxforwork