mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 13:09:17 -05:00
19 lines
645 B
Nix
19 lines
645 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.alyraffauf.desktop.sway.tabletMode.virtKeyboard {
|
|
home.packages = with pkgs; [squeekboard];
|
|
wayland.windowManager.sway.config.startup = [
|
|
{command = "${lib.getExe' pkgs.squeekboard "squeekboard"}";}
|
|
];
|
|
|
|
wayland.windowManager.sway.extraConfig = ''
|
|
bindswitch --reload --locked tablet:on exec ${lib.getExe pkgs.dconf} write /org/gnome/desktop/a11y/applications/screen-keyboard-enabled true
|
|
bindswitch --reload --locked tablet:off exec ${lib.getExe pkgs.dconf} write /org/gnome/desktop/a11y/applications/screen-keyboard-enabled false
|
|
'';
|
|
};
|
|
}
|