uppdate form working nixos
Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
1 parent
04a3fdac28
commit
030e97e2fe
71 files changed
+1149
-97
No files matched your search
Regular → Executable
+126
-61
@@ -8,13 +8,45 @@ local nix = require("nixvars")
|
||||
|
||||
-- Any output, native mode, placed automatically. Use mode = "highrr" to prefer
|
||||
-- the highest refresh rate instead.
|
||||
hl.env("AQ_DRM_DEVICES", "/dev/dri/card1:/dev/dri/card0")
|
||||
hl.monitor({
|
||||
output = "",
|
||||
mode = "preferred",
|
||||
position = "auto",
|
||||
scale = "auto",
|
||||
output = "DP-1",
|
||||
mode = "preferred",
|
||||
position = "0x0",
|
||||
scale = "1",
|
||||
bitdepth = 10,
|
||||
supports_wide_color = 1,
|
||||
supports_hdr = 0,
|
||||
sdrbrightness = "1.25",
|
||||
sdrsaturation = "1.2",
|
||||
vrr = 1,
|
||||
cm = "auto",
|
||||
sdr_min_luminance = 0,
|
||||
sdr_max_luminance = 200,
|
||||
-- icc = "/home/faumaray/Documents/ICC Profile_20240726/CxxG5xT.icm",
|
||||
sdr_eotf = "gamma22",
|
||||
})
|
||||
|
||||
-- monitor = DP-2, preferred, -2560x0, 1, bitdepth, 10, vrr, 1, icc, /home/faumaray/Documents/ICC Profile_20240726/ASUS_Display_sRGB.icc
|
||||
hl.monitor({
|
||||
output = "DP-2",
|
||||
mode = "2560x1440@144",
|
||||
position = "-2560x0",
|
||||
-- position = -1440x0
|
||||
scale = "1",
|
||||
-- transform = 1
|
||||
bitdepth = 10,
|
||||
supports_wide_color = 1,
|
||||
supports_hdr = 0,
|
||||
-- sdrbrightness = 1.0,
|
||||
-- sdrsaturation = 1.1,
|
||||
vrr = 1,
|
||||
sdr_eotf = "gamma22",
|
||||
cm = "auto",
|
||||
-- icc = "/home/faumaray/Documents/ICC Profile_20240726/ASUS_Display_sRGB.icm",
|
||||
-- sdr_min_luminance = 0,
|
||||
-- sdr_max_luminance = 50
|
||||
})
|
||||
-------------------------------
|
||||
---- ENVIRONMENT VARIABLES ----
|
||||
-------------------------------
|
||||
@@ -22,7 +54,7 @@ hl.monitor({
|
||||
hl.env("XCURSOR_SIZE", tostring(nix.cursorSize))
|
||||
hl.env("HYPRCURSOR_SIZE", tostring(nix.cursorSize))
|
||||
if nix.cursorTheme ~= "" then
|
||||
hl.env("XCURSOR_THEME", nix.cursorTheme)
|
||||
hl.env("XCURSOR_THEME", nix.cursorTheme)
|
||||
end
|
||||
|
||||
-----------------------
|
||||
@@ -32,67 +64,84 @@ end
|
||||
-- Gaps, rounding, shadow and blur follow the Noctalia documentation so the
|
||||
-- shell's bar and panels sit well on top of the windows.
|
||||
hl.config({
|
||||
general = {
|
||||
gaps_in = 5,
|
||||
gaps_out = 10,
|
||||
cursor = {
|
||||
no_hardware_cursors = 0,
|
||||
},
|
||||
xwayland = {
|
||||
force_zero_scaling = false,
|
||||
create_abstract_socket = true,
|
||||
},
|
||||
render = {
|
||||
send_content_type = true,
|
||||
direct_scanout = 0,
|
||||
-- cm_fs_passthrough = 1,
|
||||
cm_auto_hdr = 0,
|
||||
cm_sdr_eotf = 1,
|
||||
},
|
||||
quirks = {
|
||||
prefer_hdr = 0,
|
||||
},
|
||||
general = {
|
||||
gaps_in = 5,
|
||||
gaps_out = 10,
|
||||
|
||||
border_size = 2,
|
||||
border_size = 2,
|
||||
|
||||
col = {
|
||||
-- Catppuccin Mocha: mauve to blue, surface1 when unfocused.
|
||||
active_border = { colors = { "rgba(cba6f7ee)", "rgba(89b4faee)" }, angle = 45 },
|
||||
inactive_border = "rgba(45475aaa)",
|
||||
},
|
||||
col = {
|
||||
-- Catppuccin Mocha: mauve to blue, surface1 when unfocused.
|
||||
active_border = "rgba(33ccffee)",
|
||||
inactive_border = "rgba(595959aa)",
|
||||
},
|
||||
|
||||
resize_on_border = true,
|
||||
resize_on_border = true,
|
||||
|
||||
-- Only windows with the `immediate` rule (see 30-rules.lua) tear.
|
||||
allow_tearing = true,
|
||||
-- Only windows with the `immediate` rule (see 30-rules.lua) tear.
|
||||
allow_tearing = true,
|
||||
|
||||
layout = "dwindle",
|
||||
},
|
||||
layout = "dwindle",
|
||||
},
|
||||
|
||||
decoration = {
|
||||
rounding = 20,
|
||||
rounding_power = 2,
|
||||
decoration = {
|
||||
rounding = 20,
|
||||
rounding_power = 2,
|
||||
|
||||
shadow = {
|
||||
enabled = true,
|
||||
range = 4,
|
||||
render_power = 3,
|
||||
color = 0xee1a1a1a,
|
||||
},
|
||||
shadow = {
|
||||
enabled = true,
|
||||
range = 4,
|
||||
render_power = 3,
|
||||
color = 0xee1a1a1a,
|
||||
},
|
||||
|
||||
blur = {
|
||||
enabled = true,
|
||||
size = 3,
|
||||
passes = 2,
|
||||
vibrancy = 0.1696,
|
||||
},
|
||||
},
|
||||
blur = {
|
||||
enabled = true,
|
||||
size = 3,
|
||||
passes = 2,
|
||||
vibrancy = 0.1696,
|
||||
},
|
||||
},
|
||||
|
||||
animations = {
|
||||
enabled = true,
|
||||
},
|
||||
animations = {
|
||||
enabled = true,
|
||||
},
|
||||
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
},
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
},
|
||||
|
||||
master = {
|
||||
new_status = "master",
|
||||
},
|
||||
master = {
|
||||
new_status = "master",
|
||||
},
|
||||
|
||||
misc = {
|
||||
-- Noctalia draws the wallpaper.
|
||||
force_default_wallpaper = 0,
|
||||
disable_hyprland_logo = true,
|
||||
},
|
||||
misc = {
|
||||
-- Noctalia draws the wallpaper.
|
||||
force_default_wallpaper = 0,
|
||||
disable_hyprland_logo = true,
|
||||
},
|
||||
|
||||
ecosystem = {
|
||||
no_update_news = true,
|
||||
no_donation_nag = true,
|
||||
},
|
||||
ecosystem = {
|
||||
no_update_news = true,
|
||||
no_donation_nag = true,
|
||||
},
|
||||
})
|
||||
|
||||
---------------
|
||||
@@ -100,18 +149,34 @@ hl.config({
|
||||
---------------
|
||||
|
||||
hl.config({
|
||||
input = {
|
||||
kb_layout = nix.kbLayout,
|
||||
kb_options = nix.kbOptions,
|
||||
input = {
|
||||
kb_layout = nix.kbLayout,
|
||||
kb_options = nix.kbOptions,
|
||||
|
||||
numlock_by_default = true,
|
||||
numlock_by_default = true,
|
||||
|
||||
follow_mouse = 1,
|
||||
sensitivity = 0,
|
||||
},
|
||||
follow_mouse = 1,
|
||||
sensitivity = 0,
|
||||
},
|
||||
})
|
||||
|
||||
-- Persistent workspaces keep the empty ones visible in Noctalia's indicator.
|
||||
for i = 1, 5 do
|
||||
hl.workspace_rule({ workspace = tostring(i), persistent = true })
|
||||
hl.workspace_rule({ workspace = tostring(i), persistent = true })
|
||||
end
|
||||
|
||||
for i = 1, 10 do
|
||||
if i % 2 == 0 then
|
||||
if i <= 5 then
|
||||
hl.workspace_rule({ workspace = tostring(i), persistent = true, monitor = "DP-2" })
|
||||
else
|
||||
hl.workspace_rule({ workspace = tostring(i), persistent = false, monitor = "DP-2" })
|
||||
end
|
||||
else
|
||||
if i <= 5 then
|
||||
hl.workspace_rule({ workspace = tostring(i), persistent = true, monitor = "DP-1" })
|
||||
else
|
||||
hl.workspace_rule({ workspace = tostring(i), persistent = false, monitor = "DP-1" })
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user