summaryrefslogtreecommitdiffstats
path: root/systems
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-28 23:32:40 +0000
committertv <tv@krebsco.de>2026-11-28 23:32:40 +0000
commite6e22b3b918e6b4f212ac0c35dbaa9da880f7f95 (patch)
tree1ae1c1d3b44b665c735450b26ed4c67ee83b2c5a /systems
parent8bdc6e6d367ea22130a864c3c1f681e45fac1dbf (diff)
qi: keep wvkbd running with the sway session
Hidden, and shown and hidden by signal, so it appears at once and takes the display from sway's environment.
Diffstat (limited to 'systems')
-rw-r--r--systems/qi/sway.nix13
1 files changed, 5 insertions, 8 deletions
diff --git a/systems/qi/sway.nix b/systems/qi/sway.nix
index 17ca2754..7371ae38 100644
--- a/systems/qi/sway.nix
+++ b/systems/qi/sway.nix
@@ -27,19 +27,16 @@
exec ${pkgs.lisgd}/bin/lisgd \
-d /dev/input/by-path/platform-a90000.i2c-event \
-m 500 \
- -g '2,DU,*,*,R,systemctl --user start wvkbd' \
- -g '2,UD,*,*,R,systemctl --user stop wvkbd' \
+ -g '2,DU,*,*,R,systemctl --user kill -s USR2 wvkbd' \
+ -g '2,UD,*,*,R,systemctl --user kill -s USR1 wvkbd' \
-g '2,RL,*,*,R,swaymsg workspace next' \
-g '2,LR,*,*,R,swaymsg workspace prev'
'';
};
systemd.user.services.wvkbd = {
- environment = {
- WAYLAND_DISPLAY = "wayland-1";
- };
- serviceConfig = {
- ExecStart = "${pkgs.wvkbd}/bin/wvkbd-mobintl";
- };
+ partOf = [ "sway-session.target" ];
+ wantedBy = [ "sway-session.target" ];
+ serviceConfig.ExecStart = "${pkgs.wvkbd}/bin/wvkbd-mobintl --hidden";
};
environment.systemPackages = [
# wlr-randr --output DSI-1 --toggle