summaryrefslogtreecommitdiff
path: root/hm/shell
diff options
context:
space:
mode:
Diffstat (limited to 'hm/shell')
-rw-r--r--hm/shell/fish.nix1
-rw-r--r--hm/shell/foot.nix19
2 files changed, 11 insertions, 9 deletions
diff --git a/hm/shell/fish.nix b/hm/shell/fish.nix
index 9fb6a29..88a4493 100644
--- a/hm/shell/fish.nix
+++ b/hm/shell/fish.nix
@@ -30,6 +30,7 @@ in
ff = "fastfetch";
cat = "bat";
ls = "eza";
+ yt = "yt-dlp";
};
plugins = [
diff --git a/hm/shell/foot.nix b/hm/shell/foot.nix
index a9c3eac..c840b5e 100644
--- a/hm/shell/foot.nix
+++ b/hm/shell/foot.nix
@@ -1,11 +1,14 @@
{ pkgs, lib, config, ... }:
+
let
cfg = config.hm.shell.foot;
- footTheme = pkgs.fetchurl {
- url = "https://codeberg.org/dnkl/foot/src/branch/master/themes/gruvbox-dark";
- sha256 = "";
- };
+ footTheme = pkgs.runCommand "gruvbox-dark" { } ''
+ sed 's/\[colors-dark\]/\[colors\]/g' ${pkgs.fetchurl {
+ url = "https://codeberg.org/dnkl/foot/raw/branch/master/themes/gruvbox-dark";
+ sha256 = "sha256-hlmLklG/vAEDy8I+k13+o4ZR6Cq6lTxOconjf9M75eo=";
+ }} > $out
+ '';
in
{
options.hm.shell.foot = {
@@ -16,21 +19,19 @@ in
description = "Font size for the foot terminal";
};
};
+
config = lib.mkIf cfg.enable {
programs.foot = {
enable = true;
settings = {
main = {
font = "JetBrainsMonoNFM-Regular:size=${toString cfg.fontSize}";
- box-drawings-uses-font-glyphs = "yes";
- include = "${footTheme}";
+ box-drawings-uses-font-glyphs = true;
+ include = "${footTheme}";
};
scrollback = {
lines = 10000;
};
- mouse = {
- hide-when-typing = "yes";
- };
};
};
};