Moving to alacritty, cleaning up font/size

This commit is contained in:
Joachim Nielandt 2022-06-28 17:34:57 +02:00
parent ed733f17a0
commit f74a21df78
6 changed files with 39 additions and 35 deletions

View File

@ -26,9 +26,15 @@ URxvt*saveLines: 65500
URxvt*loginShell: false URxvt*loginShell: false
!URxvt*termName: screen-256color !URxvt*termName: screen-256color
! Warning! For some font sizes, nerd fonts don't render particular glyphs correctly (✘, for example)
{{- if (or (eq .chezmoi.hostname "nielanjo") (eq .chezmoi.hostname "jnielandt") (eq .chezmoi.hostname "zaptorjezus")) }} {{- if (or (eq .chezmoi.hostname "nielanjo") (eq .chezmoi.hostname "jnielandt") (eq .chezmoi.hostname "zaptorjezus")) }}
URxvt.font: xft:Hasklug Nerd Font Mono:size=10:antialias=true URxvt.font: xft:Hasklug Nerd Font Mono:size=11:antialias=true
URxvt.boldfont: xft:Hasklug Nerd Font Mono:bold:size=10 URxvt.boldfont: xft:Hasklug Nerd Font Mono:bold:size=11:antialias=true
!URxvt.font: xft:OverpassMono Nerd Font:size=10:antialias=true
!URxvt.font: xft:OverpassMono Nerd Font:size=10:antialias=true
!URxvt.font: xft:Fura Code Nerd Font Mono:size=10:antialias=true
!URxvt.font: xft:Hasklug Nerd Font Mono:size=10:antialias=true
!URxvt.boldfont: xft:Hasklug Nerd Font Mono:bold:size=10
{{- else }} {{- else }}
URxvt.font: xft:Hasklug Nerd Font Mono:size=8:antialias=true URxvt.font: xft:Hasklug Nerd Font Mono:size=8:antialias=true
URxvt.boldfont: xft:Hasklug Nerd Font Mono:bold:size=8 URxvt.boldfont: xft:Hasklug Nerd Font Mono:bold:size=8

View File

@ -45,9 +45,9 @@ window:
# #
# Blank space added around the window in pixels. This padding is scaled # Blank space added around the window in pixels. This padding is scaled
# by DPI and the specified value is always added at both opposing sides. # by DPI and the specified value is always added at both opposing sides.
#padding: padding:
# x: 0 x: 10
# y: 0 y: 10
# Spread additional padding evenly around the terminal content. # Spread additional padding evenly around the terminal content.
#dynamic_padding: false #dynamic_padding: false
@ -61,13 +61,13 @@ window:
# Values for `decorations` (macOS only): # Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons # - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background and no title bar buttons # - buttonless: Title bar, transparent background and no title bar buttons
decorations: "None" decorations: "Full"
# Background opacity # Background opacity
# #
# Window opacity as a floating point number from `0.0` to `1.0`. # Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque. # The value `0.0` is completely transparent and `1.0` is opaque.
opacity: 1.0 opacity: 0.9
# Startup Mode (changes require restart) # Startup Mode (changes require restart)
# #
@ -118,7 +118,8 @@ font:
# - (Linux/BSD) monospace # - (Linux/BSD) monospace
# - (Windows) Consolas # - (Windows) Consolas
#family: monospace #family: monospace
family: FiraCode Nerd Font Mono #family: FiraCode Nerd Font Mono
family: Hasklug Nerd Font Mono
# The `style` can be specified to pick a specific face. # The `style` can be specified to pick a specific face.
style: Regular style: Regular
@ -130,7 +131,7 @@ font:
# If the bold family is not specified, it will fall back to the # If the bold family is not specified, it will fall back to the
# value specified for the normal font. # value specified for the normal font.
#family: monospace #family: monospace
family: FiraCode Nerd Font Mono family: Hasklug Nerd Font Mono
# The `style` can be specified to pick a specific face. # The `style` can be specified to pick a specific face.
style: Bold style: Bold
@ -142,7 +143,7 @@ font:
# If the italic family is not specified, it will fall back to the # If the italic family is not specified, it will fall back to the
# value specified for the normal font. # value specified for the normal font.
#family: monospace #family: monospace
family: FiraCode Nerd Font Mono family: Hasklug Nerd Font Mono
# The `style` can be specified to pick a specific face. # The `style` can be specified to pick a specific face.
style: Italic style: Italic
@ -154,7 +155,7 @@ font:
# If the bold italic family is not specified, it will fall back to the # If the bold italic family is not specified, it will fall back to the
# value specified for the normal font. # value specified for the normal font.
#family: monospace #family: monospace
family: FiraCode Nerd Font Mono family: Hasklug Nerd Font Mono
# The `style` can be specified to pick a specific face. # The `style` can be specified to pick a specific face.
style: Bold Italic style: Bold Italic

View File

@ -80,8 +80,8 @@ font xft:Hasklug Nerd Font 8
floating_modifier $mod floating_modifier $mod
# start a terminal # start a terminal
bindsym $mod+Return exec urxvt bindsym $mod+Shift+Return exec urxvt
bindsym $mod+Shift+Return exec kitty bindsym $mod+Return exec alacritty
# TODO make this help window a bit fancier # TODO make this help window a bit fancier
bindsym $mod+F1 exec urxvt -e chezmoi edit ~/.dotfiles/README.md bindsym $mod+F1 exec urxvt -e chezmoi edit ~/.dotfiles/README.md

View File

@ -101,19 +101,16 @@
(setq org-roam-capture-templates (setq org-roam-capture-templates
`(("n" "default note" plain (file "~/org-roam/templates/default.org") `(("n" "default note" plain (file "~/org-roam/templates/default.org")
:if-new :if-new
(file+head "%<%Y%m%d%H%M%S>-${slug}.org" (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "")
"#+title: ${title}\n#+filetags:\n\n")
:unnarrowed t) :unnarrowed t)
("p" "person" plain (file "~/org-roam/templates/person.org") ("p" "person" plain (file "~/org-roam/templates/person.org")
:if-new :if-new
(file+head "%<%Y%m%d%H%M%S>-${slug}.org" (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "")
"#+title: ${title}\n#+created: %U\n#+filetags: person\n\n")
:immediate-finish t :immediate-finish t
:unnarrowed t) :unnarrowed t)
("m" "meeting" plain (file "~/org-roam/templates/meeting.org") ("m" "meeting" plain (file "~/org-roam/templates/meeting.org")
:if-new :if-new
(file+head "%<%Y%m%d%H%M%S>-${slug}.org" (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "")
"#+title: ${title}\n#+created: %U\n#+filetags: meeting\n\n")
:unnarrowed t) :unnarrowed t)
)) ))

View File

@ -3,21 +3,22 @@
# especially useful when setting up a new system # especially useful when setting up a new system
# list is incomplete at the moment # list is incomplete at the moment
sudo pacman -Sy \ sudo pacman -Sy \
pacman-contrib \ alacritty \
qutebrowser \
reflector \
xsel \
xclip \
eid-mw \
redshift \
brightnessctl \ brightnessctl \
inetutils \ dunst \
# steam font dependency eid-mw \
ttf-liberation \
picom \
htop \ htop \
inetutils \
pacman-contrib \
picom \
qutebrowser \
redshift \
reflector \
scrot \ scrot \
dunst ttf-liberation \
xclip \
xsel \
tree \
# these are doom (emacs) dependencies # these are doom (emacs) dependencies
sudo pacman -Sy \ sudo pacman -Sy \
@ -25,10 +26,6 @@ sudo pacman -Sy \
fd \ fd \
pandoc pandoc
# install nice tools
sudo pacman -Sy \
tree
yay -Sy \ yay -Sy \
# siji font for glyphs (polybar) # siji font for glyphs (polybar)
siji-git siji-git

View File

@ -31,6 +31,9 @@ fi
# make sure we get the hwmon variable right for CPU temperatures # make sure we get the hwmon variable right for CPU temperatures
export CPU_TEMP_PATH=$(ls /sys/devices/platform/coretemp*/hwmon/hwmon*/temp*_input | grep -m 1 '') export CPU_TEMP_PATH=$(ls /sys/devices/platform/coretemp*/hwmon/hwmon*/temp*_input | grep -m 1 '')
# this disable auto scaling on X11, alacritty was displaying large font on laptop screen, tiny font on hdmi
export WINIT_X11_SCALE_FACTOR=1
# start the ssh agent, we're lazy, don't want to type passwords all day # start the ssh agent, we're lazy, don't want to type passwords all day
eval $(ssh-agent) eval $(ssh-agent)