From f5922d18e1e9cb389d6baf5e24a48f192b9b88b0 Mon Sep 17 00:00:00 2001 From: ooks-io Date: Sun, 26 Nov 2023 22:59:20 +1300 Subject: [PATCH] add: initial foot setup --- .../features/wayland/essentials/default.nix | 1 + .../ooks/features/wayland/essentials/foot.nix | 50 +++++++++++++++++++ .../wayland/window-manager/hyprland/binds.nix | 2 + 3 files changed, 53 insertions(+) create mode 100644 home/ooks/features/wayland/essentials/foot.nix diff --git a/home/ooks/features/wayland/essentials/default.nix b/home/ooks/features/wayland/essentials/default.nix index 9867f8d..11592fe 100644 --- a/home/ooks/features/wayland/essentials/default.nix +++ b/home/ooks/features/wayland/essentials/default.nix @@ -10,6 +10,7 @@ ./gimp.nix ./swaylock.nix ./eww + ./foot.nix ]; xdg.mimeApps.enable = true; diff --git a/home/ooks/features/wayland/essentials/foot.nix b/home/ooks/features/wayland/essentials/foot.nix new file mode 100644 index 0000000..e34f0da --- /dev/null +++ b/home/ooks/features/wayland/essentials/foot.nix @@ -0,0 +1,50 @@ +{ config, pkgs, ... }: + +let + inherit (config.colorscheme) colors; +in + +{ + #home.sessionVariables = { TERMINAL = "foot"; }; + + programs.foot = { + enable = true; + server.enable = true; + settings = { + main = { + font = "${config.fontProfiles.monospace.family}:pixelsize=18:antialias=true"; + font-bold = "${config.fontProfiles.monospace.family}:style=Bold:pixelsize=18:antialias=true"; + font-italic = "${config.fontProfiles.monospace.family}:style=Italic:pixelsize=18:antialias=true"; + font-bold-italic = "${config.fontProfiles.monospace.family}:style=Bold Italic:pixelsize=18:antialias=true"; + dpi-aware = "yes"; + }; + colors = { + alpha = 1.0; + foreground = "${colors.base05}"; + background = "${colors.base00}"; + regular0 = "${colors.base00}"; # black + regular1 = "${colors.base08}"; # red + regular2 = "${colors.base0B}"; # green + regular3 = "${colors.base0A}"; # yellow + regular4 = "${colors.base0D}"; # blue + regular5 = "${colors.base0E}"; # magenta + regular6 = "${colors.base0C}"; # cyan + regular7 = "${colors.base05}"; # white + bright0 = "${colors.base03}"; # bright black + bright1 = "${colors.base08}"; # bright red + bright2 = "${colors.base0B}"; # bright green + bright3 = "${colors.base0A}"; # bright yellow + bright4 = "${colors.base0D}"; # bright blue + bright5 = "${colors.base0E}"; # bright magenta + bright6 = "${colors.base0C}"; # bright cyan + bright7 = "${colors.base07}"; # bright white + "16" = "${colors.base09}"; + "17" = "${colors.base0F}"; + "18" = "${colors.base01}"; + "19" = "${colors.base02}"; + "20" = "${colors.base04}"; + "21" = "${colors.base06}"; + }; + }; + }; +} diff --git a/home/ooks/features/wayland/window-manager/hyprland/binds.nix b/home/ooks/features/wayland/window-manager/hyprland/binds.nix index 8802617..deb922e 100644 --- a/home/ooks/features/wayland/window-manager/hyprland/binds.nix +++ b/home/ooks/features/wayland/window-manager/hyprland/binds.nix @@ -50,6 +50,7 @@ in volume = "${volumeScript}/bin/volume"; swaylock = "${config.programs.swaylock.package}/bin/swaylock"; + foot = "${config.programs.foot.package}/bin/foot"; spotify = "${terminal} -e spotify_player"; spotifyctl = "${pkgs.spotify-player}/bin/spotify_player"; @@ -68,6 +69,7 @@ in "SUPER, e, exec, ${editor}" "SUPER, m, exec, ${spotify}" "SUPERSHIFT, P, exec, ${password}" + "SUPERSHIFT, return, exec, ${foot}" # Spotify PLayer Controls