mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
Revert "feat(desktop): try to fix font sizes"
This reverts commit 739d92c5ed.
This commit is contained in:
parent
739d92c5ed
commit
bd718b254d
6 changed files with 35 additions and 65 deletions
|
|
@ -6,7 +6,7 @@ font:
|
||||||
family: JetBrainsMono Nerd Font
|
family: JetBrainsMono Nerd Font
|
||||||
style: Regular
|
style: Regular
|
||||||
|
|
||||||
size: 8
|
size: 10
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TERM: xterm-256color
|
TERM: xterm-256color
|
||||||
|
|
|
||||||
|
|
@ -1,35 +1,32 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
<fontconfig>
|
<fontconfig>
|
||||||
<match>
|
<match target="pattern">
|
||||||
<edit name="pixelsize"><double>16</double></edit>
|
<test qual="any" name="family">
|
||||||
</match>
|
<string>monospace</string>
|
||||||
<match target="pattern">
|
</test>
|
||||||
<test qual="any" name="family">
|
<edit binding="strong" name="family" mode="assign">
|
||||||
<string>monospace</string>
|
<string>DejaVu Sans Mono</string>
|
||||||
</test>
|
</edit>
|
||||||
<edit binding="strong" name="family" mode="assign">
|
</match>
|
||||||
<string>DejaVu Sans Mono</string>
|
<match target="pattern">
|
||||||
</edit>
|
<test qual="any" name="family">
|
||||||
</match>
|
<string>sans-serif</string>
|
||||||
<match target="pattern">
|
</test>
|
||||||
<test qual="any" name="family">
|
<edit binding="strong" name="family" mode="assign">
|
||||||
<string>sans-serif</string>
|
<string>DejaVu Sans</string>
|
||||||
</test>
|
</edit>
|
||||||
<edit binding="strong" name="family" mode="assign">
|
</match>
|
||||||
<string>DejaVu Sans</string>
|
<!--alias>
|
||||||
</edit>
|
<family>monospace</family>
|
||||||
</match>
|
<prefer>
|
||||||
<!--alias>
|
<family>DejaVu Sans Mono Book</family>
|
||||||
<family>monospace</family>
|
</prefer>
|
||||||
<prefer>
|
</alias>
|
||||||
<family>DejaVu Sans Mono Book</family>
|
<alias>
|
||||||
</prefer>
|
<family>sans-serif</family>
|
||||||
</alias>
|
<prefer>
|
||||||
<alias>
|
<family>Ubuntu Regular</family>
|
||||||
<family>sans-serif</family>
|
</prefer>
|
||||||
<prefer>
|
</alias-->
|
||||||
<family>Ubuntu Regular</family>
|
|
||||||
</prefer>
|
|
||||||
</alias-->
|
|
||||||
</fontconfig>
|
</fontconfig>
|
||||||
|
|
|
||||||
|
|
@ -1011,7 +1011,7 @@ influence of C1 on the result."
|
||||||
|
|
||||||
(when (display-graphic-p)
|
(when (display-graphic-p)
|
||||||
(if (x-list-fonts "JetBrainsMono Nerd Font")
|
(if (x-list-fonts "JetBrainsMono Nerd Font")
|
||||||
(set-frame-font "JetBrainsMono Nerd Font 13" nil t)
|
(set-frame-font "JetBrainsMono Nerd Font 10" nil t)
|
||||||
(message "Install JetBrainsMono Nerd Font!")))
|
(message "Install JetBrainsMono Nerd Font!")))
|
||||||
|
|
||||||
(use-package ligature
|
(use-package ligature
|
||||||
|
|
|
||||||
|
|
@ -748,7 +748,7 @@ font:
|
||||||
family: JetBrainsMono Nerd Font
|
family: JetBrainsMono Nerd Font
|
||||||
style: Regular
|
style: Regular
|
||||||
|
|
||||||
size: 8
|
size: 10
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TERM: xterm-256color
|
TERM: xterm-256color
|
||||||
|
|
|
||||||
33
Desktop.org
33
Desktop.org
|
|
@ -86,8 +86,7 @@ However, I'd rather use the =Xresources= file wherever possible. Here is the cod
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
So, whenever a program is capable of reading =.Xresources=, it will get colors from there, otherwise, it will get colors from noweb expressions in the literate config. Thus, in both cases, the color is set in a single Org Mode table.
|
So, whenever a program is capable of reading =.Xresources=, it will get colors from there, otherwise, it will get colors from noweb expressions in the literate config. Thus, in both cases, the color is set in a single Org Mode table.
|
||||||
*** OFF Fonts
|
*** Fonts
|
||||||
CLOSED: [2023-02-17 Fri 20:36]
|
|
||||||
Also, Xresources are used to set =Xft= settings. Unfortunately, the DPI setting has to be unique for each machine, which means I cannot commit =Xresources= to the repo.
|
Also, Xresources are used to set =Xft= settings. Unfortunately, the DPI setting has to be unique for each machine, which means I cannot commit =Xresources= to the repo.
|
||||||
|
|
||||||
#+NAME: get-dpi
|
#+NAME: get-dpi
|
||||||
|
|
@ -100,7 +99,7 @@ Also, Xresources are used to set =Xft= settings. Unfortunately, the DPI setting
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src conf-xdefaults :noweb yes :tangle ~/.Xresources
|
#+begin_src conf-xdefaults :noweb yes :tangle ~/.Xresources
|
||||||
! Xft.dpi: <<get-dpi()>>
|
Xft.dpi: <<get-dpi()>>
|
||||||
#+end_src
|
#+end_src
|
||||||
** Themes
|
** Themes
|
||||||
A few programs I use to customize the apperance are listed below.
|
A few programs I use to customize the apperance are listed below.
|
||||||
|
|
@ -119,39 +118,13 @@ A few programs I use to customize the apperance are listed below.
|
||||||
Net/ThemeName "Matcha-dark-azul"
|
Net/ThemeName "Matcha-dark-azul"
|
||||||
Net/IconThemeName "Papirus-Dark"
|
Net/IconThemeName "Papirus-Dark"
|
||||||
Gtk/DecorationLayout "menu:minimize,maximize,close"
|
Gtk/DecorationLayout "menu:minimize,maximize,close"
|
||||||
Gtk/FontName "Sans 14"
|
Gtk/FontName "Sans 10"
|
||||||
Gtk/MonospaceFontName "JetBrainsMono Nerd Mono 12"
|
Gtk/MonospaceFontName "JetBrainsMono Nerd Mono 12"
|
||||||
Gtk/CursorThemeName "Adwaita"
|
Gtk/CursorThemeName "Adwaita"
|
||||||
Xft/Antialias 1
|
Xft/Antialias 1
|
||||||
Xft/Hinting 0
|
Xft/Hinting 0
|
||||||
Xft/HintStyle "hintnone"
|
Xft/HintStyle "hintnone"
|
||||||
#+end_src
|
#+end_src
|
||||||
** Fontconfig
|
|
||||||
#+begin_src xml ~/.config/fontconfig/fonts.conf
|
|
||||||
<?xml version="1.0"?>
|
|
||||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
|
||||||
<fontconfig>
|
|
||||||
<match>
|
|
||||||
<edit name="pixelsize"><double>16</double></edit>
|
|
||||||
</match>
|
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family">
|
|
||||||
<string>monospace</string>
|
|
||||||
</test>
|
|
||||||
<edit binding="strong" name="family" mode="assign">
|
|
||||||
<string>DejaVu Sans Mono</string>
|
|
||||||
</edit>
|
|
||||||
</match>
|
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family">
|
|
||||||
<string>sans-serif</string>
|
|
||||||
</test>
|
|
||||||
<edit binding="strong" name="family" mode="assign">
|
|
||||||
<string>DejaVu Sans</string>
|
|
||||||
</edit>
|
|
||||||
</match>
|
|
||||||
</fontconfig>
|
|
||||||
#+end_src
|
|
||||||
** MIME
|
** MIME
|
||||||
Setting the default MIME types
|
Setting the default MIME types
|
||||||
#+begin_src conf-unix :tangle ~/.config/mimeapps.list
|
#+begin_src conf-unix :tangle ~/.config/mimeapps.list
|
||||||
|
|
|
||||||
|
|
@ -1632,7 +1632,7 @@ References:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(when (display-graphic-p)
|
(when (display-graphic-p)
|
||||||
(if (x-list-fonts "JetBrainsMono Nerd Font")
|
(if (x-list-fonts "JetBrainsMono Nerd Font")
|
||||||
(set-frame-font "JetBrainsMono Nerd Font 13" nil t)
|
(set-frame-font "JetBrainsMono Nerd Font 10" nil t)
|
||||||
(message "Install JetBrainsMono Nerd Font!")))
|
(message "Install JetBrainsMono Nerd Font!")))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue