mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 08:11:55 -05:00
17 lines
627 B
Nix
17 lines
627 B
Nix
|
{
|
||
|
pkgs,
|
||
|
lib,
|
||
|
config,
|
||
|
...
|
||
|
}: {
|
||
|
config = lib.mkIf config.alyraffauf.desktop.hyprland.tabletMode.virtKeyboard {
|
||
|
home.packages = with pkgs; [squeekboard];
|
||
|
|
||
|
wayland.windowManager.hyprland.extraConfig = ''
|
||
|
exec-once = ${lib.getExe' pkgs.squeekboard "squeekboard"}
|
||
|
bindl=,switch:on:Lenovo Yoga Tablet Mode Control switch,exec,${lib.getExe pkgs.dconf} write /org/gnome/desktop/a11y/applications/screen-keyboard-enabled true
|
||
|
bindl=,switch:off:Lenovo Yoga Tablet Mode Control switch,exec,${lib.getExe pkgs.dconf} write /org/gnome/desktop/a11y/applications/screen-keyboard-enabled false
|
||
|
'';
|
||
|
};
|
||
|
}
|