init: firstCommit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
blender
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
code-cursor
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
programs = {
|
||||
direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
set -g fish_greeting ""
|
||||
set -gx SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/ssh-agent"
|
||||
'';
|
||||
};
|
||||
|
||||
xdg.configFile."fish/functions/fish_prompt.fish".source = ./functions/fish_prompt.fish;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
function preexec --on-event fish_preexec
|
||||
set -g _play_command_begin_time (date +%s%3N)
|
||||
end
|
||||
|
||||
function postexec --on-event fish_postexec
|
||||
set -l _status $status
|
||||
if test -z $_play_command_begin_time
|
||||
return
|
||||
end
|
||||
|
||||
set -l code
|
||||
if test $_status -eq 0
|
||||
set_color green
|
||||
set code "✔success:$_status"
|
||||
else
|
||||
set_color red
|
||||
set code "✘error:$_status"
|
||||
end
|
||||
|
||||
set -l took_time
|
||||
set -l millis (echo (date +%s%3N)"-$_play_command_begin_time" | bc)
|
||||
if test $millis -ge 10000
|
||||
set took_time (echo "$millis/1000" | bc)s
|
||||
else if test $millis -ge 1000
|
||||
set took_time (echo "scale=2; $millis/1000" | bc)s
|
||||
else
|
||||
set took_time "$millis""ms"
|
||||
end
|
||||
|
||||
echo -s -n $code\ (set_color magenta)\ $took_time\n
|
||||
end
|
||||
|
||||
function fish_prompt
|
||||
set now_date (set_color cyan)(date +%H:%M:%S)
|
||||
set who_n_where (set_color yellow)$USER::(prompt_hostname)
|
||||
set pwd (prompt_pwd)
|
||||
set enter_mark (set_color red)'❯'(set_color yellow)'❯'(set_color green)'❯'
|
||||
|
||||
echo -e -s -n -- $now_date\ $who_n_where\ (set_color white)\|(set_color yellow)\ $pwd\n$enter_mark\
|
||||
set_color normal
|
||||
end
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.fnott = {
|
||||
enable = true;
|
||||
|
||||
# (Home Manager module の仕様)
|
||||
# https://mipmip.github.io/home-manager-option-search/?query=services.fnott.settings
|
||||
settings = {
|
||||
main = {
|
||||
# --- 配置 / レイヤ ---
|
||||
anchor = "top-right";
|
||||
layer = "overlay"; # フルスクリーンでも出したい場合
|
||||
stacking-order = "bottom-up";
|
||||
|
||||
# --- 余白 ---
|
||||
edge-margin-vertical = 18;
|
||||
edge-margin-horizontal = 18;
|
||||
notification-margin = 10;
|
||||
|
||||
# --- サイズ ---
|
||||
# アイコンを大きめにして視認性を上げる(テキストは控えめに)
|
||||
min-width = 360;
|
||||
max-width = 520;
|
||||
max-height = 0; # 制限したいなら 600 など
|
||||
|
||||
# --- 見た目(モノトーン / シック)---
|
||||
# 背景は黒寄り・透明気味、枠線は薄いグレー、文字は白〜グレー
|
||||
background = "101012dd"; # RGBA 8桁 (rrggbbaa)
|
||||
border-color = "2a2a2fff";
|
||||
border-size = 1;
|
||||
border-radius = 12;
|
||||
|
||||
# パディング(カード感)
|
||||
padding-vertical = 16;
|
||||
padding-horizontal = 18;
|
||||
|
||||
# --- フォント(モダン寄りに)---
|
||||
title-font = "Inter SemiBold 11";
|
||||
summary-font = "Inter Medium 10";
|
||||
body-font = "Inter 10";
|
||||
|
||||
title-color = "f2f2f2ff";
|
||||
summary-color = "d6d6d6ff";
|
||||
body-color = "b8b8b8ff";
|
||||
|
||||
# --- アイコン優位 ---
|
||||
icon-theme = "Papirus-Dark"; # 未導入なら "hicolor" でもOK
|
||||
max-icon-size = 64; # デフォルト32 -> 強調
|
||||
icon = "dialog-information"; # フォールバック(任意)
|
||||
|
||||
dpi-aware = false;
|
||||
};
|
||||
|
||||
low = {
|
||||
default-timeout = 4;
|
||||
border-color = "232327ff";
|
||||
};
|
||||
|
||||
normal = {
|
||||
default-timeout = 7;
|
||||
border-color = "2a2a2fff";
|
||||
};
|
||||
|
||||
critical = {
|
||||
default-timeout = 0;
|
||||
border-color = "6a6a6fff";
|
||||
border-size = 2;
|
||||
background = "101012f2";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
papirus-icon-theme
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
mkOption
|
||||
recursiveUpdate
|
||||
types
|
||||
optionals
|
||||
;
|
||||
rosePineHyprcursor = pkgs.callPackage ./rose-pine-hyprcursor.nix { };
|
||||
|
||||
defaultInput = {
|
||||
kb_layout = "us";
|
||||
kb_variant = "";
|
||||
kb_model = "";
|
||||
kb_options = "";
|
||||
kb_rules = "";
|
||||
|
||||
follow_mouse = true;
|
||||
|
||||
touchpad = {
|
||||
natural_scroll = false;
|
||||
};
|
||||
|
||||
natural_scroll = false;
|
||||
sensitivity = 0.0;
|
||||
};
|
||||
|
||||
wallpaperCommand = config.hare.hyprland.wallpaperCommand;
|
||||
|
||||
baseSettings = {
|
||||
exec-once = [
|
||||
# "/usr/lib/polkit-kde-authentication-agent-1"
|
||||
# "dunst"
|
||||
"swww-daemon"
|
||||
# "copyq --start-server"
|
||||
# "wl-paste --type text --watch cliphist store"
|
||||
# "wl-paste --type image --watch cliphist store"
|
||||
"eww daemon"
|
||||
"eww open bar"
|
||||
"eww open roundedEdge"
|
||||
];
|
||||
exec =
|
||||
optionals (wallpaperCommand != null) [
|
||||
wallpaperCommand
|
||||
]
|
||||
++ [
|
||||
"dconf write /org/gnome/desktop/interface/gtk-theme 'Adwaita Dark'"
|
||||
"dconf write /org/gnome/desktop/interface/icon-theme 'Adwaita Dark'"
|
||||
"dconf write /org/gnome/desktop/interface/document-font-name 'Noto Sans Medium 11'"
|
||||
"dconf write /org/gnome/desktop/interface/font-name 'Noto Sans Medium 11'"
|
||||
"dconf write /org/gnome/desktop/interface/monospace-font-name 'Noto Sans Mono Medium 11'"
|
||||
];
|
||||
env = [
|
||||
"XDG_CURRENT_DESKTOP,Hyprland"
|
||||
"XDG_SESSION_TYPE,wayland"
|
||||
"XDG_SESSION_DESKTOP,Hyprland"
|
||||
];
|
||||
|
||||
ecosystem.no_update_news = true;
|
||||
|
||||
input = defaultInput;
|
||||
|
||||
general = {
|
||||
layout = "dwindle";
|
||||
allow_tearing = true;
|
||||
};
|
||||
|
||||
dwindle = {
|
||||
pseudotile = true;
|
||||
preserve_split = true;
|
||||
};
|
||||
|
||||
misc = {
|
||||
force_default_wallpaper = false;
|
||||
disable_hyprland_logo = true;
|
||||
disable_splash_rendering = true;
|
||||
};
|
||||
|
||||
windowrule = [
|
||||
"animation windowsIn 0, match:title ^(.*wofi.*)$"
|
||||
"float on, match:title ^(.*feh.*)$"
|
||||
"center on, match:title ^(.*feh.*)$"
|
||||
"float on, match:title ^(Picture.*)$"
|
||||
"pin on, match:title ^(Picture.*)$"
|
||||
"immediate on, match:class ^(Terraria)$"
|
||||
];
|
||||
|
||||
workspace = [
|
||||
"1, monitor:DP-2, default:true"
|
||||
"r[2-9], monitor:DP-2"
|
||||
"name:sub, monitor:DP-1, default:true"
|
||||
];
|
||||
|
||||
"$menu" = "uwsm app -- $(tofi-drun)";
|
||||
"$terminal" = "wezterm";
|
||||
"$lock" = "hyprlock";
|
||||
bindm = [
|
||||
# Window Movement & Resizing
|
||||
"SUPER, mouse:272, movewindow"
|
||||
"SUPER, mouse:273, resizewindow"
|
||||
];
|
||||
bind = [
|
||||
# basic
|
||||
"SUPER, return, exec, $menu"
|
||||
"SUPER, E, exec, $terminal"
|
||||
"SUPER, Q, killactive,"
|
||||
"SUPER, L, exec, $lock"
|
||||
"SUPER_SHIFT, M, exec, loginctl terminate-user $USER"
|
||||
|
||||
# prsc
|
||||
", Print, exec, hyprshot -m window -m active --clipboard-only"
|
||||
|
||||
# Clipboard
|
||||
"SUPER, C, exec, copyq show"
|
||||
"SUPER, V, exec, clipman pick -t dmenu"
|
||||
|
||||
# Window navigation
|
||||
"SUPER, F, fullscreen,"
|
||||
"SUPER, Y, pin"
|
||||
"SUPER, I, togglefloating,"
|
||||
"SUPER, O, togglesplit," # dwindle
|
||||
"SUPER, P, pseudo," # dwindle
|
||||
|
||||
# Window focus
|
||||
"SUPER, mouse_down, cyclenext, next"
|
||||
"SUPER, mouse_up, cyclenext, prev"
|
||||
|
||||
"SUPER, left, movefocus, l"
|
||||
"SUPER, right, movefocus, r"
|
||||
"SUPER, up, movefocus, u"
|
||||
"SUPER, down, movefocus, d"
|
||||
|
||||
"SUPER_SHIFT, left, movewindow, l"
|
||||
"SUPER_SHIFT, right, movewindow, r"
|
||||
"SUPER_SHIFT, up, movewindow, u"
|
||||
"SUPER_SHIFT, down, movewindow, d"
|
||||
|
||||
# workspaces
|
||||
"SUPER, 1, workspace, 1"
|
||||
"SUPER, 2, workspace, 2"
|
||||
"SUPER, 3, workspace, 3"
|
||||
|
||||
"SUPER_CTRL, left, workspace, m-1"
|
||||
"SUPER_CTRL, right, workspace, m+1"
|
||||
"SUPER_CTRL_SHIFT, left, workspace, r-1"
|
||||
"SUPER_CTRL_SHIFT, right, workspace, r+1"
|
||||
]
|
||||
++ (
|
||||
# workspaces
|
||||
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
|
||||
builtins.concatLists (
|
||||
builtins.genList (
|
||||
i:
|
||||
let
|
||||
ws = i + 1;
|
||||
in
|
||||
[
|
||||
"SUPER, code:1${toString i}, workspace, ${toString ws}"
|
||||
"SUPER SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
||||
]
|
||||
) 9
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
defaultStyle = {
|
||||
general = {
|
||||
gaps_in = 4;
|
||||
gaps_out = 7;
|
||||
border_size = 3;
|
||||
"col.active_border" = "rgba(6e848cee) rgba(eeeeffee) 90deg";
|
||||
"col.inactive_border" = "rgba(595959aa)";
|
||||
};
|
||||
decoration = {
|
||||
rounding = 10;
|
||||
blur = {
|
||||
enabled = true;
|
||||
size = 6;
|
||||
passes = 2;
|
||||
noise = 0.01;
|
||||
contrast = 0.8;
|
||||
brightness = 0.5;
|
||||
vibrancy = 0.25;
|
||||
vibrancy_darkness = 0.1;
|
||||
};
|
||||
shadow = {
|
||||
enabled = false;
|
||||
range = 4;
|
||||
render_power = 3;
|
||||
color = "rgba(1a1a1aee)";
|
||||
};
|
||||
dim_inactive = false;
|
||||
};
|
||||
animations = {
|
||||
enabled = true;
|
||||
animation = [
|
||||
"windowsIn, 1, 1, default, popin 90%"
|
||||
"windowsOut, 1, 100, default, popin 80%"
|
||||
"windowsMove, 1, 3, default"
|
||||
"border, 1, 10, default"
|
||||
"borderangle, 1, 8, default"
|
||||
"fade, 1, 7, default"
|
||||
"workspaces, 1, 5, default, slidefade 10%"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
styleSettings = recursiveUpdate defaultStyle config.hare.hyprland.style;
|
||||
inputSettings = recursiveUpdate defaultInput config.hare.hyprland.input;
|
||||
in
|
||||
{
|
||||
options.hare.hyprland.style = mkOption {
|
||||
type = types.attrs;
|
||||
default = { };
|
||||
description = "Overlay of Hyprland style tweaks that will be merged on top of the base settings.";
|
||||
};
|
||||
|
||||
options.hare.hyprland.input = mkOption {
|
||||
type = types.attrs;
|
||||
default = { };
|
||||
description = "Overrides for the Hyprland input block (e.g., sensitivity, accel profiles).";
|
||||
};
|
||||
options.hare.hyprland.wallpaperCommand = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = "Command to set the wallpaper (e.g., \"swww img <path>\"); appended to Hyprland's exec list when provided.";
|
||||
};
|
||||
|
||||
config = {
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemd.enable = false;
|
||||
settings = recursiveUpdate (recursiveUpdate baseSettings styleSettings) {
|
||||
input = inputSettings;
|
||||
};
|
||||
plugins = [
|
||||
];
|
||||
};
|
||||
home.packages = [
|
||||
rosePineHyprcursor
|
||||
]
|
||||
++ (with pkgs; [
|
||||
swww
|
||||
eww
|
||||
hyprshot
|
||||
]);
|
||||
home.sessionVariables = {
|
||||
HYPRCURSOR_THEME = "rose-pine-hyprcursor";
|
||||
HYPRCURSOR_SIZE = "24";
|
||||
XCURSOR_SIZE = "24";
|
||||
GTK_BACKEND = "wayland";
|
||||
QT_QPA_PLATFORM = "wayland;xcb";
|
||||
QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
fetchzip,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "rose-pine-hyprcursor";
|
||||
version = "0.3.2";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/ndom91/rose-pine-hyprcursor/archive/refs/tags/v${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-ArUX5qlqAXUqcRqHz4QxXy3KgkfasTPA/Qwf6D2kV0U=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
target=$out/share/icons/${finalAttrs.pname}
|
||||
mkdir -p "$target"
|
||||
cp -r hyprcursors hyprcursors_uncompressed manifest.hl "$target"
|
||||
# include docs for reference
|
||||
cp README.md LICENSE "$target"/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Rose Pine themed Hyprcursor set";
|
||||
homepage = "https://github.com/ndom91/rose-pine-hyprcursor";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
})
|
||||
@@ -0,0 +1,43 @@
|
||||
{ lib }:
|
||||
{
|
||||
general = lib.mkForce {
|
||||
gaps_in = 0;
|
||||
gaps_out = 0;
|
||||
border_size = 2;
|
||||
"col.active_border" = "rgba(6e848cee) rgba(eeeeffee) 90deg";
|
||||
"col.inactive_border" = "rgba(595959aa)";
|
||||
layout = "dwindle";
|
||||
allow_tearing = true;
|
||||
};
|
||||
|
||||
decoration = lib.mkForce {
|
||||
rounding = 0;
|
||||
blur = {
|
||||
enabled = true;
|
||||
size = 6;
|
||||
passes = 2;
|
||||
noise = 0.01;
|
||||
contrast = 0.8;
|
||||
brightness = 0.5;
|
||||
vibrancy = 0.25;
|
||||
vibrancy_darkness = 0.1;
|
||||
};
|
||||
shadow = {
|
||||
enabled = false;
|
||||
};
|
||||
dim_inactive = false;
|
||||
};
|
||||
|
||||
animations = lib.mkForce {
|
||||
enabled = true;
|
||||
animation = [
|
||||
"windowsIn, 1, 1, default, popin 90%"
|
||||
"windowsOut, 1, 100, default, popin 80%"
|
||||
"windowsMove, 1, 3, default"
|
||||
"border, 1, 10, default"
|
||||
"borderangle, 1, 8, default"
|
||||
"fade, 1, 7, default"
|
||||
"workspaces, 1, 5, default, slidefade 10%"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
wlrobs
|
||||
obs-backgroundremoval
|
||||
obs-pipewire-audio-capture
|
||||
obs-shaderfilter
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
programs.tofi.enable = true;
|
||||
programs.tofi.settings = {
|
||||
history = true;
|
||||
text-cursor = true;
|
||||
text-cursor-style = "underscore";
|
||||
text-cursor-corner-radius = 0;
|
||||
auto-accept-single = true;
|
||||
|
||||
font = "monospace";
|
||||
text-color = "#C8C093";
|
||||
prompt-text = "ᐢ˙꒳˙ᐢ <";
|
||||
prompt-padding = 20;
|
||||
prompt-color = "#C8C093";
|
||||
placeholder-text = "Hello, World!";
|
||||
placeholder-color = "#49443C";
|
||||
selection-color = "#76946A";
|
||||
selection-match-color = "#98BB6C";
|
||||
num-results = 0;
|
||||
|
||||
width = 1280;
|
||||
height = 720;
|
||||
result-spacing = 8;
|
||||
background-color = "#1F1F28";
|
||||
outline-width = 0;
|
||||
outline-color = "#000000";
|
||||
border-width = 6;
|
||||
border-color = "#727169";
|
||||
corner-radius = 50;
|
||||
padding-top = 20;
|
||||
padding-bottom = 20;
|
||||
padding-left = 100;
|
||||
padding-right = 100;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
voicevox-core
|
||||
voicevox-engine
|
||||
voicevox
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscode.fhs;
|
||||
profiles.default = {
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.wezterm.enable = true;
|
||||
|
||||
xdg.configFile."wezterm/wezterm.lua".source = ./wezterm.lua;
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
local wezterm = require 'wezterm'
|
||||
local config = {
|
||||
enable_wayland = true,
|
||||
force_reverse_video_cursor = true,
|
||||
|
||||
font_size = 12,
|
||||
|
||||
colors = {
|
||||
foreground = '#dcd7ba',
|
||||
background = 'rgba(31,31,31,0.2)',
|
||||
|
||||
cursor_bg = '#c8c093',
|
||||
cursor_fg = '#c8c093',
|
||||
cursor_border = '#c8c093',
|
||||
|
||||
selection_fg = '#c8c093',
|
||||
selection_bg = '#2d4f67',
|
||||
|
||||
scrollbar_thumb = '#16161d',
|
||||
split = '#16161d',
|
||||
|
||||
ansi = { '#090618', '#c34043', '#76946a', '#c0a36e', '#7e9cd8', '#957fb8', '#6a9589', '#c8c093' },
|
||||
brights = { '#727169', '#e82424', '#98bb6c', '#e6c384', '#7fb4ca', '#938aa9', '#7aa89f', '#dcd7ba' },
|
||||
indexed = { [16] = '#ffa066', [17] = '#ff5d62' },
|
||||
tab_bar = {
|
||||
background = 'rgba(31, 31, 40, 0.5)',
|
||||
new_tab = {
|
||||
bg_color = 'rgba(31, 31, 40, 0.5)',
|
||||
fg_color = '#c8c093',
|
||||
},
|
||||
new_tab_hover = {
|
||||
bg_color = 'rgba(31, 31, 40, 0.5)',
|
||||
fg_color = '#c8c093',
|
||||
intensity = 'Bold'
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
use_fancy_tab_bar = false,
|
||||
show_tab_index_in_tab_bar = false,
|
||||
|
||||
keys = {
|
||||
{ key = 'V', mods = 'CTRL', action = wezterm.action.PasteFrom 'Clipboard' },
|
||||
}
|
||||
}
|
||||
|
||||
local SOLID_LEFT_ARROW = wezterm.nerdfonts.pl_right_hard_divider
|
||||
local SOLID_RIGHT_ARROW = wezterm.nerdfonts.pl_left_hard_divider
|
||||
function tab_title(tab_info)
|
||||
local title = tab_info.tab_title
|
||||
-- if the tab title is explicitly set, take that
|
||||
if title and #title > 0 then
|
||||
return title
|
||||
end
|
||||
-- Otherwise, use the title from the active pane
|
||||
-- in that tab
|
||||
return tab_info.active_pane.title
|
||||
end
|
||||
wezterm.on(
|
||||
'format-tab-title',
|
||||
function(tab, tabs, panes, config, hover, max_width)
|
||||
|
||||
local bg_color = 'rgba(31, 31, 40, 0.5)'
|
||||
local fg_color = '#c8c093'
|
||||
local text_color = '#1f1f28'
|
||||
|
||||
if tab.is_active then
|
||||
fg_color = '#2d4f67'
|
||||
text_color = '#c8c093'
|
||||
end
|
||||
|
||||
local title = wezterm.truncate_right(tab_title(tab), max_width - 4)
|
||||
|
||||
return {
|
||||
{ Background = { Color = bg_color } },
|
||||
{ Foreground = { Color = fg_color } },
|
||||
{ Text = SOLID_LEFT_ARROW },
|
||||
{ Background = { Color = fg_color } },
|
||||
{ Foreground = { Color = text_color } },
|
||||
{ Text = ' ' .. title .. ' ' },
|
||||
{ Background = { Color = bg_color } },
|
||||
{ Foreground = { Color = fg_color } },
|
||||
{ Text = SOLID_RIGHT_ARROW },
|
||||
}
|
||||
end
|
||||
)
|
||||
|
||||
return config
|
||||
@@ -0,0 +1,27 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
extensions = [
|
||||
"nix"
|
||||
"toml"
|
||||
"rust"
|
||||
];
|
||||
|
||||
userSettings = {
|
||||
theme = {
|
||||
mode = "system";
|
||||
dark = "Kanagawa Dragon";
|
||||
light = "Kanagawa Lotus";
|
||||
};
|
||||
hour_format = "hour24";
|
||||
vim_mode = false;
|
||||
buffer_font_size = 12.0;
|
||||
buffer_font_family = "PlemolJP Console NF";
|
||||
};
|
||||
};
|
||||
fonts.fontconfig.enable = true;
|
||||
home.file.".local/share/fonts/plemoljp".source =
|
||||
"${pkgs.plemoljp-nf}/share/fonts/truetype/plemoljp-nf-console";
|
||||
}
|
||||
Reference in New Issue
Block a user