refactor: moby: cleaner way to disable gestures
This commit is contained in:
@@ -29,6 +29,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
sane.gui.sxmo = {
|
sane.gui.sxmo = {
|
||||||
|
nogesture = true;
|
||||||
settings = {
|
settings = {
|
||||||
### hardware: touch screen
|
### hardware: touch screen
|
||||||
SXMO_LISGD_INPUT_DEVICE = "/dev/input/by-path/platform-1c2ac00.i2c-event";
|
SXMO_LISGD_INPUT_DEVICE = "/dev/input/by-path/platform-1c2ac00.i2c-event";
|
||||||
@@ -168,10 +169,6 @@ in
|
|||||||
};
|
};
|
||||||
package = pkgs.sxmo-utils.overrideAttrs (base: {
|
package = pkgs.sxmo-utils.overrideAttrs (base: {
|
||||||
postPatch = (base.postPatch or "") + ''
|
postPatch = (base.postPatch or "") + ''
|
||||||
# don't enable gestures at launch
|
|
||||||
# sed -i '/superctl start sxmo_hook_lisgd/d' ./configs/default_hooks/sxmo_hook_start.sh
|
|
||||||
sed -i '1 a touch ~/.cache/sxmo/sxmo.nogesture' ./configs/default_hooks/sxmo_hook_start.sh
|
|
||||||
|
|
||||||
cat <<EOF >> ./configs/default_hooks/sxmo_hook_start.sh
|
cat <<EOF >> ./configs/default_hooks/sxmo_hook_start.sh
|
||||||
# rotate UI based on physical display angle by default
|
# rotate UI based on physical display angle by default
|
||||||
sxmo_daemons.sh start autorotate sxmo_autorotate.sh
|
sxmo_daemons.sh start autorotate sxmo_autorotate.sh
|
||||||
|
@@ -126,6 +126,11 @@ in
|
|||||||
default = false;
|
default = false;
|
||||||
description = "inhibit lock-on-idle and screenoff-on-idle";
|
description = "inhibit lock-on-idle and screenoff-on-idle";
|
||||||
};
|
};
|
||||||
|
sane.gui.sxmo.nogesture = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "don't start lisgd gesture daemon by default";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
@@ -241,6 +246,9 @@ in
|
|||||||
sane.user.fs.".cache/sxmo/sxmo.noidle" = lib.mkIf cfg.noidle {
|
sane.user.fs.".cache/sxmo/sxmo.noidle" = lib.mkIf cfg.noidle {
|
||||||
symlink.text = "";
|
symlink.text = "";
|
||||||
};
|
};
|
||||||
|
sane.user.fs.".cache/sxmo/sxmo.nogesture" = lib.mkIf cfg.nogesture {
|
||||||
|
symlink.text = "";
|
||||||
|
};
|
||||||
sane.user.fs.".config/sxmo/profile".symlink.text = let
|
sane.user.fs.".config/sxmo/profile".symlink.text = let
|
||||||
mkKeyValue = key: value: ''export ${key}="${value}"'';
|
mkKeyValue = key: value: ''export ${key}="${value}"'';
|
||||||
userConfig = lib.generators.toKeyValue { inherit mkKeyValue; } cfg.settings;
|
userConfig = lib.generators.toKeyValue { inherit mkKeyValue; } cfg.settings;
|
||||||
|
Reference in New Issue
Block a user