Switch terminal and font

This commit is contained in:
Charlotte Van Petegem 2023-02-14 17:13:25 +01:00
parent 2b77c2d461
commit b551918273
No known key found for this signature in database
GPG key ID: 019E764B7184435A
9 changed files with 37 additions and 100 deletions

View file

@ -138,7 +138,7 @@
;; Font configuration
(defun font-settings ()
"Setup font settings."
(when window-system (set-frame-font "Fira Code 9"))
(when window-system (set-frame-font "Hack 9"))
(set-fontset-font t 'symbol "Noto Color Emoji")
(set-fontset-font t 'symbol "Symbola" nil 'append))
;; Make sure DISPLAY is set correctly in env.

View file

@ -1,13 +1,5 @@
{ config, lib, pkgs, ... }:
let
ligature = pkgs.fetchFromGitHub {
owner = "mickeynp";
repo = "ligature.el";
rev = "9357156a917a021a87b33ee391567a5d8e44794a";
hash = "sha256-Bgb5wFyx0hMilpihxA8cTrRVw71EBOw2DczlM4lSNMs=";
};
in
{
imports = [
./firefox
@ -31,27 +23,6 @@ in
users.users.charlotte.extraGroups = [ "input" "video" ];
chvp = {
base = {
emacs.extraConfig = [
''
;; Ligatures in GUI mode
(use-package ligature
:load-path "${ligature}"
:config
(ligature-set-ligatures 't '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::"
":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>"
"-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_"
"#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**"
"/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>"
"++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<="
"=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*"
"<*>" "<|" "<|>" "<$" "<$>" "<!--" "<-" "<--" "<->" "<+"
"<+>" "<=" "<==" "<=>" "<=<" "<>" "<<" "<<-" "<<=" "<<<"
"<~" "<~~" "</" "</>" "~@" "~-" "~>" "~~" "~~>" "%%")
)
(global-ligature-mode 't)
)
''
];
nix.unfreePackages = [ "google-chrome" ];
};
graphical = {

View file

@ -29,7 +29,7 @@ in
programs = {
mako = {
enable = true;
font = "Fira Code Normal 9";
font = "Hack Regular 9";
};
zsh.loginExtra = ''
if [[ -z "$DISPLAY" ]] && [[ $(tty) = "/dev/tty1" ]]; then
@ -72,9 +72,9 @@ in
down = "j";
up = "k";
right = "l";
terminal = "${pkgs.wezterm}/bin/wezterm";
menu = "${terminal} start --class launcher -- ${launcher}/bin/launcher";
fonts = { names = [ "Fira Code" ]; size = 9.0; style = "Normal"; };
terminal = "${pkgs.foot}/bin/footclient";
menu = "${terminal} --app-id launcher -- ${launcher}/bin/launcher";
fonts = { names = [ "Hack" ]; size = 9.0; style = "Regular"; };
bars = [
{
colors = {
@ -85,7 +85,7 @@ in
inactiveWorkspace = { border = "#ffffff"; background = "#ffffff"; text = "#000000"; };
urgentWorkspace = { border = "#ff8892"; background = "#ff8892"; text = "#000000"; };
};
fonts = { names = [ "Fira Code" ]; size = 9.0; style = "Normal"; };
fonts = { names = [ "Hack" ]; size = 9.0; style = "Regular"; };
position = "top";
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ${status-configuration}";
extraConfig = ''

View file

@ -105,7 +105,7 @@ windows() {
@sway@/bin/swaymsg \[con_id="$window"\] focus
}
CHOSEN=$(cat <(windows_options) <(systemctl_options) <(pass_options) <(nrun_options) <(run_options) <(record_options) <(calc_options) <(emoji_options) | @fzy@/bin/fzy --lines 40 | tail -n1)
CHOSEN=$(cat <(windows_options) <(systemctl_options) <(pass_options) <(nrun_options) <(run_options) <(record_options) <(calc_options) <(emoji_options) | @fzy@/bin/fzy --lines 80 | tail -n1)
if [ -n "$CHOSEN" ]
then

View file

@ -8,8 +8,31 @@
config = lib.mkIf config.chvp.graphical.terminal.enable {
home-manager.users.charlotte = { pkgs, ... }: {
home.packages = [ pkgs.wezterm ];
xdg.configFile."wezterm/wezterm.lua".source = ./wezterm.lua;
home.packages = [ pkgs.foot ];
programs.foot = {
enable = true;
server.enable = true;
settings = {
main = {
font = "Hack:size=9";
dpi-aware = "no";
};
scrollback.lines = 10000;
cursor.blink = true;
colors = {
foreground = "000000";
background = "ffffff";
regular0 = "282828";
regular1 = "a60000";
regular2 = "005e00";
regular3 = "813e00";
regular4 = "0031a9";
regular5 = "721045";
regular6 = "00538b";
regular7 = "f8f8f8";
};
};
};
};
};
}

View file

@ -1,37 +0,0 @@
local wezterm = require 'wezterm';
return {
font = wezterm.font("Fira Code"),
font_size = 9.0,
colors = {
foreground = "#000000",
background = "#ffffff",
cursor_bg = "#777777",
cursor_fg = "#ffffff",
cursor_border = "#777777",
selection_bg = "#000000",
selection_fg = "#ffffff",
ansi = { "#282828", "#a60000", "#005e00", "#813e00", "#0031a9", "#721045", "#00538b", "#f8f8f8" },
brights = { "#000000", "#972500", "#315b00", "#70480f", "#2544bb", "#8f0075", "#30517f", "#ffffff" },
},
enable_scroll_bar = false,
audible_bell = "Disabled",
check_for_updates = false,
enable_tab_bar = false,
cursor_blink_ease_in = "Constant",
cursor_blink_ease_out = "Constant",
default_cursor_style = "BlinkingBlock",
unicode_version = 14,
visual_bell = {
fade_in_function = "EaseIn",
fade_in_duration_ms = 150,
fade_out_function = "EaseOut",
fade_out_duration_ms = 150,
},
window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
},
}

View file

@ -14,14 +14,13 @@
defaultFonts = {
emoji = [ "Noto Color Emoji" ];
# The Tinos and Amiro fonts overlap with Font Awesome's codepoints, so make sure we give Font Awesome a higher priority.
monospace = [ "Fira Code" "Font Awesome 5 Free" ];
sansSerif = [ "Noto Sans" "Font Awesome 5 Free" ];
serif = [ "Noto Serif" "Font Awesome 5 Free" ];
monospace = [ "Hack" "Font Awesome 6 Free" ];
sansSerif = [ "Noto Sans" "Font Awesome 6 Free" ];
serif = [ "Noto Serif" "Font Awesome 6 Free" ];
};
};
fonts = with pkgs; [
fira-code
fira-code-symbols
hack-font
font-awesome
noto-fonts
noto-fonts-cjk