prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland
GNU General Public License v3.0
6.82k stars 812 forks source link

Use hyprland 0.43 capabilities for switching keyboard layout #1824

Closed zeerayne closed 3 weeks ago

zeerayne commented 3 weeks ago

Pull Request

Description

In 0.43 was introduced new all parameter for hyprctl switchxkblayout command.

DEVICE can also be current or all, self-explanatory. Current is the main keyboard from devices.

Using this parameter simplifies keyboardswitch.sh script: no need to query all keyboards and loop them.

Type of change

Please put an x in the boxes that apply:

Checklist

Please put an x in the boxes that apply:

kRHYME7 commented 3 weeks ago

Thanks! LOL,We should have asked this feature when hyprland is on 0.39.0 haha. Looks good to me but i don't have any way to test it.

I will wait for someone who can approve this too.

rubiin commented 3 weeks ago

I tested and it does work

rubiin commented 3 weeks ago

Can you also check the swayosd PR