diff --git a/nixos/configs/gui/default.nix b/nixos/configs/gui/default.nix index acee595..ff93be8 100644 --- a/nixos/configs/gui/default.nix +++ b/nixos/configs/gui/default.nix @@ -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 diff --git a/nixos/hosts/trailblazer/default.nix b/nixos/hosts/trailblazer/default.nix index a27a3c4..5b66df6 100644 --- a/nixos/hosts/trailblazer/default.nix +++ b/nixos/hosts/trailblazer/default.nix @@ -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: diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index d50a37d..bbedfd9 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -210,7 +210,7 @@ font_overrides = { hinata = 16, valere = 10, utol = 13, - trailblazer = 12, + trailblazer = 10, kanbaru = 12, aigis = 12; }