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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue