From ded75e0377500d9f5169bcc3a6c5cf5769481ca5 Mon Sep 17 00:00:00 2001 From: xqtc Date: Fri, 22 Nov 2024 21:19:20 +0100 Subject: [PATCH] some config touchups --- home/config-files/hyprland.conf | 16 +++++++++------- home/config-files/wezterm.lua | 15 ++++++++++----- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/home/config-files/hyprland.conf b/home/config-files/hyprland.conf index 70fe628..d27107e 100644 --- a/home/config-files/hyprland.conf +++ b/home/config-files/hyprland.conf @@ -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, diff --git a/home/config-files/wezterm.lua b/home/config-files/wezterm.lua index 19606f6..d9655e7 100644 --- a/home/config-files/wezterm.lua +++ b/home/config-files/wezterm.lua @@ -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