fix(mba): scale & hyprland kitty
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
-- Hyprland config (lua backend, Hyprland 0.55+).
|
-- 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/
|
-- See https://wiki.hypr.land/Configuring/Start/
|
||||||
|
|
||||||
local terminal = "ghostty"
|
|
||||||
local menu = "wofi --show drun"
|
local menu = "wofi --show drun"
|
||||||
|
|
||||||
-------------------
|
-------------------
|
||||||
@@ -11,7 +10,7 @@ local menu = "wofi --show drun"
|
|||||||
|
|
||||||
hl.on("hyprland.start", function()
|
hl.on("hyprland.start", function()
|
||||||
hl.exec_cmd("uwsm app -- waybar")
|
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")
|
hl.exec_cmd("uwsm app -- firefox")
|
||||||
end)
|
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())
|
hl.bind(menuMod .. " + Q", hl.dsp.window.close())
|
||||||
|
|
||||||
-- Primary Bindings
|
-- 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 .. " + M", hl.dsp.exec_cmd("uwsm stop"))
|
||||||
hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
|
hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
|
||||||
hl.bind(mainMod .. " + P", hl.dsp.window.pin())
|
hl.bind(mainMod .. " + P", hl.dsp.window.pin())
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ let
|
|||||||
inherit (lib.${namespace}) mkOpt enabled;
|
inherit (lib.${namespace}) mkOpt enabled;
|
||||||
|
|
||||||
cfg = config.${namespace}.programs.graphical.wms.hyprland;
|
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
|
in
|
||||||
{
|
{
|
||||||
options.${namespace}.programs.graphical.wms.hyprland = {
|
options.${namespace}.programs.graphical.wms.hyprland = {
|
||||||
@@ -41,6 +46,7 @@ in
|
|||||||
''
|
''
|
||||||
local mainMod = "${cfg.mainMod}"
|
local mainMod = "${cfg.mainMod}"
|
||||||
local menuMod = "${cfg.menuMod}"
|
local menuMod = "${cfg.menuMod}"
|
||||||
|
local terminal = ${if terminal == null then "nil" else ''"${terminal}"''}
|
||||||
|
|
||||||
${lib.concatMapStringsSep "\n" mkMonitor cfg.monitors}
|
${lib.concatMapStringsSep "\n" mkMonitor cfg.monitors}
|
||||||
''
|
''
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ in
|
|||||||
display-managers = {
|
display-managers = {
|
||||||
sddm = {
|
sddm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
scale = "1.25";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user