Hacky hack to make rofi-rbw typing less insane
There is some unknown interaction between `wtype` and `fcitx5` that prevents the keyboard from being usable after wtype exits, until fcitx5 restarts. Therefore a workaround is to use `ydotool` to type the secrets instead. However `ydotool` assumes an ANSI layout, which we cannot specifically set up with niri just yet. So instead we set up a hack, to temporarily disable fcitx & set Niri layout to ANSI right before invoking ydotool, and reverting once it's complete.
This commit is contained in:
parent
3e905fbf8f
commit
1de42e1a89
3 changed files with 28 additions and 8 deletions
|
@ -79,6 +79,10 @@ let
|
|||
programs.niri.package = pkgs.niri-stable;
|
||||
# Override gnome-keyring disabling
|
||||
services.gnome.gnome-keyring.enable = lib.mkForce false;
|
||||
# ydotool
|
||||
programs.ydotool.enable = true;
|
||||
users.extraGroups.${config.programs.ydotool.group}.members = [ cfg.username ];
|
||||
|
||||
};
|
||||
|
||||
logitech =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue