mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 08:10:42 +00:00
Add terminal emulators
This commit is contained in:
parent
dcfbbeec27
commit
046ebaf5b7
4 changed files with 156 additions and 0 deletions
65
home/programs/terminal/emulators/foot.nix
Normal file
65
home/programs/terminal/emulators/foot.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
inputs',
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
libsixel # for displaying images
|
||||
];
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
server.enable = true;
|
||||
settings = {
|
||||
main = {
|
||||
# window settings
|
||||
app-id = "foot";
|
||||
title = "foot";
|
||||
locked-title = "no";
|
||||
term = "xterm-256color";
|
||||
pad = "16x16 center";
|
||||
shell = "zsh";
|
||||
|
||||
# notifications
|
||||
notify = "notify-send -a \${app-id} -i \${app-id} \${title} \${body}";
|
||||
selection-target = "clipboard";
|
||||
|
||||
# font and font rendering
|
||||
dpi-aware = false; # this looks more readable on a laptop, but it's unreasonably large
|
||||
font = "Iosevka Nerd Font:size=14";
|
||||
font-bold = "Iosevka Nerd Font:size=14";
|
||||
vertical-letter-offset = "-0.90";
|
||||
};
|
||||
|
||||
scrollback = {
|
||||
lines = 10000;
|
||||
multiplier = 3;
|
||||
};
|
||||
|
||||
tweak = {
|
||||
font-monospace-warn = "no"; # reduces startup time
|
||||
sixel = "yes";
|
||||
};
|
||||
|
||||
cursor = {
|
||||
style = "beam";
|
||||
beam-thickness = 2;
|
||||
};
|
||||
|
||||
mouse = {
|
||||
hide-when-typing = "yes";
|
||||
};
|
||||
|
||||
url = {
|
||||
launch = "xdg-open \${url}";
|
||||
label-letters = "sadfjklewcmpgh";
|
||||
osc8-underline = "url-mode";
|
||||
protocols = "http, https, ftp, ftps, file";
|
||||
uri-characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+=\"'()[]";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue