adding more logging for crashes + hermes + bye niri gestures
This commit is contained in:
1 parent
4f396d93c4
commit
d514939e37
6 files changed
+41
-45
No files matched your search
@@ -78,33 +78,18 @@ in
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.niri-touchscreen-gestures
|
||||
# dotool provides the absolute pointer positioning used to forward taps.
|
||||
# ydotool is deliberately not used here: its `mousemove --absolute` is
|
||||
# really a warp-to-corner plus a *relative* delta, so the compositor's
|
||||
# pointer acceleration scales it (measured at exactly 2x on this layout,
|
||||
# saturating at the screen edge). dotool registers a uinput device with a
|
||||
# declared absolute axis range instead, which no acceleration curve can
|
||||
# distort.
|
||||
pkgs.dotool
|
||||
];
|
||||
|
||||
# dotool writes to /dev/uinput, which this makes group-accessible (0660,
|
||||
# group "uinput") and loads the kernel module for. Note that dotool ships no
|
||||
# udev rules of its own in nixpkgs, so this is the only thing granting access.
|
||||
hardware.uinput.enable = true;
|
||||
|
||||
# "input" is already granted by tiler.enable (needed to read /dev/input for
|
||||
# the touchscreen); "uinput" is what hardware.uinput.enable creates.
|
||||
users.users.${skygUser.name}.extraGroups = [ "input" "uinput" ];
|
||||
|
||||
systemd.user.services = {
|
||||
# Registering a uinput device costs a noticeable startup delay, so keep one
|
||||
# long-running daemon rather than paying it on every tap.
|
||||
dotoold = {
|
||||
description = "dotoold - uinput backend for absolute pointer positioning";
|
||||
after = [ "graphical-session.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
unitConfig.ConditionEnvironment = "NIRI_SOCKET";
|
||||
serviceConfig = {
|
||||
ExecStart = lib.getExe' pkgs.dotool "dotoold";
|
||||
Restart = "on-failure";
|
||||
@@ -114,16 +99,16 @@ in
|
||||
|
||||
niri-touchscreen-gestures = {
|
||||
description = "Touchscreen gesture bridge for niri";
|
||||
# Needs the niri IPC socket, which only exists once the compositor is up,
|
||||
# and dotoold's virtual device before it can forward a tap.
|
||||
after = [ "graphical-session.target" "dotoold.service" ];
|
||||
wants = [ "dotoold.service" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
unitConfig.ConditionEnvironment = "NIRI_SOCKET";
|
||||
serviceConfig = {
|
||||
ExecStart = "${lib.getExe pkgs.niri-touchscreen-gestures} ${lib.escapeShellArgs gestureArgs}";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 2;
|
||||
RestartSec = 5; # widen the cycle
|
||||
StartLimitBurst = 3;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user