From 591c349c85abe13963ce03398dc260628db656df Mon Sep 17 00:00:00 2001 From: xqtc Date: Fri, 19 Jul 2024 16:11:33 +0200 Subject: [PATCH] fueeessseee :PPPPP --- home/config-files/dwl/dwl-config.h | 2 +- home/config-files/wezterm.lua | 9 +++++- home/modules/default.nix | 1 + home/modules/foot.nix | 47 ++++++++++++++++++++++++++++++ home/modules/home-pkgs.nix | 2 ++ 5 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 home/modules/foot.nix diff --git a/home/config-files/dwl/dwl-config.h b/home/config-files/dwl/dwl-config.h index 285ebd4..1fd41b1 100644 --- a/home/config-files/dwl/dwl-config.h +++ b/home/config-files/dwl/dwl-config.h @@ -141,7 +141,7 @@ static const enum libinput_config_tap_button_map button_map = } /* commands */ -static const char *termcmd[] = {"wezterm", NULL}; +static const char *termcmd[] = {"foot", NULL}; static const char *menucmd[] = {"rofi", "-show", "drun", "-show-icons", NULL}; static const char *shmenucmd[] = {"rofi", "-show", "run", "-show-icons", NULL}; static const char *lockcmd[] = {"swaylock", diff --git a/home/config-files/wezterm.lua b/home/config-files/wezterm.lua index cb991fd..4d61e7b 100644 --- a/home/config-files/wezterm.lua +++ b/home/config-files/wezterm.lua @@ -124,6 +124,14 @@ wezterm.on('update-status', function(window, pane) }) end) +for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do + if gpu.backend == 'Vulkan' and gpu.device_type == 'IntegratedGpu' then + config.webgpu_preferred_adapter = gpu + config.front_end = 'WebGpu' + break + end +end + config.hide_tab_bar_if_only_one_tab = false config.use_fancy_tab_bar = false config.text_background_opacity = 0.3 @@ -132,6 +140,5 @@ config.enable_tab_bar = true config.tab_bar_at_bottom = true config.hide_mouse_cursor_when_typing = false config.enable_wayland = true -config.front_end = "OpenGL" config.warn_about_missing_glyphs = false return config diff --git a/home/modules/default.nix b/home/modules/default.nix index 89421c4..41c658e 100644 --- a/home/modules/default.nix +++ b/home/modules/default.nix @@ -12,6 +12,7 @@ ./dwl.nix ./wm.nix ./gtk.nix + ./foot.nix ./qt.nix ./home-pkgs.nix ./git.nix diff --git a/home/modules/foot.nix b/home/modules/foot.nix new file mode 100644 index 0000000..44e698b --- /dev/null +++ b/home/modules/foot.nix @@ -0,0 +1,47 @@ +{ + config, + lib, + ... +}: { + programs.foot = { + enable = true; + settings = { + main = { + font = "ComicShannsMono Nerd Font Mono:size=11"; + dpi-aware = "yes"; + }; + + colors = { + foreground = "cdd6f4"; + background = "1e1e2e"; + + regular0 = "45475a"; + regular1 = "f38ba8"; + regular2 = "a6e3a1"; + regular3 = "f9e2af"; + regular4 = "89b4fa"; + regular5 = "f5c2e7"; + regular6 = "94e2d5"; + regular7 = "bac2de"; + + bright0 = "585b70"; + bright1 = "f38ba8"; + bright2 = "a6e3a1"; + bright3 = "f9e2af"; + bright4 = "89b4fa"; + bright5 = "f5c2e7"; + bright6 = "94e2d5"; + bright7 = "a6adc8"; + + selection-foreground = "cdd6f4"; + selection-background = "414356"; + + search-box-no-match = "11111b f38ba8"; + search-box-match = "cdd6f4 313244"; + + jump-labels = "11111b fab387"; + urls = "89b4fa"; + }; + }; + }; +} diff --git a/home/modules/home-pkgs.nix b/home/modules/home-pkgs.nix index 24615fd..0aa3bc6 100644 --- a/home/modules/home-pkgs.nix +++ b/home/modules/home-pkgs.nix @@ -44,6 +44,8 @@ in { pkgs.anki + pkgs.freetube + pkgs.openvpn pkgs.moodle-dl