mylinuxforwork / dotfiles

The ML4W Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland including an easy to use installation script for Arch based Linux distributions.
GNU General Public License v3.0
1.1k stars 85 forks source link

[FEATURE] Add french keybindings #273

Closed r0d0lphe closed 1 month ago

r0d0lphe commented 1 month ago

Using workspaces

With the default configuration, the French keyboard doesn't work. So I've modified the default.conf file to solve this problem. I simply copied the default.conf file to french.conf and made the following changes.

Changes made

Best regards,

mylinuxforwork commented 1 month ago

@r0d0lphe Do you have a resource in the web that describes that code:10 is the same as pressing 1 and so on?

r0d0lphe commented 1 month ago

To clarify the problem - and it applies to ALL WM under Linux - you need to understand the layout of a French keyboard (AZERTY).

As a result, you can either configure the keys like this:

Here are two links explaining the problems of the French keyboard: https://rherault.dev/articles/hyprland-fr-layout and https://www.reddit.com/r/linuxquestions/comments/16sylor/need_help_about_using_hyprland_with_a_azerty/

I hope I've answered your question.

Best regards,

mylinuxforwork commented 1 month ago

@r0d0lphe Thank you so much for sharing the insights. I have created a dedicated keybinding variation for the french keyboard layout.

https://github.com/mylinuxforwork/dotfiles/blob/main/share/dotfiles/.config/hypr/conf/keybindings/fr.conf

You can copy the file into your .config/hypr/conf/keybindings folder and select it with the ML4W Settings App.

Can you test it and give me feedback? Will be added into the next version and will be activated automatically when the user selects a french keyboard layout during the installation.

r0d0lphe commented 1 month ago

I've just tested the modifications. It's correct on the whole, but there's just a key reversal between 6 and 7. This is due to an error on https://rherault.dev/articles/hyprland-fr-layout, sorry.

The keys should be coded as follows:

# Workspaces
bind = $mainMod, ampersand, workspace, 1 # Open workspace 1
bind = $mainMod, eacute, workspace, 2 # Open workspace 2
bind = $mainMod, quotedbl, workspace, 3 # Open workspace 3
bind = $mainMod, apostrophe, workspace, 4 # Open workspace 4
bind = $mainMod, parenleft, workspace, 5 # Open workspace 5
--> bind = $mainMod, minus, workspace, 6 # Open workspace 6
--> bind = $mainMod, egrave, workspace, 7 # Open workspace 7
bind = $mainMod, underscore, workspace, 8 # Open workspace 8
bind = $mainMod, ccedilla, workspace, 9 # Open workspace 9
bind = $mainMod, agrave, workspace, 10 # Open workspace 10

To be reproduced on the “move active windows to workspace x” and “move all windows to workspace x” functions.

Best regards,

mylinuxforwork commented 1 month ago

@r0d0lphe Thank you so much for testing. Wir change it accordingly.

mylinuxforwork commented 1 month ago

@r0d0lphe Updated on main branch.