Skip to content

Commit

Permalink
update dunst position
Browse files Browse the repository at this point in the history
  • Loading branch information
K4zoku committed Jan 10, 2022
1 parent 3a4317a commit a811499
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .config/dunst/dunstrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .config/polybar/config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .scripts/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a811499

Please sign in to comment.