Nerd Fonts v3 Update Icon Fix

- Fix nerd font icons for v3
This commit is contained in:
Sravan Balaji
2023-05-01 08:56:59 -04:00
parent dfb0318727
commit 34d674a3f8
6 changed files with 42 additions and 43 deletions

View File

@ -4116,7 +4116,7 @@ static char *tagicons[][NUMTAGS] =
#endif // NAMETAG_PATCH #endif // NAMETAG_PATCH
{ {
/* [DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }, */ /* [DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }, */
[DEFAULT_TAGS] = { "", "", " ₃", " ₄", "", "", "", " ₈", " ₉" }, [DEFAULT_TAGS] = { "󰍩", "󰗚", " ₃", " ₄", "󰖟", "", "󰊢", " ₈", " ₉" },
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" }, [ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
[ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" }, [ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" },
}; };
@ -6269,7 +6269,7 @@ click-left = "/home/sravan/.scripts/playerctl.sh --change"
#+BEGIN_SRC conf :tangle polybar/config.ini #+BEGIN_SRC conf :tangle polybar/config.ini
[module/media-playing-prev] [module/media-playing-prev]
type = custom/script type = custom/script
exec = echo "" exec = echo "󰒮"
format = <label> format = <label>
label = %output% label = %output%
label-foreground = ${colors.media-playing-foreground} label-foreground = ${colors.media-playing-foreground}
@ -6299,7 +6299,7 @@ click-left = "/home/sravan/.scripts/playerctl.sh --play-pause"
#+BEGIN_SRC conf :tangle polybar/config.ini #+BEGIN_SRC conf :tangle polybar/config.ini
[module/media-playing-next] [module/media-playing-next]
type = custom/script type = custom/script
exec = echo "" exec = echo "󰒭"
format = <label> format = <label>
label = %output% label = %output%
label-foreground = ${colors.media-playing-foreground} label-foreground = ${colors.media-playing-foreground}
@ -6317,25 +6317,25 @@ click-left = "/home/sravan/.scripts/playerctl.sh --next"
mediaStatus=$(playerctl --player=playerctld metadata 2>&1) mediaStatus=$(playerctl --player=playerctld metadata 2>&1)
if [[ "$mediaStatus" == "No player could handle this command" ]]; then if [[ "$mediaStatus" == "No player could handle this command" ]]; then
echo "" echo "󰡀"
else else
trackid=$(playerctl --player=playerctld metadata --format '{{ mpris:trackid }}') trackid=$(playerctl --player=playerctld metadata --format '{{ mpris:trackid }}')
title=$(playerctl --player=playerctld metadata --format '{{ xesam:title }}') title=$(playerctl --player=playerctld metadata --format '{{ xesam:title }}')
if grep -q -i "netflix" <<< "$title"; then if grep -q -i "netflix" <<< "$title"; then
echo "" echo "󰝆"
elif grep -q -i "hulu" <<< "$title"; then elif grep -q -i "hulu" <<< "$title"; then
echo "" echo "󰠩"
elif grep -q -i "prime video" <<< "$title"; then elif grep -q -i "prime video" <<< "$title"; then
echo "" echo ""
elif grep -q -i "chromium" <<< "$trackid"; then elif grep -q -i "chromium" <<< "$trackid"; then
echo "" echo ""
elif grep -q -i "vlc" <<< "$trackid"; then elif grep -q -i "vlc" <<< "$trackid"; then
echo "" echo "󰕼"
elif grep -q -i "spotify" <<< "$trackid"; then elif grep -q -i "spotify" <<< "$trackid"; then
echo "" echo ""
else else
echo "" echo "󰡀"
fi fi
fi fi
#+END_SRC #+END_SRC
@ -6344,12 +6344,12 @@ fi
mediaStatus=$(/home/sravan/.config/dwm-flexipatch/polybar/scripts/get-media-status.sh) mediaStatus=$(/home/sravan/.config/dwm-flexipatch/polybar/scripts/get-media-status.sh)
if [[ "$mediaStatus" == "N/A" ]]; then if [[ "$mediaStatus" == "N/A" ]]; then
echo "" echo "󰐎"
else else
if [[ "$mediaStatus" == "Playing" ]]; then if [[ "$mediaStatus" == "Playing" ]]; then
echo "" echo "󰏤"
elif [[ "$mediaStatus" == "Paused" ]]; then elif [[ "$mediaStatus" == "Paused" ]]; then
echo "" echo "󰐊"
fi fi
echo $status echo $status
@ -6385,7 +6385,7 @@ else
title="N/A" title="N/A"
fi fi
echo " $title | $artist" echo " $title | 󰠃 $artist"
fi fi
#+END_SRC #+END_SRC
@ -6511,7 +6511,7 @@ format = <label>
; %date% ; %date%
; %time% ; %time%
; Default: %date% ; Default: %date%
label = " %time%" label = "󰥔 %time%"
; label-font = 3 ; label-font = 3
label-foreground = ${colors.time-foreground} label-foreground = ${colors.time-foreground}
label-background = ${colors.time-background} label-background = ${colors.time-background}
@ -6722,7 +6722,7 @@ format = %{A1:kitty btop:}<label>%{A}
; %gb_swap_free% ; %gb_swap_free%
; %gb_swap_used% ; %gb_swap_used%
label = %percentage_used%% label = 󰍛 %percentage_used%%
label-padding = ${sizes.module-padding} label-padding = ${sizes.module-padding}
label-foreground = ${colors.memory-foreground} label-foreground = ${colors.memory-foreground}
label-background = ${colors.memory-background} label-background = ${colors.memory-background}
@ -6825,7 +6825,7 @@ format-unmounted = %{A1:gnome-disks &:} <label-unmounted> %{A}
; %free% ; %free%
; %used% ; %used%
; Default: %mountpoint% %percentage_free%% ; Default: %mountpoint% %percentage_free%%
label-mounted = %percentage_used%% label-mounted = 󰋊 %percentage_used%%
label-mounted-foreground = ${colors.filesystem-foreground} label-mounted-foreground = ${colors.filesystem-foreground}
label-mounted-background = ${colors.filesystem-background} label-mounted-background = ${colors.filesystem-background}
label-mounted-underline = ${colors.filesystem-underline} label-mounted-underline = ${colors.filesystem-underline}
@ -6868,7 +6868,7 @@ content-padding = ${sizes.module-padding}
#+BEGIN_SRC conf :tangle polybar/config.ini #+BEGIN_SRC conf :tangle polybar/config.ini
[module/deadd-notification-center] [module/deadd-notification-center]
type = custom/text type = custom/text
content = "" content = "󰂚"
; "content" has the same properties as "format-NAME" ; "content" has the same properties as "format-NAME"
; content-background = #000 ; content-background = #000
@ -6956,19 +6956,18 @@ format-muted-overline = ${colors.volume-overline}
; Available tokens: ; Available tokens:
; %percentage% (default) ; %percentage% (default)
; %decibels% ; %decibels%
label-muted = muted label-muted = 󰝟 muted
; Only applies if <ramp-volume> is used ; Only applies if <ramp-volume> is used
ramp-volume-0 = ramp-volume-0 = 󰕿
ramp-volume-1 = 奔 ramp-volume-1 = 󰖀
ramp-volume-2 = ramp-volume-2 = 󰕾
; Right and Middle click ; Right and Middle click
click-right = pavucontrol click-right = pavucontrol
; click-middle = ; click-middle =
#+END_SRC #+END_SRC
*** Launch Script *** Launch Script
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle polybar/launch.sh #+BEGIN_SRC shell :shebang #!/bin/bash :tangle polybar/launch.sh

View File

@ -442,7 +442,7 @@ static char *tagicons[][NUMTAGS] =
#endif // NAMETAG_PATCH #endif // NAMETAG_PATCH
{ {
/* [DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }, */ /* [DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }, */
[DEFAULT_TAGS] = { "", "", " ₃", " ₄", "", "", "", " ₈", " ₉" }, [DEFAULT_TAGS] = { "󰍩", "󰗚", " ₃", " ₄", "󰖟", "", "󰊢", " ₈", " ₉" },
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" }, [ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
[ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" }, [ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" },
}; };

View File

@ -555,7 +555,7 @@ click-left = "/home/sravan/.scripts/playerctl.sh --change"
[module/media-playing-prev] [module/media-playing-prev]
type = custom/script type = custom/script
exec = echo "" exec = echo "󰒮"
format = <label> format = <label>
label = %output% label = %output%
label-foreground = ${colors.media-playing-foreground} label-foreground = ${colors.media-playing-foreground}
@ -581,7 +581,7 @@ click-left = "/home/sravan/.scripts/playerctl.sh --play-pause"
[module/media-playing-next] [module/media-playing-next]
type = custom/script type = custom/script
exec = echo "" exec = echo "󰒭"
format = <label> format = <label>
label = %output% label = %output%
label-foreground = ${colors.media-playing-foreground} label-foreground = ${colors.media-playing-foreground}
@ -686,7 +686,7 @@ format = <label>
; %date% ; %date%
; %time% ; %time%
; Default: %date% ; Default: %date%
label = " %time%" label = "󰥔 %time%"
; label-font = 3 ; label-font = 3
label-foreground = ${colors.time-foreground} label-foreground = ${colors.time-foreground}
label-background = ${colors.time-background} label-background = ${colors.time-background}
@ -873,7 +873,7 @@ format = %{A1:kitty btop:}<label>%{A}
; %gb_swap_free% ; %gb_swap_free%
; %gb_swap_used% ; %gb_swap_used%
label = %percentage_used%% label = 󰍛 %percentage_used%%
label-padding = ${sizes.module-padding} label-padding = ${sizes.module-padding}
label-foreground = ${colors.memory-foreground} label-foreground = ${colors.memory-foreground}
label-background = ${colors.memory-background} label-background = ${colors.memory-background}
@ -968,7 +968,7 @@ format-unmounted = %{A1:gnome-disks &:} <label-unmounted> %{A}
; %free% ; %free%
; %used% ; %used%
; Default: %mountpoint% %percentage_free%% ; Default: %mountpoint% %percentage_free%%
label-mounted = %percentage_used%% label-mounted = 󰋊 %percentage_used%%
label-mounted-foreground = ${colors.filesystem-foreground} label-mounted-foreground = ${colors.filesystem-foreground}
label-mounted-background = ${colors.filesystem-background} label-mounted-background = ${colors.filesystem-background}
label-mounted-underline = ${colors.filesystem-underline} label-mounted-underline = ${colors.filesystem-underline}
@ -1003,7 +1003,7 @@ content-padding = ${sizes.module-padding}
[module/deadd-notification-center] [module/deadd-notification-center]
type = custom/text type = custom/text
content = "" content = "󰂚"
; "content" has the same properties as "format-NAME" ; "content" has the same properties as "format-NAME"
; content-background = #000 ; content-background = #000
@ -1083,12 +1083,12 @@ format-muted-overline = ${colors.volume-overline}
; Available tokens: ; Available tokens:
; %percentage% (default) ; %percentage% (default)
; %decibels% ; %decibels%
label-muted = muted label-muted = 󰝟 muted
; Only applies if <ramp-volume> is used ; Only applies if <ramp-volume> is used
ramp-volume-0 = ramp-volume-0 = 󰕿
ramp-volume-1 = 奔 ramp-volume-1 = 󰖀
ramp-volume-2 = ramp-volume-2 = 󰕾
; Right and Middle click ; Right and Middle click
click-right = pavucontrol click-right = pavucontrol

View File

@ -15,5 +15,5 @@ else
title="N/A" title="N/A"
fi fi
echo " $title | $artist" echo " $title | 󰠃 $artist"
fi fi

View File

@ -2,24 +2,24 @@
mediaStatus=$(playerctl --player=playerctld metadata 2>&1) mediaStatus=$(playerctl --player=playerctld metadata 2>&1)
if [[ "$mediaStatus" == "No player could handle this command" ]]; then if [[ "$mediaStatus" == "No player could handle this command" ]]; then
echo "" echo "󰡀"
else else
trackid=$(playerctl --player=playerctld metadata --format '{{ mpris:trackid }}') trackid=$(playerctl --player=playerctld metadata --format '{{ mpris:trackid }}')
title=$(playerctl --player=playerctld metadata --format '{{ xesam:title }}') title=$(playerctl --player=playerctld metadata --format '{{ xesam:title }}')
if grep -q -i "netflix" <<< "$title"; then if grep -q -i "netflix" <<< "$title"; then
echo "" echo "󰝆"
elif grep -q -i "hulu" <<< "$title"; then elif grep -q -i "hulu" <<< "$title"; then
echo "" echo "󰠩"
elif grep -q -i "prime video" <<< "$title"; then elif grep -q -i "prime video" <<< "$title"; then
echo "" echo ""
elif grep -q -i "chromium" <<< "$trackid"; then elif grep -q -i "chromium" <<< "$trackid"; then
echo "" echo ""
elif grep -q -i "vlc" <<< "$trackid"; then elif grep -q -i "vlc" <<< "$trackid"; then
echo "" echo "󰕼"
elif grep -q -i "spotify" <<< "$trackid"; then elif grep -q -i "spotify" <<< "$trackid"; then
echo "" echo ""
else else
echo "" echo "󰡀"
fi fi
fi fi

View File

@ -2,12 +2,12 @@
mediaStatus=$(/home/sravan/.config/dwm-flexipatch/polybar/scripts/get-media-status.sh) mediaStatus=$(/home/sravan/.config/dwm-flexipatch/polybar/scripts/get-media-status.sh)
if [[ "$mediaStatus" == "N/A" ]]; then if [[ "$mediaStatus" == "N/A" ]]; then
echo "" echo "󰐎"
else else
if [[ "$mediaStatus" == "Playing" ]]; then if [[ "$mediaStatus" == "Playing" ]]; then
echo "" echo "󰏤"
elif [[ "$mediaStatus" == "Paused" ]]; then elif [[ "$mediaStatus" == "Paused" ]]; then
echo "" echo "󰐊"
fi fi
echo $status echo $status