Skip to content

Commit

Permalink
tweak: stuff about terminals and fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
montchr committed Feb 5, 2025
1 parent bfd062b commit 0c88dfb
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
1 change: 0 additions & 1 deletion home/mixins/workstation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
./trusted.nix

../profiles/graphical/applications/ghostty/default.nix
../profiles/graphical/applications/kitty/default.nix
../profiles/graphical/applications/obs-studio.nix
../profiles/graphical/applications/okular.nix
../profiles/graphical/applications/xournal.nix
Expand Down
4 changes: 3 additions & 1 deletion home/profiles/graphical/applications/ghostty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
enableZshIntegration = true;
installBatSyntax = true;
settings = {
font-size = 13;
font-size = 11;
theme = "dark:catppuccin-frappe,light:catppuccin-latte";
window-decoration = false;
};
};
programs.fuzzel.settings.main.terminal = "ghostty";
wayland.windowManager.sway.config.terminal = "ghostty";
}
3 changes: 3 additions & 0 deletions home/profiles/graphical/applications/kitty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ in
"kitty_mod+enter" = "new_window_with_cwd";
};
};

programs.fuzzel.settings.main.terminal = "kitty";
wayland.windowManager.sway.config.terminal = "kitty";
}
6 changes: 5 additions & 1 deletion home/profiles/graphical/launchers/fuzzel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
...
}:
let
inherit (config.theme) fonts;
cfg = config.programs.fuzzel.package;
in
{
programs.fuzzel.enable = true;
# FIXME: dark-mode support (manual color palette specification)
programs.fuzzel.settings = {
main = {
terminal = "kitty";
font = "${fonts.monospace.name}:size=10";
use-bold = true;
terminal = lib.mkDefault "foot";
layer = "overlay";
};
};
Expand Down
3 changes: 3 additions & 0 deletions home/profiles/graphical/mako.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{ pkgs, config, ... }:
let
theme = config.theme;
in
{
home.packages = [ pkgs.mako ];
services.mako = {
Expand Down
2 changes: 1 addition & 1 deletion home/profiles/graphical/sessions/sway/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ in
'';
config = {
modifier = "Mod4";
terminal = "ghostty";
terminal = lib.mkDefault "foot";
startup = [
{
command = "firefox --profile ~/.mozilla/firefox/home";
Expand Down
3 changes: 1 addition & 2 deletions home/profiles/nnn.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ let
# FIXME: false negative depending on osConfig
isGraphical = (moduleArgs.osConfig.services.xserver.enable or false);

# TODO: add wezterm support; and whatabout zellij?
enablePreviews = config.programs.tmux.enable || kittyCfg.enable;
enablePreviews = true;

# FIXME: make sure the wrapped package can access these
# currently no syntax highlighting in previews
Expand Down

0 comments on commit 0c88dfb

Please sign in to comment.