});
});
+// This being in here is semi-sketchy because it isn't strictly related to
+// Interception Tools, but it _is_ related to the keyboard and udev, so we
+// put it here. Depends on scripts installed by the dotfiles aspect, so the
+// separation of concerns is unclear.
+task('create /etc/udev/rules.d/50-realforce-layout.rules', async () => {
+ await template({
+ notify: 'reload udevadm',
+ path: '/etc/udev/rules.d/50-realforce-layout.rules',
+ src: resource.template('50-realforce-layout.rules.erb'),
+ sudo: true,
+ });
+});
+
handler('enable udevmon', async () => {
await command('systemctl', ['enable', 'udevmon', '--now'], {
sudo: true,
});
});
+
+handler('reload udevadm', async () => {
+ await command('udevadm', ['control', '--reload'], {
+ sudo: true,
+ });
+});
--- /dev/null
+# <%= variables.figManaged %>
+
+SUBSYSTEM=="usb", ACTION=="add", ATTRS{idProduct}=="0111", ATTRS{idVendor}=="0853" RUN+="/usr/bin/su <%= variables.username %> -c <%= variables.home %>/.zsh/bin/asdf-wrapper"
"strict": true,
"target": "ES2019"
},
+ "exclude": ["aspects/interception/support/CMakeFiles/**", "node_modules"],
"include": ["aspects/**/*.ts", "fig/**/*.ts", "variables.ts"]
}