fix(wezterm): broken font redering on 24.11 #152

Merged
jalil merged 2 commits from fix-wezterm into main 2024-11-20 21:41:58 +01:00
2 changed files with 38 additions and 26 deletions

View file

@ -78,7 +78,9 @@ in
settings = lib.mkIf config.jhome.styling.enable (
import ./waybar-settings.nix { inherit config lib; }
);
style = lib.optionalString config.jhome.styling.enable ''
style =
lib.optionalString config.jhome.styling.enable # css
''
.modules-left #workspaces button {
border-bottom: 3px solid @base01;
}
@ -90,10 +92,17 @@ in
# Terminal
wezterm = {
enable = cfg.terminal == "wezterm";
extraConfig = lib.optionalString config.jhome.styling.enable ''
config = {}
extraConfig =
lib.optionalString config.jhome.styling.enable # lua
''
local wezterm = require("wezterm")
local config = wezterm.config_builder()
config.front_end = "WebGpu"
config.hide_tab_bar_if_only_one_tab = true
config.window_padding = { left = 1, right = 1, top = 1, bottom = 1 }
return config
'';
};
@ -102,7 +111,9 @@ in
# PDF reader
zathura.enable = true;
# Auto start sway
zsh.loginExtra = lib.optionalString cfg.sway.autostart ''
zsh.loginExtra =
lib.optionalString cfg.sway.autostart # sh
''
# Start Sway on login to TTY 1
if [ "$TTY" = /dev/tty1 ]; then
exec sway

View file

@ -95,7 +95,8 @@ in
})
(lib.mkIf (enable && linuxOlderThan6_3 && cfg."8bitdoFix") {
# Udev rules to start or stop systemd service when controller is connected or disconnected
services.udev.extraRules = ''
services.udev.extraRules = # udev
''
# May vary depending on your controller model, find product id using 'lsusb'
SUBSYSTEM=="usb", ATTR{idVendor}=="2dc8", ATTR{idProduct}=="3106", ATTR{manufacturer}=="8BitDo", RUN+="${pkgs.systemd}/bin/systemctl start 8bitdo-ultimate-xinput@2dc8:3106"
# This device (2dc8:3016) is "connected" when the above device disconnects