瀏覽代碼

Added keyboard-toggle for disabling keyboard

master
Josh Wolfe 2 年之前
父節點
當前提交
cf88692e09
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16
    0
      bin/bin/keyboard-toggle

+ 16
- 0
bin/bin/keyboard-toggle 查看文件

@@ -0,0 +1,16 @@
#!/bin/bash

kb_name='AT Translated Set 2 keyboard'

if [[ "$1" == "enable" ]]; then
xinput enable "$kb_name"
elif [[ "$1" == "disable" ]]; then
xinput disable "$kb_name"
else
if xinput list "$kb_name" | grep -i --quiet disable; then
xinput enable "$kb_name"
else
xinput disable "$kb_name"
fi
fi


Loading…
取消
儲存