diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 33c0a6f..d33fc97 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -6,9 +6,9 @@ follow = mouse indicate_hidden = yes shrink = yes -origin = top-left +origin = top-right width = 300 -offset = 48x8 +offset = 8x48 transparency = 0 separator_height = 2 diff --git a/.config/polybar/config b/.config/polybar/config index 0510595..9c698ea 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -52,9 +52,8 @@ offset-y=5 background=${colors.background} foreground=${colors.foreground} wm-name="polybar-middle" -font-0="Plex Code Pro:style=Medium:size=10;3" +font-0="Symbols Nerd Font:style=2048-em:size=12;3" font-1="IBM Plex Sans JP:style=Medium:size=11;3" -font-2="Symbols Nerd Font:style=2048-em:size=12;3" line-size=2 padding=2 modules-center=music diff --git a/.scripts/music.py b/.scripts/music.py index d9bcff7..a44e500 100755 --- a/.scripts/music.py +++ b/.scripts/music.py @@ -9,10 +9,10 @@ # Config options # (int) : Length of media info string. If length of string exceedes this value, the text will scroll. Default value is 20 -message_display_len = 20 +message_display_len = 32 # (int) : Font index of polybar. this value should be 1 more than the font value specified in polybar config. -font_index = 2 +font_index = 1 # (float) : Update speed of the text in seconds. update_delay = 0.3 @@ -88,16 +88,16 @@ def update_prefix_suffix(player_name="", status=""): pause_button = "%%{A:playerctl %s pause :}%c%%{A}" %(player_option,control_chars[2]) next_button = "%%{A:playerctl %s next :}%c%%{A}" %(player_option,control_chars[3]) - suffix = "| " + prev_button + suffix = "▏" + prev_button if status == "Playing": - suffix += " " + pause_button + suffix += " " + pause_button status_paused = False else: - suffix += " " + play_button + suffix += " " + play_button status_paused = True - suffix += " " + next_button + suffix += " " + next_button # print(suffix) - display_suffix = suffix + display_suffix = suffix + "▕" for key in display_player_prefix.keys(): if key in player_name: