mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-23 18:29:09 +01:00
some config touchups
This commit is contained in:
parent
ee2a2fcd95
commit
ded75e0377
|
@ -62,10 +62,12 @@ decoration {
|
||||||
new_optimizations = on
|
new_optimizations = on
|
||||||
}
|
}
|
||||||
|
|
||||||
drop_shadow = yes
|
shadow {
|
||||||
shadow_range = 4
|
enabled = yes
|
||||||
shadow_render_power = 3
|
range = 4
|
||||||
col.shadow = rgba(1a1a1aee)
|
render_power = 3
|
||||||
|
color = rgba(1a1a1aee)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
|
@ -104,9 +106,9 @@ gestures {
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||||
|
|
||||||
# Example windowrule v1
|
# Example windowrule v1
|
||||||
windowrule = float, ^(wezterm)$
|
# windowrule = float, ^(wezterm)$
|
||||||
# Example windowrule v2
|
# Example windowrule v2
|
||||||
windowrulev2 = float,class:^(wezterm)$, title:^(wezterm)$
|
# windowrulev2 = float,class:^(wezterm)$, title:^(wezterm)$
|
||||||
windowrulev2 = float,class:^(foot)$, title:^(foot)$
|
windowrulev2 = float,class:^(foot)$, title:^(foot)$
|
||||||
windowrulev2 = size 50% 50%,class:^(foot)$, title:^(foot)$
|
windowrulev2 = size 50% 50%,class:^(foot)$, title:^(foot)$
|
||||||
windowrulev2 = center,class:^(foot)$, title:^(foot)$
|
windowrulev2 = center,class:^(foot)$, title:^(foot)$
|
||||||
|
@ -118,7 +120,7 @@ windowrulev2 = xray, floating:1
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
bind = $mainMod, return, exec, foot
|
bind = $mainMod, return, exec, wezterm
|
||||||
bind = $mainMod SHIFT, Q, killactive,
|
bind = $mainMod SHIFT, Q, killactive,
|
||||||
bind = $mainMod, F, fullscreen,
|
bind = $mainMod, F, fullscreen,
|
||||||
bind = $mainMod SHIFT, X, exit,
|
bind = $mainMod SHIFT, X, exit,
|
||||||
|
|
|
@ -11,7 +11,7 @@ end
|
||||||
|
|
||||||
local HOSTNAME = getHostname()
|
local HOSTNAME = getHostname()
|
||||||
|
|
||||||
config.color_scheme = "Apathy"
|
config.color_scheme = "Apathy (base16)"
|
||||||
-- config.font = wezterm.font 'Hack Nerd Font Mono'
|
-- config.font = wezterm.font 'Hack Nerd Font Mono'
|
||||||
config.font = wezterm.font 'Hasklug Nerd Font Mono'
|
config.font = wezterm.font 'Hasklug Nerd Font Mono'
|
||||||
if getHostname() == "lilith" or getHostname() == "alastor" then
|
if getHostname() == "lilith" or getHostname() == "alastor" then
|
||||||
|
@ -21,8 +21,8 @@ else
|
||||||
end
|
end
|
||||||
if os.getenv("DESKTOP_SESSION") == "plasma" or os.getenv("DESKTOP_SESSION") == "plasmax11" then
|
if os.getenv("DESKTOP_SESSION") == "plasma" or os.getenv("DESKTOP_SESSION") == "plasmax11" then
|
||||||
config.window_background_opacity = 1
|
config.window_background_opacity = 1
|
||||||
elseif os.getenv("XDG_CURRENT_DESKTOP") == "sway" then
|
elseif os.getenv("XDG_CURRENT_DESKTOP") == "sway" or os.getenv("XDG_CURRENT_DESKTOP") == "Hyprland" then
|
||||||
config.window_background_opacity = .9
|
config.window_background_opacity = 1
|
||||||
else
|
else
|
||||||
config.window_background_opacity = .8
|
config.window_background_opacity = .8
|
||||||
end
|
end
|
||||||
|
@ -128,7 +128,7 @@ wezterm.on('update-status', function(window, pane)
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
config.front_end = 'WebGpu'
|
config.front_end = 'OpenGL'
|
||||||
for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do
|
for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do
|
||||||
if gpu.backend == 'Vulkan' and gpu.device_type == 'IntegratedGpu' or gpu.device_type == "DiscreteGpu" then
|
if gpu.backend == 'Vulkan' and gpu.device_type == 'IntegratedGpu' or gpu.device_type == "DiscreteGpu" then
|
||||||
config.webgpu_preferred_adapter = gpu
|
config.webgpu_preferred_adapter = gpu
|
||||||
|
@ -137,6 +137,12 @@ for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if HOSTNAME == 'asmodeus' then
|
||||||
|
config.enable_wayland = false
|
||||||
|
else
|
||||||
|
config.enable_wayland = false
|
||||||
|
end
|
||||||
|
|
||||||
config.hide_tab_bar_if_only_one_tab = false
|
config.hide_tab_bar_if_only_one_tab = false
|
||||||
config.use_fancy_tab_bar = false
|
config.use_fancy_tab_bar = false
|
||||||
config.text_background_opacity = 0.3
|
config.text_background_opacity = 0.3
|
||||||
|
@ -144,6 +150,5 @@ config.enable_scroll_bar = false
|
||||||
config.enable_tab_bar = true
|
config.enable_tab_bar = true
|
||||||
config.tab_bar_at_bottom = true
|
config.tab_bar_at_bottom = true
|
||||||
config.hide_mouse_cursor_when_typing = false
|
config.hide_mouse_cursor_when_typing = false
|
||||||
config.enable_wayland = true
|
|
||||||
config.warn_about_missing_glyphs = false
|
config.warn_about_missing_glyphs = false
|
||||||
return config
|
return config
|
||||||
|
|
Loading…
Reference in a new issue