config: updates and fixup~

This commit is contained in:
Kate 2024-11-30 19:36:25 -07:00
parent 9defb280e1
commit 2c44e010bb
3 changed files with 11 additions and 3 deletions

View file

@ -35,8 +35,11 @@
)
];
# Enable espanso, when possible.
services.espanso.enable = true;
# Enable espanso, when not on wayland.
services.espanso = {
enable = true;
wayland = false;
};
environment.systemPackages = with pkgs; [
wtype

View file

@ -45,6 +45,11 @@ let
if verb == "lights/off":
print("[I] Got a 'lights out' request. Making things quiet.")
# Turn off monitors for any X11 anything.
for auth in g`/tmp/xauth_*`:
print(f"[I] Turning off monitors on X instance with auth file {auth}.")
!(env DISPLAY=:0 XAUTHORITY=@(auth) xset dpms force off)
# Turn off monitors on each niri session,
sockets = g`/var/run/user/1000/niri*.sock`
for socket in sockets:

View file

@ -210,7 +210,7 @@ font_overrides = {
hinata = 16,
valere = 10,
utol = 13,
trailblazer = 12,
trailblazer = 10,
kanbaru = 12,
aigis = 12;
}