Change fonts to support CJK characters in conky

master
trémeur 5 years ago
parent a472fdbe88
commit 1e2442eb6e

1
.gitignore vendored

@ -1,3 +1,4 @@
*/nohup.out */nohup.out
nohup.out nohup.out
*~ *~
*#

@ -37,7 +37,7 @@ conky.config = {
draw_shades = false, draw_shades = false,
double_buffer = true, double_buffer = true,
use_xft = true, use_xft = true,
font = 'VictorMono Nerd Font:size=9', font = 'Noto Sans:size=9:style=Regular',
gap_x = 30, gap_x = 30,
gap_y = 25, gap_y = 25,
minimum_width = 5, minimum_width = 5,
@ -62,13 +62,13 @@ conky.config = {
} }
conky.text = [[ conky.text = [[
# ${font VictorMono Nerd Font:size=9:bold}Sync # ${font Noto Sans:size=9:bold}Sync
# ${font VictorMono Nerd Font:size=9:regular}${exec command insync get_sync_progress} # ${font Noto Sans:size=9:regular}${exec command insync get_sync_progress}
# $hr insync very stupidly got rid of this feature in version 3 # $hr insync very stupidly got rid of this feature in version 3
${font VictorMono Nerd Font:size=9:bold}Agenda ${font Noto Sans:size=9:style=Bold}Agenda
${font VictorMono Nerd Font:size=9:regular}${exec command ~/.linux/scripts/today.sh} ${font Noto Sans:size=9:style=Regular}${exec command ~/.linux/scripts/today.sh}
$hr $hr
${font VictorMono Nerd Font:size=9:bold}Music ${font Noto Sans:size=9:style=Bold}Music
${font VictorMono Nerd Font:size=9:regular}${exec command ~/.linux/scripts/nowplaying.sh} ${font Noto Sans CJK JP:size=9:style=Regular}${exec command ~/.linux/scripts/nowplaying.sh}
${execbar command ~/.linux/scripts/cmus-conky-timebar.sh} ${execbar command ~/.linux/scripts/cmus-conky-timebar.sh}
]] ]]

@ -3,18 +3,18 @@
<fontconfig> <fontconfig>
<alias> <alias>
<family>serif</family> <family>serif</family>
<prefer><family>VictorMono Nerd Font</family></prefer> <prefer><family>Noto Serif</family></prefer>
</alias> </alias>
<alias> <alias>
<family>sans-serif</family> <family>sans-serif</family>
<prefer><family>VictorMono Nerd Font</family></prefer> <prefer><family>Noto Sans</family></prefer>
</alias> </alias>
<alias> <alias>
<family>sans</family> <family>sans</family>
<prefer><family>VictorMono Nerd Font</family></prefer> <prefer><family>Noto Sans</family></prefer>
</alias> </alias>
<alias> <alias>
<family>monospace</family> <family>monospace</family>
<prefer><family>VictorMono Nerd Font Mono</family></prefer> <prefer><family>Noto Mono</family></prefer>
</alias> </alias>
</fontconfig> </fontconfig>

@ -2,7 +2,7 @@
gtk-application-prefer-dark-theme=0 gtk-application-prefer-dark-theme=0
gtk-theme-name=Arc gtk-theme-name=Arc
gtk-icon-theme-name=Papirus-Light gtk-icon-theme-name=Papirus-Light
gtk-font-name=VictorMono Nerd Font 10 gtk-font-name=Noto Sans 10
gtk-cursor-theme-name=Suru gtk-cursor-theme-name=Suru
gtk-cursor-theme-size=0 gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH gtk-toolbar-style=GTK_TOOLBAR_BOTH

@ -57,7 +57,7 @@
<keepBorder>yes</keepBorder> <keepBorder>yes</keepBorder>
<animateIconify>yes</animateIconify> <animateIconify>yes</animateIconify>
<font place="ActiveWindow"> <font place="ActiveWindow">
<name>VictorMono Nerd Font</name> <name>Noto Sans</name>
<size>8</size> <size>8</size>
<!-- font size in points --> <!-- font size in points -->
<weight>normal</weight> <weight>normal</weight>
@ -66,7 +66,7 @@
<!-- 'italic' or 'normal' --> <!-- 'italic' or 'normal' -->
</font> </font>
<font place="InactiveWindow"> <font place="InactiveWindow">
<name>VictorMono Nerd Font</name> <name>Noto Sans</name>
<size>8</size> <size>8</size>
<!-- font size in points --> <!-- font size in points -->
<weight>normal</weight> <weight>normal</weight>
@ -75,7 +75,7 @@
<!-- 'italic' or 'normal' --> <!-- 'italic' or 'normal' -->
</font> </font>
<font place="MenuHeader"> <font place="MenuHeader">
<name>VictorMono Nerd Font</name> <name>Noto Sans</name>
<size>9</size> <size>9</size>
<!-- font size in points --> <!-- font size in points -->
<weight>normal</weight> <weight>normal</weight>
@ -84,7 +84,7 @@
<!-- 'italic' or 'normal' --> <!-- 'italic' or 'normal' -->
</font> </font>
<font place="MenuItem"> <font place="MenuItem">
<name>VictorMono Nerd Font</name> <name>Noto Sans</name>
<size>9</size> <size>9</size>
<!-- font size in points --> <!-- font size in points -->
<weight>normal</weight> <weight>normal</weight>
@ -93,7 +93,7 @@
<!-- 'italic' or 'normal' --> <!-- 'italic' or 'normal' -->
</font> </font>
<font place="ActiveOnScreenDisplay"> <font place="ActiveOnScreenDisplay">
<name>VictorMono Nerd Font</name> <name>Noto Sans</name>
<size>9</size> <size>9</size>
<!-- font size in points --> <!-- font size in points -->
<weight>normal</weight> <weight>normal</weight>
@ -102,7 +102,7 @@
<!-- 'italic' or 'normal' --> <!-- 'italic' or 'normal' -->
</font> </font>
<font place="InactiveOnScreenDisplay"> <font place="InactiveOnScreenDisplay">
<name>VictorMono Nerd Font</name> <name>Noto Sans</name>
<size>9</size> <size>9</size>
<!-- font size in points --> <!-- font size in points -->
<weight>normal</weight> <weight>normal</weight>

@ -25,7 +25,7 @@ colorset6_curs=rgb(255,255,255)
colorset6_key=F6 colorset6_key=F6
last_colorset=1 last_colorset=1
scroll_lines=4096 scroll_lines=4096
font=VictorMono Nerd Font Mono Regular 10 font=NotoMono Nerd Font Mono Regular 10
show_always_first_tab=No show_always_first_tab=No
scrollbar=false scrollbar=false
closebutton=true closebutton=true

@ -148,10 +148,10 @@ launcher_item_app = x-terminal-emulator.desktop
# Clock # Clock
time1_format = %H:%M time1_format = %H:%M
time2_format = %-d/%-m/%y time2_format = %-d/%-m/%y
time1_font = VictorMono Nerd Font Bold 10 time1_font = Noto Sans Bold 10
time1_timezone = time1_timezone =
time2_timezone = time2_timezone =
time2_font = VictorMono Nerd Font 8 time2_font = Noto Sans 8
clock_font_color = #000000 100 clock_font_color = #000000 100
clock_padding = 3 3 clock_padding = 3 3
clock_background_id = 2 clock_background_id = 2

Loading…
Cancel
Save