feat(font): Use monaspace Krypton

This commit is contained in:
Uttarayan Mondal
2024-04-16 20:22:58 +05:30
parent 28c77e80cd
commit 5c68944f71
7 changed files with 15 additions and 10 deletions

View File

@@ -90,6 +90,7 @@ in {
cachix cachix
fzf fzf
(nerdfonts.override {fonts = ["Hasklig"];}) (nerdfonts.override {fonts = ["Hasklig"];})
monaspace
pfetch-rs pfetch-rs
hotedit hotedit
(pkgs.wrapMpv (pkgs.wrapMpv
@@ -275,8 +276,8 @@ in {
base_url = "https://pass.uttarayan.me"; base_url = "https://pass.uttarayan.me";
pinentry = pinentry =
if device.isMac if device.isMac
# then pkgs.pinentry_mac then pkgs.pinentry_mac
then pkgs.pinentry-curses # then pkgs.pinentry-curses
else pkgs.pinentry-gnome3; else pkgs.pinentry-gnome3;
}; };
}; };

View File

@@ -6,7 +6,8 @@
programs.kitty = { programs.kitty = {
enable = device.hasGui; enable = device.hasGui;
font = { font = {
name = "Hasklug Nerd Font Mono"; # name = "Hasklug Nerd Font Mono";
name = "Monaspace Krypton Var Medium";
size = 13; size = 13;
}; };
settings = { settings = {

View File

@@ -14,6 +14,7 @@
return { return {
term = "wezterm", term = "wezterm",
font = wezterm.font_with_fallback({ font = wezterm.font_with_fallback({
"Monaspace Krypton",
"Hasklug Nerd Font Mono", "Hasklug Nerd Font Mono",
"Symbols Nerd Font Mono" "Symbols Nerd Font Mono"
}), }),
@@ -24,7 +25,7 @@
window_background_opacity = 0.8, window_background_opacity = 0.8,
cursor_blink_rate = 8, cursor_blink_rate = 8,
default_cursor_style = "BlinkingBlock", default_cursor_style = "BlinkingBlock",
default_prog = { "${pkgs.fish.outPath}/bin/fish", "-l" }, default_prog = { "${pkgs.fish}/bin/fish", "-l" },
window_padding = { window_padding = {
left = 2, left = 2,
right = 0, right = 0,

2
flake.lock generated
View File

@@ -1239,7 +1239,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-vI2Aw+fUWRppZuFnPyD0nvhKB4IdaX00AoXJAgsydjM=", "narHash": "sha256-Z+jHiHfkHgc42uzQpNO1XYh9RNYzzZYNda35WJx5ib0=",
"path": "./neovim", "path": "./neovim",
"type": "path" "type": "path"
}, },

View File

@@ -9,7 +9,8 @@
settings = { settings = {
main = { main = {
shell = "${pkgs.fish.outPath}/bin/fish"; shell = "${pkgs.fish.outPath}/bin/fish";
font = "Hasklug Nerd Font Mono:size=13"; # font = "Hasklug Nerd Font Mono:size=13";
font = "Monaspace Krypton:size=13";
initial-window-size-pixels = "1440x800"; initial-window-size-pixels = "1440x800";
}; };
colors = { colors = {

View File

@@ -485,7 +485,8 @@ in rec {
} }
} }
else else
vim.o.guifont = "Hasklug Nerd Font Mono:h13" vim.o.guifont = "Monaspace Krypton:h13"
-- vim.o.guifont = "Hasklug Nerd Font Mono:h13"
vim.g.neovide_cursor_vfx_mode = "railgun" vim.g.neovide_cursor_vfx_mode = "railgun"
end end
@@ -558,8 +559,7 @@ in rec {
command = function(meta) command = function(meta)
local db = os.getenv("DATABASE_PATH") local db = os.getenv("DATABASE_PATH")
if db == nil then if db == nil then
local filename = vim.api.nvim_buf_get_name(meta.current_bufnr) return { '${pkgs.sqlite}/bin/sqlite3', ':memory:' }
return { '${pkgs.sqlite}/bin/sqlite3', ':memory:', filename}
else else
return { '${pkgs.sqlite}/bin/sqlite3', db } return { '${pkgs.sqlite}/bin/sqlite3', db }
end end
@@ -569,7 +569,7 @@ in rec {
}, },
-- How the repl window will be displayed -- How the repl window will be displayed
-- See below for more information -- See below for more information
repl_open_cmd = require('iron.view').right(40), repl_open_cmd = require('iron.view').right(60),
}, },
-- Iron doesn't set keymaps by default anymore. -- Iron doesn't set keymaps by default anymore.
-- You can set them here or manually add keymaps to the functions in iron.core -- You can set them here or manually add keymaps to the functions in iron.core

View File

@@ -219,6 +219,7 @@
gnumake gnumake
python3 python3
(nerdfonts.override {fonts = ["FiraCode" "Hasklig"];}) (nerdfonts.override {fonts = ["FiraCode" "Hasklig"];})
monaspace
]; ];
sessionVariables = { sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1"; WLR_NO_HARDWARE_CURSORS = "1";