1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Ryan Kes
668356ea8e feat(alacritty): set hack as font 2020-11-28 17:41:05 +01:00
Ryan Kes
bc80a26e79 feat: updated default fonts 2020-11-28 17:40:35 +01:00
Ryan Kes
aedbecdfb0 feat(emacs): set sane font defaults 2020-11-28 17:36:58 +01:00
5 changed files with 25 additions and 17 deletions

View File

@ -87,9 +87,10 @@ A repository of my personal configuration files.
- [[https://yarnpkg.com/][yarn]]
- [[https://pwmt.org/projects/zathura/][zathura]]
** Fonts
- [[https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/FiraCode][Fira Code Nerd Patched]]
- [[https://www.google.com/get/noto/][Noto]]
- [[https://savannah.gnu.org/projects/unifont/][Unifont]]
- [[https://www.dafont.com/linux-libertine.font][Linux Libertine]]
- [[https://www.google.com/get/noto/][Noto Fonts]]
- [[https://www.google.com/get/noto/help/emoji/][Noto Color Emoji]]
- Nerd patched [[https://sourcefoundry.org/hack/][Hack]]
** Libraries
*** st / dmenu / dwm
- [[#+title: https://aur.archlinux.org/packages/libxft-bgra/][libxft-bgra]]

View File

@ -106,7 +106,7 @@ font:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
family: JetBrainsMono Nerd Font Mono
family: Hack Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Regular
@ -118,7 +118,7 @@ font:
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
family: JetBrainsMono Nerd Font Mono
family: Hack Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Bold
@ -128,7 +128,7 @@ font:
#
# If the italic family is not specified, it will fall back to the
# value specified for the normal font.
family: JetBrainsMono Nerd Font Mono
family: hack Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Italic
@ -139,7 +139,7 @@ font:
# If the bold italic family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
family: JetBrainsMono Nerd Font Mono
family: Hack Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Bold Italic

View File

@ -106,7 +106,7 @@ font:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
family: JetBrainsMono Nerd Font Mono
family: Hack Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Regular
@ -118,7 +118,7 @@ font:
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
family: JetBrainsMono Nerd Font Mono
family: Hack Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Bold
@ -128,7 +128,7 @@ font:
#
# If the italic family is not specified, it will fall back to the
# value specified for the normal font.
family: JetBrainsMono Nerd Font Mono
family: Hack Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Italic
@ -139,7 +139,7 @@ font:
# If the bold italic family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
family: JetBrainsMono Nerd Font Mono
family: Hack Nerd Font Mono
# The `style` can be specified to pick a specific face.
#style: Bold Italic

View File

@ -1,6 +1,6 @@
* Table of Contents :TOC_3:noexport:
- [[#general-settings][General settings]]
- [[#variable-font-sizes-depending-on-screen-width-set-font-to-jetbrains-mono][Variable font sizes depending on screen width. Set font to JetBrains Mono]]
- [[#variable-font-sizes-depending-on-screen-width-set-font-to-hack][Variable font sizes depending on screen width. Set font to Hack.]]
- [[#theme-is-set-to-doom-molokai-from-doom-themes][Theme is set to doom-molokai from doom-themes]]
- [[#fetch-password-from-authinfo][Fetch password from authinfo]]
- [[#set-relative-line-numbers][Set relative line numbers]]
@ -36,13 +36,20 @@
- [[#open-mdx-files-in-markdown-mode][Open mdx files in markdown-mode]]
* General settings
** Variable font sizes depending on screen width. Set font to [[https://www.jetbrains.com/lp/mono/][JetBrains Mono]]
** Variable font sizes depending on screen width. Set font to [[https://sourcefoundry.org/hack/][Hack]].
#+BEGIN_SRC emacs-lisp
(defun set-font (font-size bigfont-size)
(setq doom-font (font-spec :family "Hack Nerd Font Mono" :size font-size))
(setq doom-big-font (font-spec :family "Hack Nerd Font Mono" :size bigfont-size))
(setq doom-variable-pitch-font (font-spec :family "Liberation Sans" :size font-size))
(setq doom-serif-font (font-spec :family "Liberation Serif" :size font-size))
(setq doom-unicode-font (font-spec :family "JoyPixels"))
)
(when window-system
(if (> (x-display-pixel-width) 2560)
(setq doom-font (font-spec :family "JetBrains Mono" :size 12))
(setq doom-font (font-spec :family "JetBrains Mono" :size 16))))
(set-font 12 24)
(set-font 16 28)))
#+END_SRC
** Theme is set to doom-molokai from [[https://github.com/hlissner/emacs-doom-themes][doom-themes]]
#+BEGIN_SRC emacs-lisp

View File

@ -2,7 +2,7 @@
# Prerequisite & inistalled apps
set prerequisiteApps bat broot brave caffeine-ng exa fslint fzf graphviz isync imagemagick lightdm-gtk-greeter mailcap neofetch npm pandoc-bin pamixer playerctl pulseaudio pulsemixer python pywal ripgrep stow sxiv tldr trayer udisks2 xwallpaper yarn xprop zathura
set prerequisiteFonts otf-nerd-fonts-fira-code noto-fonts ttf-unifont
set prerequisiteFonts ttf-linux-libertine noto-fonts noto-fonts-emoji ttf-liberation nerd-fonts-hack
set prerequisiteLibraries libxft-bgra
set prerequisiteLsp bash-language-server ccls php-language-server python-language-server typescript-language-server-bin vscode-css-languageserver-bin vscode-html-languageserver-bin nodejs-intelephense
set configuredApps alacritty bspwm castero emacs firejail git gnupg gtk lf dunst mpd mpv mpv-mpris ncmpcpp neomutt neovim picom redshift sxhkd tmux tuir weechat