2024-07-26 16:57:20 +07:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.profile.home.programs.foot;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.foot = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
main = {
|
|
|
|
font = "JetBrainsMono Nerd Font Mono:size=12";
|
|
|
|
include = lib.mkIf config.profile.hyprland.enable "${config.home.homeDirectory}/.config/foot/colors.ini";
|
|
|
|
};
|
|
|
|
mouse = {
|
|
|
|
hide-when-typing = "yes";
|
|
|
|
};
|
2024-08-01 22:46:18 +07:00
|
|
|
cursor = {
|
|
|
|
style = "beam";
|
|
|
|
blink = "yes";
|
|
|
|
};
|
2024-07-26 16:57:20 +07:00
|
|
|
};
|
|
|
|
};
|
2024-08-14 23:13:14 +07:00
|
|
|
|
|
|
|
programs.zsh.initExtra = /*bash*/ ''
|
|
|
|
function osc7-pwd() {
|
|
|
|
emulate -L zsh # also sets localoptions for us
|
|
|
|
setopt extendedglob
|
|
|
|
local LC_ALL=C
|
|
|
|
printf '\e]7;file://%s%s\e\' $HOST ''${PWD//(#m)([^@-Za-z&-;_~])/%''${(l:2::0:)$(([##16]#MATCH))}}
|
|
|
|
}
|
|
|
|
|
|
|
|
function chpwd-osc7-pwd() {
|
|
|
|
(( ZSH_SUBSHELL )) || osc7-pwd
|
|
|
|
}
|
|
|
|
add-zsh-hook -Uz chpwd chpwd-osc7-pwd
|
|
|
|
'';
|
2024-07-26 16:57:20 +07:00
|
|
|
};
|
|
|
|
}
|