Add font in sway
This commit is contained in:
@@ -226,13 +226,14 @@ Forgive me, but I'm =evil=.
|
|||||||
** Appearance
|
** Appearance
|
||||||
*** Fonts
|
*** Fonts
|
||||||
I mainly use these fonts:
|
I mainly use these fonts:
|
||||||
+ =JuliaMono Medium= and =SFMono Nerd Font Mono= as main mono-spaced
|
+ =SFMono Nerd Font Mono= as main mono-spaced
|
||||||
|
+ =JuliaMono= for all other characters
|
||||||
+ =Noto Emoji= to show emojis in emacs
|
+ =Noto Emoji= to show emojis in emacs
|
||||||
+ =Noto JP= for japanese characters
|
+ =Noto JP= for japanese characters
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(set-face-attribute 'default nil :font "SFMono Nerd Font" :height 110 :weight 'medium)
|
(set-face-attribute 'default nil :font "SFMono Nerd Font" :height 110 :weight 'medium)
|
||||||
;; (set-face-attribute 'default nil :font "JuliaMono" :height 110 :weight 'medium)
|
;; (set-face-attribute 'default nil :font "JuliaMono" :height 110 :weight 'medium)
|
||||||
(set-fontset-font t 'unicode "JuliaMono" nil 'append)
|
(set-fontset-font t 'unicode "JuliaMono" nil 'prepend)
|
||||||
(set-fontset-font t 'unicode "Noto Color Emoji" nil 'prepend)
|
(set-fontset-font t 'unicode "Noto Color Emoji" nil 'prepend)
|
||||||
(set-fontset-font t 'unicode "Noto Sans Mono CJK JP" nil 'append)
|
(set-fontset-font t 'unicode "Noto Sans Mono CJK JP" nil 'append)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Read `man 5 sway` for a complete reference.
|
# Read `man 5 sway` for a complete reference.
|
||||||
|
|
||||||
# Font in sway
|
# Font in sway
|
||||||
font pango: JuliaMono 9
|
font pango: SFMono Nerd Font 9
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
@@ -74,7 +74,7 @@ input type:keyboard {
|
|||||||
bindsym $mod+Shift+Backspace kill
|
bindsym $mod+Shift+Backspace kill
|
||||||
|
|
||||||
# Application launcher
|
# Application launcher
|
||||||
set $bemenu bemenu -l 7 --tf "#859900" --hf "#859900" --nb "#002b36" --hb "#002b36" --tb "#002b36" --fb "#002b36" --fn "JuliaMono 13" -i
|
set $bemenu bemenu -l 7 --tf "#859900" --hf "#859900" --nb "#002b36" --hb "#002b36" --tb "#002b36" --fb "#002b36" --fn "SFMono Nerd Font 13" -i
|
||||||
set $files find $HOME -name '*.pdf' -not -path "$HOME/\.*" 2> /dev/null | cut -f 4- -d "/"
|
set $files find $HOME -name '*.pdf' -not -path "$HOME/\.*" 2> /dev/null | cut -f 4- -d "/"
|
||||||
bindsym $mod+d exec dmenu_path | $bemenu | xargs swaymsg exec --
|
bindsym $mod+d exec dmenu_path | $bemenu | xargs swaymsg exec --
|
||||||
bindsym $mod+p exec $files | $bemenu -l 20 -p 'pdfs' | xargs -d '\n' -r xdg-open
|
bindsym $mod+p exec $files | $bemenu -l 20 -p 'pdfs' | xargs -d '\n' -r xdg-open
|
||||||
|
|||||||
Reference in New Issue
Block a user