some config touchups

This commit is contained in:
xqtc 2024-11-22 21:19:20 +01:00
parent ee2a2fcd95
commit ded75e0377
Signed by: xqtc
GPG key ID: 2C064D095926D9D1
2 changed files with 19 additions and 12 deletions

View file

@ -62,10 +62,12 @@ decoration {
new_optimizations = on
}
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
shadow {
enabled = yes
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
}
animations {
@ -104,9 +106,9 @@ gestures {
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
# Example windowrule v1
windowrule = float, ^(wezterm)$
# windowrule = float, ^(wezterm)$
# Example windowrule v2
windowrulev2 = float,class:^(wezterm)$, title:^(wezterm)$
# windowrulev2 = float,class:^(wezterm)$, title:^(wezterm)$
windowrulev2 = float,class:^(foot)$, title:^(foot)$
windowrulev2 = size 50% 50%,class:^(foot)$, title:^(foot)$
windowrulev2 = center,class:^(foot)$, title:^(foot)$
@ -118,7 +120,7 @@ windowrulev2 = xray, floating:1
$mainMod = SUPER
# 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, F, fullscreen,
bind = $mainMod SHIFT, X, exit,

View file

@ -11,7 +11,7 @@ end
local HOSTNAME = getHostname()
config.color_scheme = "Apathy"
config.color_scheme = "Apathy (base16)"
-- config.font = wezterm.font 'Hack Nerd Font Mono'
config.font = wezterm.font 'Hasklug Nerd Font Mono'
if getHostname() == "lilith" or getHostname() == "alastor" then
@ -21,8 +21,8 @@ else
end
if os.getenv("DESKTOP_SESSION") == "plasma" or os.getenv("DESKTOP_SESSION") == "plasmax11" then
config.window_background_opacity = 1
elseif os.getenv("XDG_CURRENT_DESKTOP") == "sway" then
config.window_background_opacity = .9
elseif os.getenv("XDG_CURRENT_DESKTOP") == "sway" or os.getenv("XDG_CURRENT_DESKTOP") == "Hyprland" then
config.window_background_opacity = 1
else
config.window_background_opacity = .8
end
@ -128,7 +128,7 @@ wezterm.on('update-status', function(window, pane)
})
end)
config.front_end = 'WebGpu'
config.front_end = 'OpenGL'
for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do
if gpu.backend == 'Vulkan' and gpu.device_type == 'IntegratedGpu' or gpu.device_type == "DiscreteGpu" then
config.webgpu_preferred_adapter = gpu
@ -137,6 +137,12 @@ for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do
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.use_fancy_tab_bar = false
config.text_background_opacity = 0.3
@ -144,6 +150,5 @@ config.enable_scroll_bar = false
config.enable_tab_bar = true
config.tab_bar_at_bottom = true
config.hide_mouse_cursor_when_typing = false
config.enable_wayland = true
config.warn_about_missing_glyphs = false
return config