Add jpbar, fix fnm, add japanese typography

master
Ian Mancini 3 years ago
parent ae76f32489
commit 7ce052b1db

@ -4,7 +4,7 @@ extends = "base"
[custom.polybar] [custom.polybar]
modules_left = "i3" modules_left = "i3"
modules_center = "" modules_center = ""
modules_right = "eth wifi cpu memory volume batteryemoji time date xkeyboard" modules_right = "cpu memory time date xkeyboard"
text_offset = "2" text_offset = "2"
icon_font_scale ="8" icon_font_scale ="8"
antialias = "true" antialias = "true"
@ -25,4 +25,14 @@ layout_icon = "⌨️"
charging_icon = "🔋⬆️" charging_icon = "🔋⬆️"
full_charge_icon = "🔋" full_charge_icon = "🔋"
discharging_icon = "🔋⬇️" discharging_icon = "🔋⬇️"
ws0_icon = "home"
ws1_icon = "web"
ws2_icon = "vim"
ws3_icon = "chat"
ws4_icon = "music"
ws5_icon = "design"
ws6_icon = "seven"
ws7_icon = "eight"
ws8_icon = "games"
ws9_icon = "random"
ws_icon = "?" # default

@ -0,0 +1,27 @@
name = "Base with japanese themed Polybar"
extends = "base"
[custom.polybar]
modules_left = "i3"
modules_center = "time date"
modules_right = "cpu memory xkeyboard"
text_offset = "2"
icon_font_scale ="8"
antialias = "true"
bottom = "false"
height = "32"
i3_label = "%icon%"
cpu_icon = "CPU:"
ram_icon = "RAM:"
layout_icon = "KEY:"
ws0_icon = "一"
ws1_icon = "二"
ws2_icon = "三"
ws3_icon = "四"
ws4_icon = "五"
ws5_icon = "六"
ws6_icon = "七"
ws7_icon = "八"
ws8_icon = "九"
ws9_icon = "十"
ws_icon = "" # default

@ -30,7 +30,7 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# fnm # fnm
export PATH=/home/ianmethyst/.fnm:$PATH export PATH=/home/ianmethyst/.fnm:$PATH
eval "`fnm env --multi`" eval "`fnm env`"
# Python # Python

@ -30,16 +30,17 @@ border-top-size = 0
font-0 = {{typography.mono.font}}:style={{typography.mono.weight}}:size={{typography.mono.size}}:{{appearance.polybar.antialias}};{{appearance.polybar.text_offset}} font-0 = {{typography.mono.font}}:style={{typography.mono.weight}}:size={{typography.mono.size}}:{{appearance.polybar.antialias}};{{appearance.polybar.text_offset}}
font-1 = {{typography.emoji.font}}:size={{typography.emoji.size}}:scale={{appearance.polybar.icon_font_scale}}:{{appearance.polybar.antialias}};{{appearance.polybar.text_offset}} font-1 = {{typography.emoji.font}}:size={{typography.emoji.size}}:scale={{appearance.polybar.icon_font_scale}}:{{appearance.polybar.antialias}};{{appearance.polybar.text_offset}}
font-2 = {{typography.japanese.font}}:size={{typography.japanese.size}}:{{appearance.polybar.antialias}};{{appearance.polybar.text_offset}}
modules-left = {{appearance.polybar.modules_left}} modules-left = {{appearance.polybar.modules_left}}
modules-center = {{appearance.polybar.modules_center}} modules-center = {{appearance.polybar.modules_center}}
modules-right = {{appearance.polybar.modules_right}} modules-right = {{appearance.polybar.modules_right}}
tray-position = tray-position = "right"
tray-background = ${colors.background-alt} tray-background = ${colors.background}
tray-padding = 2 tray-padding = 0
tray-maxsize = 18 tray-maxsize = 18
tray-detached = true tray-detached = false
tray-offset-x = -4 tray-offset-x = 0
[module/empty] [module/empty]
type = custom/script type = custom/script
@ -94,17 +95,17 @@ label-visible = {{appearance.polybar.i3_label}}
label-visible-padding= 1 label-visible-padding= 1
label-visible-foreground = ${colors.purple} label-visible-foreground = ${colors.purple}
ws-icon-0 = 1;home ws-icon-0 = 1;{{appearance.polybar.ws0_icon}}
ws-icon-1 = 2;web ws-icon-1 = 2;{{appearance.polybar.ws1_icon}}
ws-icon-2 = 3;vim ws-icon-2 = 3;{{appearance.polybar.ws2_icon}}
ws-icon-3 = 4;chat ws-icon-3 = 4;{{appearance.polybar.ws3_icon}}
ws-icon-4 = 5;music ws-icon-4 = 5;{{appearance.polybar.ws4_icon}}
ws-icon-5 = 6;design ws-icon-5 = 6;{{appearance.polybar.ws5_icon}}
ws-icon-6 = 7;seven ws-icon-6 = 7;{{appearance.polybar.ws6_icon}}
ws-icon-7 = 8;eight ws-icon-7 = 8;{{appearance.polybar.ws7_icon}}
ws-icon-8 = 9;games ws-icon-8 = 9;{{appearance.polybar.ws8_icon}}
ws-icon-9 = 10;random ws-icon-9 = 10;{{appearance.polybar.ws9_icon}}
ws-icon-default = ? ws-icon-default = {{appearance.polybar.ws_icon}}
[module/wifi] [module/wifi]
type = internal/network type = internal/network

@ -26,6 +26,10 @@ italic = "Italic"
bold_italic = "Bold Italic" bold_italic = "Bold Italic"
size = 14 size = 14
[custom.japanese]
font = "Source Han Sans JP"
size = 14
[custom.emoji] [custom.emoji]
font = "Noto Color Emoji" font = "Noto Color Emoji"
size = 14 size = 14

Loading…
Cancel
Save