JaKooLit / OpenSuse-Hyprland

Automated Hyprland Install script for OpenSuse Tumbleweed. All gpu supported
GNU General Public License v3.0
164 stars 13 forks source link

Changing the current keyboard layout to English. #32

Closed vailrahmatulin closed 5 months ago

vailrahmatulin commented 5 months ago

Issue

When you change the wallpaper, the current keyboard layout changes to the default layout. This happens both when you automatically change the wallpaper, and when you change it by pressing the Win+w keys. The problem was noticed when the script was triggered PywalSwww.sh . I'm sorry for my English.

Steps to Reproduce

  1. Install an additional keyboard layout
  2. Switch the keyboard layout
  3. Run the script ./.config/hypr/scripts/PywalSwww.sh

Expected Behavior

The keyboard layout should not change

Actual Behavior

The keyboard layout is changing

Environment

JaKooLit commented 5 months ago

I dont think its the pywalswww causing it but the autorefresh of hyprland

the refresh.sh and anything associated to changing wallpaper is for it to take effect on waybar, rofi, etc etc

if you want the NOT to refresh after changing wallpapers, you should disable all the scripts at the bottom of WallpaperSelect.sh and any other wallpaper related scripts

I suggest that the keyboard layout you put on the UserSettings.conf is your main keyboard layout

vailrahmatulin commented 5 months ago

No, a separate launch Refresh.sh does not lead to a change of layout, but the launch PywalSwww.sh switches the layout, which is strange, since there is nothing in this script that could do this. Moreover, just the command wal -i $HOME/.config/rofi/.current_wallpaper -s -t -n -e & also changes the layout.

JaKooLit commented 5 months ago

no im not talking about the refresh.sh

hyprland have a built in auto refresh so any changes to settings, it will take effect immediately..

so by changing the color with pywal, the colors also change, and hyprland will try to use that...

you can try to test it..

say for example change a border size or gaps or anything you want to change on hyprland settings

vailrahmatulin commented 5 months ago

hyprctl keyword general:gaps_out 20 does not change the keyboard layout

JaKooLit commented 5 months ago

hyprctl keyword general:gaps_out 20

try changing the actual file instead

vailrahmatulin commented 5 months ago

Indeed, a change in the ./.config/hypr/UserConfigs/UserSettings.conf file results in a change in the keyboard layout. I wonder why this is happening, and how to deal with it?

JaKooLit commented 5 months ago

like I said try to put your main kb_layout first

ie

kb_layout=ru,us

vailrahmatulin commented 5 months ago

The problem is that I don't need to change the layout to the default one. It is necessary that the layout does not change at all. since I constantly switch from one layout to another while working, and if it changes to Russian instead of English, it will not improve the situation.

vailrahmatulin commented 5 months ago

I have commented out all the lines referring to PywalSwww.sh . It worked for me. But unfortunately, this is not the solution to the problem.

JaKooLit commented 5 months ago

https://wiki.hyprland.org/Configuring/Variables/#misc

you might want to change the auto-reload feature of Hyprland

However, just as a test, I have added other kb layouts to my system through the settings and I did other changes .. any changes including wallpaper switch, the last kb_layout set still keeps it there...

BUT, obviously, my keyboard output didnt changed since it was not properly set up...

Try to check setting of your Ibus (assume you use of course). Could be there the default settings? Im just guessing here

JaKooLit commented 5 months ago

Your last option is to approach hyprland team.. dotfiles

the pywal.sh is just to refresh the colors as per your set wallpaper.

if you are curious about the letters after wal

here is the link https://github.com/dylanaraps/pywal/wiki/Getting-Started#how-to-use-wal

vailrahmatulin commented 5 months ago

Thanks, I'll try, the topic can be closed.