fix(mba): scale & hyprland kitty

This commit is contained in:
2026-07-17 07:36:23 -04:00
parent 4d3a5039e9
commit dc0369137b
3 changed files with 10 additions and 4 deletions
@@ -1,8 +1,7 @@
-- Hyprland config (lua backend, Hyprland 0.55+).
-- `mainMod`, `menuMod`, and the monitor(s) are injected by Nix above this file.
-- `mainMod`, `menuMod`, `terminal`, and the monitor(s) are injected by Nix above this file.
-- See https://wiki.hypr.land/Configuring/Start/
local terminal = "ghostty"
local menu = "wofi --show drun"
-------------------
@@ -11,7 +10,7 @@ local menu = "wofi --show drun"
hl.on("hyprland.start", function()
hl.exec_cmd("uwsm app -- waybar")
hl.exec_cmd("uwsm app -- " .. terminal)
if terminal then hl.exec_cmd("uwsm app -- " .. terminal) end
hl.exec_cmd("uwsm app -- firefox")
end)
@@ -147,7 +146,7 @@ hl.bind(menuMod .. " + SHIFT + 3", hl.dsp.exec_cmd("hyprshot -m region"))
hl.bind(menuMod .. " + Q", hl.dsp.window.close())
-- Primary Bindings
hl.bind(mainMod .. " + RETURN", hl.dsp.exec_cmd(terminal))
if terminal then hl.bind(mainMod .. " + RETURN", hl.dsp.exec_cmd(terminal)) end
hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("uwsm stop"))
hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
hl.bind(mainMod .. " + P", hl.dsp.window.pin())
@@ -10,6 +10,11 @@ let
inherit (lib.${namespace}) mkOpt enabled;
cfg = config.${namespace}.programs.graphical.wms.hyprland;
graphical = config.${namespace}.programs.graphical;
terminal =
if graphical.ghostty.enable then "ghostty"
else if graphical.kitty.enable then "kitty"
else null;
in
{
options.${namespace}.programs.graphical.wms.hyprland = {
@@ -41,6 +46,7 @@ in
''
local mainMod = "${cfg.mainMod}"
local menuMod = "${cfg.menuMod}"
local terminal = ${if terminal == null then "nil" else ''"${terminal}"''}
${lib.concatMapStringsSep "\n" mkMonitor cfg.monitors}
''
@@ -30,6 +30,7 @@ in
display-managers = {
sddm = {
enable = true;
scale = "1.25";
};
};
};