From 97e991cb6b6181eb2fde9e5a51cc641ca6349494 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Fri, 19 Nov 2021 14:26:07 +0100 Subject: [PATCH] Changed to japanese kanji for numbers in polybar Signed-off-by: Louis Vallat --- .config/bspwm/bspwmrc | 9 +++++---- .config/polybar/config | 6 +++++- .config/sxhkd/sxhkdrc | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 790d03f..81eda0e 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -5,7 +5,7 @@ pgrep -x sxhkd > /dev/null || sxhkd & xrdb -load $HOME/.config/.Xresources & dunst -conf $HOME/.config/dunst/dunstrc & picom & -feh --bg-fill ~/Pictures/1153857.png & +feh --bg-fill ~/Pictures/94176792_p0.png & xset -b @@ -18,16 +18,17 @@ for DISP in ${DISPLAYS}; do fi done + killall -q polybar if [ "${EXT_PRIMARY}" != "" ]; then xrandr --output ${EXT_PRIMARY} --primary --output eDP --right-of ${EXT_PRIMARY} - bspc monitor ${EXT_PRIMARY} -d I II III IV V - bspc monitor eDP -d VI VII VIII IX X + bspc monitor ${EXT_PRIMARY} -d 一 二 三 四 五 + bspc monitor eDP -d 六 七 八 九 十 MONITOR=${EXT_PRIMARY} polybar left 2>&1 | tee -a /tmp/polybar.log & disown MONITOR=${EXT_PRIMARY} polybar center 2>&1 | tee -a /tmp/polybar.log & disown MONITOR=${EXT_PRIMARY} polybar right 2>&1 | tee -a /tmp/polybar.log & disown else - bspc monitor eDP -d I II III IV V VI VII VIII IX X + bspc monitor eDP -d 一 二 三 四 五 六 七 八 九 十 fi diff --git a/.config/polybar/config b/.config/polybar/config index adde3fe..e28d36b 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -96,6 +96,7 @@ module-margin-left = 1 module-margin-right = 2 font-0 = FiraCode Nerd Font:style=medium:size=10 +font-1= IPAゴシック:style=Regular modules-center = bspwm tray-position = right @@ -235,7 +236,7 @@ type = internal/network interface = wlp3s0 interval = 3.0 -format-connected = +format-connected = format-connected-underline = #9f78e1 label-connected = %essid% @@ -282,10 +283,13 @@ type = internal/pulseaudio format-volume = format-volume-prefix = "蓼 " format-volume-prefix-foreground = ${colors.foreground-alt} +format-volume-underline = #98c379 +format-underline = #98c379 label-volume = %percentage%% label-volume-foreground = ${root.foreground} label-muted = 遼 NA% +format-muted-underline = #98c379 label-muted-foreground = #666 [module/battery] diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index f310475..5ae333e 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -30,7 +30,7 @@ super + {ampersand,eacute,quotedbl,apostrophe,parenleft,minus,egrave,underscore, bspc desktop -f '^{1,2,3,4,5,6,7,8,9,0}' #Send and follow to the given desktop super + shift + {1,2,3,4,5,6,7,8,9,0} - bspc node -d {'I','II','III','IV','V','VI','VII','VIII','IX','X'} --follow + bspc node -d {'一', '二', '三', '四', '五', '六', '七', '八', '九', '十'} --follow #Preselect the direction super + ctrl + {h,j,k,l} bspc node -p {west,south,north,east}