Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Arabic as an input language option to the keyboard? #1498

Closed
ZiadMostafaGit opened this issue May 13, 2024 · 6 comments
Closed

Adding Arabic as an input language option to the keyboard? #1498

ZiadMostafaGit opened this issue May 13, 2024 · 6 comments
Labels
question Further information is requested

Comments

@ZiadMostafaGit
Copy link

ZiadMostafaGit commented May 13, 2024

Question

Is there a simple method to add Arabic as an input language to the keyboard without having to deal with complicated configurations?

@ZiadMostafaGit ZiadMostafaGit added the enhancement New feature or request label May 13, 2024
@Artavazdpet
Copy link

#1339 (comment)

You can do something like this

@kRHYME7
Copy link
Collaborator

kRHYME7 commented May 14, 2024

How complicated is complicated, by the way?

^^^^
#1339 (comment)

@Skerse Skerse added question Further information is requested and removed enhancement New feature or request labels May 14, 2024
@Skerse
Copy link
Collaborator

Skerse commented May 14, 2024

Please use discussions for questions in the future please.

@Skerse Skerse changed the title Is there a simple method to add Arabic as an input language to the keyboard without having to deal with complicated configurations? Adding Arabic as an input language option to the keyboard? May 14, 2024
@ZiadMostafaGit
Copy link
Author

Please use discussions for questions in the future please.

"Apologies, it's my first time."

@abusen333
Copy link

How to Add Arabic Keyboard Layout and Toggle Using Super + Space in Hyprland

This guide will help you set up a dual keyboard layout (English and Arabic) and configure the toggle using the Super (Windows) key + Space in Hyprland on Linux. This method has been tested and works as expected.

Step 1: Modify the Configuration File

Navigate to the Hyprland configuration file located at:
/home/a/.config/hypr/hyprland.confg

Update the input block as follows:

input {
    kb_layout = us,ara  # Specifies US and Arabic keyboard layouts
    kb_variant = ,       # No specific variants are used
    kb_options = grp:win_space_toggle  # Sets Super + Space as the toggle
    follow_mouse = 1

    touchpad {
        natural_scroll = no  # Disables natural scrolling
    }

    sensitivity = 0
    force_no_accel = 1
}

Step 2: Reload Hyprland

To apply the changes, reload the Hyprland configuration. Open your terminal and execute the following command:
systemctl restart hyprland

Note

This configuration enables you to toggle between English and Arabic keyboard layouts using the Super key (Windows key) + Space. This feature is especially useful for bilingual users who need to switch between these two languages frequently.

@mrmostafaxd
Copy link

kb_options = grp:win_space_toggle # Sets Super + Space as the toggle

Instead of using kb_options to set the binding, you can use/modifiy the existing binding, which enables the toggling between the keyboard layouts in addition to sending a notification using notify-send.

Repository owner locked and limited conversation to collaborators May 27, 2024
Repository owner unlocked this conversation May 27, 2024
@kRHYME7 kRHYME7 closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants