monitor function

This commit is contained in:
2026-06-14 15:37:26 -05:00
parent 9fe28d373f
commit 8263a9dea2
+4 -4
View File
@@ -89,7 +89,8 @@ hl.config({
hl.config({ hl.config({
misc = { misc = {
force_default_wallpaper = 0, force_default_wallpaper = 0,
disable_hyprland_logo = true disable_hyprland_logo = true,
disable_splash_rendering = true
} }
}) })
@@ -116,10 +117,9 @@ local mainMod = "SUPER"
local function get_unfocused_monitor() local function get_unfocused_monitor()
local monitor = hl.exec_cmd( local monitor = hl.exec_cmd(
[[hyprctl monitors -j | jq -r '[.[] | select(.focused == false) | .name][0]']] "hyprctl monitors -j | jq -r '[.[] | select(.focused == false) | .name][0]'"
) )
return monitor
return monitor:gsub("%s+$", "")
end end
hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(terminal)) hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(terminal))