more work on neovim config, added keyboard sound thing for kitty
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
{ pkgs, self, ... }:
|
||||
|
||||
let
|
||||
pythonWithPkgs = pkgs.python3.withPackages (p: [ p.evdev ]);
|
||||
keyboardSfxScript = "${self}/assets/scripts/keyboard_sound_thing.py";
|
||||
in
|
||||
{
|
||||
systemd.user = {
|
||||
timers = {
|
||||
@@ -13,26 +17,11 @@
|
||||
};
|
||||
};
|
||||
services = {
|
||||
loginSound = {
|
||||
Unit= {
|
||||
Description = "Plays a sound on login";
|
||||
After = [ "graphical-session.target" ];
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${pkgs.alsa-utils}/bin/aplay -qN ${self}/assets/sound/login.wav";
|
||||
Type = "simple";
|
||||
};
|
||||
};
|
||||
maintenanceCheck = {
|
||||
Unit = {
|
||||
Description = "Check for updates in my maintained packages";
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${pkgs.nix}/bin/nix-shell -p python3Packages.requests --run '${pkgs.python311}/bin/python ${pkgs.myScripts.check_updates}/bin/checkupdates.py'";
|
||||
Type = "simple";
|
||||
kitty-keyboard-sounds = {
|
||||
description = "Keyboard sound effects for kitty";
|
||||
wantedBy = [ "hyprland-session.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pythonWithPkgs}/bin/python3 ${keyboardSfxScript}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user