updates
This commit is contained in:
1 parent
f164d8b76e
commit
5748b3409b
60 files changed
+1346
-590
No files matched your search
@@ -0,0 +1,40 @@
|
||||
{
|
||||
flake.modules.nixos.handy = { pkgs, ... }: {
|
||||
services.udev.packages = [
|
||||
(pkgs.writeTextDir "lib/udev/rules.d/70-handy-keyboard.rules" ''
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT_KEYBOARD}=="1", TAG+="uaccess"
|
||||
'')
|
||||
];
|
||||
};
|
||||
|
||||
flake.modules.homeManager.handy =
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
python = pkgs.python3.withPackages (ps: [ ps.evdev ]);
|
||||
in
|
||||
{
|
||||
home.packages = [ pkgs.handy ];
|
||||
|
||||
systemd.user.services.handy = {
|
||||
Unit = {
|
||||
Description = "Handy dictation";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
Service = {
|
||||
ExecStart = "${pkgs.handy}/bin/handy --start-hidden";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services.handy-ptt = {
|
||||
Unit = {
|
||||
Description = "Handy push-to-talk key release listener";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
Requisite = [ "handy.service" ];
|
||||
After = [ "handy.service" ];
|
||||
};
|
||||
Service.ExecStart = "${python}/bin/python ${./push_to_talk.py} ${pkgs.handy}/bin/handy";
|
||||
};
|
||||
};
|
||||
}
|
||||
File renamed without changes.
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
import _push_to_talk as ptt
|
||||
import push_to_talk as ptt
|
||||
|
||||
down = [ptt.key.KEY_LEFTMETA, ptt.key.KEY_D]
|
||||
|
||||
Reference in new issue
Block a user