summaryrefslogtreecommitdiff
path: root/hosts/local/p16/keyboard.nix
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-10-25 21:07:06 +0700
committerpolwex <polwex@sortug.com>2025-10-25 21:07:06 +0700
commitdcf6ad1c5755e5acc40b3aa88315f7c335c7eb55 (patch)
treeb991cb97dfb6992d020b6d6a8f4442f329b18c56 /hosts/local/p16/keyboard.nix
parent021a797c8116032a114ba78476d1769c55479b48 (diff)
p16p16
Diffstat (limited to 'hosts/local/p16/keyboard.nix')
-rw-r--r--hosts/local/p16/keyboard.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/hosts/local/p16/keyboard.nix b/hosts/local/p16/keyboard.nix
new file mode 100644
index 0000000..f6cfa8c
--- /dev/null
+++ b/hosts/local/p16/keyboard.nix
@@ -0,0 +1,42 @@
+{_pkgs, ...}: {
+ services.logind.settings.Login = {
+ # don’t shutdown when power button is short-pressed
+ HandlePowerKey = "ignore";
+ };
+
+ # config file keeps getting rewritten but I don't know by who
+ # i18n.inputMethod = {
+ # enable = true;
+ # type = "fcitx5";
+ # fcitx5.addons = with pkgs; [
+ # fcitx5-mozc
+ # # mozc-ut is better, wat do
+ # fcitx5-gtk
+ # libsForQt5.fcitx5-qt
+ # fcitx5-lua
+ # fcitx5-configtool
+ # fcitx5-rime
+ # ];
+ # };
+ environment.variables = {
+ QT_IM_MODULE = "fcitx";
+ XMODIFIERS = "@im=fcitx";
+ FCITX_SOCKET = "default";
+ };
+
+ #kmonad
+ services.kmonad = {
+ enable = true;
+ keyboards = {
+ myKmonadOutput = {
+ device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
+ config = builtins.readFile ../keyboards/thinkpad-numpad.kbd;
+ };
+ usbThinkpad = {
+ # device = "/dev/input/by-id/usb-Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint-event-kbd";
+ device = "/dev/input/by-id/usb-Lenovo_TrackPoint_Keyboard_II-event-kbd";
+ config = builtins.readFile ../keyboards/thinkpad-usb.kbd;
+ };
+ };
+ };
+}