-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-config
44 lines (40 loc) · 1.18 KB
/
example-config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
; vim:ft=dosini
[bar/top]
monitor = ${env:MONITOR:}
width = 100%
height = 35
clickareas = 35
background = #00000000
foreground = #ffffff
line-color = ${bar/top.background}
modules-left = player-back player-pause player-next player-title
font-0 = NotoSans-Regular:size=14;8
font-1 = FontAwesome:size=20;8
font-2 = "Font Awesome 5 Free:style=Regular:pixelsize=18;8"
[module/player-title]
type = custom/script
exec = $HOME/.config/polybar/player/title.sh
format = " <label> "
exec-if = playerctl -l 2>&1 | grep -Evq 'No players'
interval = 0.5
[module/player-back]
type = custom/script
exec = $HOME/.config/polybar/player/null.sh
exec-if = playerctl -l 2>&1 | grep -Evq 'No players'
click-left = playerctl previous
format = " "
interval = 0.5
[module/player-pause]
type = custom/script
exec = $HOME/.config/polybar/player/get_playpause.sh
exec-if = playerctl -l 2>&1 | grep -Evq 'No players'
click-left = $HOME/.config/polybar/player/toggle.sh
format = " <label> "
interval = 0.5
[module/player-next]
type = custom/script
exec = $HOME/.config/polybar/player/null.sh
exec-if = playerctl -l 2>&1 | grep -Evq 'No players'
click-left = playerctl next
format = " "
interval = 0.5