Compare commits

..

2 commits

Author SHA1 Message Date
Casper V. Kristensen 1dd6d00c36 alacritty -> foot 2024-05-25 03:27:23 +02:00
Casper V. Kristensen 318c1de7dd fix waybar calendar weekdays 2024-05-25 00:04:43 +02:00
4 changed files with 60 additions and 31 deletions

View file

@ -1,22 +0,0 @@
{home-manager, ...}: {
# Terminal emulator
# https://wiki.archlinux.org/title/Alacritty
home-manager.users.caspervk = {
programs.alacritty = {
enable = true;
settings = {
key_bindings = [
# It's easy to open a new terminal using Mod+Enter in sway, but it
# always opens in the home directly. This binds Control+Shift+Enter
# to open a new terminal in the current directory.
{
key = "Return";
mods = "Control|Shift";
action = "SpawnNewInstance";
}
];
};
};
};
}

View file

@ -1,15 +1,15 @@
{...}: {
imports = [
./alacritty.nix
./clipman.nix
./flatpak.nix
./foot.nix
./gammastep.nix
./network.nix
./pipewire.nix
./programs.nix
./rofi.nix
./ssh.nix
./sway.nix
./virtd.nix
./rofi.nix
];
}

51
modules/desktop/foot.nix Normal file
View file

@ -0,0 +1,51 @@
{home-manager, ...}: {
# Terminal emulator
# https://codeberg.org/dnkl/foot
home-manager.users.caspervk = {
programs.foot = {
enable = true;
# https://man.archlinux.org/man/foot.ini.5.en
settings = {
main = {
font = "monospace:size=10.25";
letter-spacing = "1";
};
colors = {
# https://alacritty.org/config-alacritty.html
foreground = "d8d8d8";
background = "181818";
regular0 = "181818"; # black
regular1 = "ac4242"; # red
regular2 = "90a959"; # green
regular3 = "f4bf75"; # yellow
regular4 = "6a9fb5"; # blue
regular5 = "aa759f"; # magenta
regular6 = "75b5aa"; # cyan
regular7 = "d8d8d8"; # white
bright0 = "6b6b6b"; # black
bright1 = "c55555"; # red
bright2 = "aac474"; # green
bright3 = "feca88"; # yellow
bright4 = "82b8c8"; # blue
bright5 = "c28cb8"; # magenta
bright6 = "93d3c3"; # cyan
bright7 = "f8f8f8"; # white
dim0 = "0f0f0f"; # black
dim1 = "712b2b"; # red
dim2 = "5f6f3a"; # green
dim3 = "a17e4d"; # yellow
dim4 = "456877"; # blue
dim5 = "704d68"; # magenta
dim6 = "4d7770"; # cyan
dim7 = "8e8e8e"; # white
};
key-bindings = {
# HOW is this not the default?
scrollback-home = "Shift+Home";
scrollback-end = "Shift+End";
};
};
};
};
}

View file

@ -117,7 +117,7 @@
text = "#ffffff";
};
};
terminal = "alacritty";
terminal = "foot";
bars = [{command = "${pkgs.waybar}/bin/waybar";}];
};
@ -164,13 +164,13 @@
mode = "year";
mode-mon-col = 3;
weeks-pos = "left";
on-scroll = 1;
format = {
months = "<span color='#ffead3'><b>{}</b></span>";
days = "<span color='#ecc6d9'><b>{}</b></span>";
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
months = "<span color='#35b9ab'><b>{}</b></span>";
weekdays = "<span color='#21a4df'><b>{}</b></span>";
# https://github.com/Alexays/Waybar/issues/2827
weeks = "<span color='#73ba25'><b>{:%W}</b></span>";
days = "<span color='#35b9ab'>{}</span>";
today = "<span color='#35b9ab' background='#173f4f'><b>{}</b></span>";
};
};
actions = {