From 19944c2a46222d0972b62abcc90e6ba51a3dd554 Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 19 May 2023 08:03:51 +0000 Subject: [PATCH] sxmo: disable auto-lock --- hosts/modules/gui/sxmo.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/modules/gui/sxmo.nix b/hosts/modules/gui/sxmo.nix index 0bd3155c..f8a181d4 100644 --- a/hosts/modules/gui/sxmo.nix +++ b/hosts/modules/gui/sxmo.nix @@ -43,7 +43,7 @@ # - gestures: lisgd # - on-screen keyboard: wvkbd (if wayland), svkbd (if X) # -{ lib, config, pkgs, ... }: +{ lib, config, pkgs, sane-lib, ... }: with lib; let @@ -188,8 +188,11 @@ in SXMO_LISGD_INPUT_DEVICE = "/dev/input/by-id/usb-Wacom_Co._Ltd._Pen_and_multitouch_sensor-event-if00"; # these identifiers are from `swaymsg -t get_inputs` SXMO_VOLUME_BUTTON = "1:1:AT_Translated_Set_2_keyboard"; + # SXMO_VOLUME_BUTTON = "none"; SXMO_POWER_BUTTON = "0:1:Power_Button"; + # SXMO_POWER_BUTTON = "none"; SXMO_DISABLE_LEDS = "1"; + SXMO_UNLOCK_IDLE_TIME = "120"; # default # sxmo tries to determine device type from /proc/device-tree/compatible, # but that doesn't seem to exist on NixOS? (or maybe it just doesn't exist # on non-aarch64 builds). @@ -206,6 +209,8 @@ in } // lib.optionalAttrs (cfg.terminal != null) { TERMCMD = lib.mkDefault (if cfg.terminal == "vte" then "vte-2.91" else cfg.terminal); }; + + sane.user.fs.".cache/sxmo/sxmo.noidle" = sane-lib.fs.wantedText ""; }) ]; }