Enable laptop keyboard disabler script

This commit is contained in:
Filippo Berto 2024-05-09 10:02:46 +02:00
parent 40001f33a1
commit 8d056e3368
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
2 changed files with 2 additions and 7 deletions

View file

@ -12,12 +12,7 @@
PATH=$PATH:${lib.makeBinPath [pkgs.coreutils pkgs.gnugrep pkgs.libnotify nixosConfig.programs.hyprland.package]}
BLUETOOTH_DEVICE="keychron-k1-max-keyboard"
LAPTOP_DEVICE="at-translated-set-2-keyboard"
if [ -z "$XDG_RUNTIME_DIR" ]; then
export XDG_RUNTIME_DIR=/run/user/$(id -u)
fi
export STATUS_FILE="$XDG_RUNTIME_DIR/bluetooth_keyboard.status"
STATUS_FILE="$XDG_RUNTIME_DIR/bluetooth_keyboard.status"
enable_laptop_keyboard() {
if [[ `cat $STATUS_FILE` == "false" ]]; then

View file

@ -9,7 +9,7 @@
./swayidle.nix
./swaynotificationcenter.nix
./wl_update_background.nix
# ./hyprland-bluetooth-keyboard.nix
./hyprland-bluetooth-keyboard.nix
];
home.packages = builtins.attrValues { inherit (pkgs) blueman brillo gamescope grimblast networkmanagerapplet wireplumber playerctl swaylock swww way-lockscreen waybar wl-clipboard wl-clipedit wlogout wofi wofi-emoji wtype xdg-desktop-portal-gtk; };