Enable laptop keyboard disabler script
This commit is contained in:
parent
40001f33a1
commit
8d056e3368
2 changed files with 2 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue