hyprdots icon indicating copy to clipboard operation
hyprdots copied to clipboard

Adding Arabic as an input language option to the keyboard?

Open ZiadMostafaGit opened this issue 9 months ago • 4 comments

Question

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

ZiadMostafaGit avatar May 13 '24 18:05 ZiadMostafaGit

https://github.com/prasanthrangan/hyprdots/issues/1339#issuecomment-2068669775

You can do something like this

Artavazdpet avatar May 14 '24 06:05 Artavazdpet

How complicated is complicated, by the way?

^^^^ https://github.com/prasanthrangan/hyprdots/issues/1339#issuecomment-2068669775

kRHYME7 avatar May 14 '24 09:05 kRHYME7

Please use discussions for questions in the future please.

Skerse avatar May 14 '24 16:05 Skerse

Please use discussions for questions in the future please.

"Apologies, it's my first time."

ZiadMostafaGit avatar May 15 '24 13:05 ZiadMostafaGit

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.

abusen333 avatar May 21 '24 17:05 abusen333

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.

mrmostafaxd avatar May 27 '24 07:05 mrmostafaxd