From 8d056e3368c3cc6da850c4b93cbff3ef9366126d Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Thu, 9 May 2024 10:02:46 +0200 Subject: [PATCH] Enable laptop keyboard disabler script --- modules/hm/hyprland-bluetooth-keyboard.nix | 7 +------ modules/hm/hyprland.nix | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/hm/hyprland-bluetooth-keyboard.nix b/modules/hm/hyprland-bluetooth-keyboard.nix index 1609073..2f89afe 100644 --- a/modules/hm/hyprland-bluetooth-keyboard.nix +++ b/modules/hm/hyprland-bluetooth-keyboard.nix @@ -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 diff --git a/modules/hm/hyprland.nix b/modules/hm/hyprland.nix index 073443f..63cc0b1 100644 --- a/modules/hm/hyprland.nix +++ b/modules/hm/hyprland.nix @@ -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; };