-
Notifications
You must be signed in to change notification settings - Fork 8
/
polybar
129 lines (113 loc) · 3.25 KB
/
polybar
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[bar/default]
monitor = DP-2
width = 100%
height = 20
foreground = ${colors.white}
background = ${colors.clear}
font-0 = ${fonts.tewi}
font-1 = ${fonts.unifont}
font-2 = ${fonts.upper}
font-3 = ${fonts.siji}
font-4 = ${fonts.fontawesome}
padding-right = 2
padding-left = 2
modules-left = date cpu memory fs net speakers headphones ws
modules-right = mpd logout
module-margin = 1
border-top-size = 3
[fonts]
tewi = tewi
unifont = unifont
upper = unifontupper
siji = siji
fontawesome = fontawesome
[colors]
white = #ffffffff
smoke = #55
black = #ff000000
clear = #00000000
red = #ffff0000
[module/cpu]
type = internal/cpu
format = <label>
label = "%{A1:mon:} %percentage:2%%%{A}"
interval = 1
[module/memory]
type = internal/memory
format = <label>
label = "%{A1:mon:} %gb_free:0:2% GB%{A}"
[module/fs]
type = internal/fs
label-mounted = %mountpoint% %free%
mount-0 = /
mount-1 = /home
[module/net]
type = internal/network
interface = enp11s0
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-connected = %local_ip% %upspeed:8% %downspeed:8%
label-disconnected = %ifname% disconnected
[module/ws]
type = internal/xworkspaces
enable-scroll = true
icon-0 = "Primary;Ⅰ "
icon-1 = "Secondary; Ⅱ "
icon-2 = "Tertiary; Ⅲ"
format = <label-state>
label-active = %icon%
label-empty = %icon%
label-empty-foreground = ${colors.smoke}
[module/speakers]
type = internal/volume
format-volume = <label-volume>
format-muted = <label-muted>
label-muted = %percentage%%
label-muted-foreground = ${colors.smoke}
master-soundcard = hw:2
master-mixer = PCM
mapped = true
click-left = amixer -c 1 set PCM toggle
[module/headphones]
type = internal/volume
format-volume = <label-volume>
format-muted = <label-muted>
label-muted = %percentage%%
label-muted-foreground = ${colors.smoke}
master-soundcard = hw:1
master-mixer = Master
mapped = true
click-left = amixer -c 1 set Master toggle
[module/mpd]
type = internal/mpd
host = 127.0.0.1
port = 6600
format-online = <label-song> <bar-progress> <label-time> <icon-prev><icon-seekb><icon-stop><toggle><icon-seekf><icon-next>
format-offline = mpd offline
label-song = %artist% - %title%
label-song-maxlen =4100
bar-progress-width = 15
bar-progress-indicator = ═
bar-progress-fill = ─
bar-progress-empty = ┈
icon-play =
icon-pause =
icon-stop =
icon-prev =
icon-next =
icon-seekb =
icon-seekf =
icon-random = 🔀
icon-repeat = 🔁
icon-repeatone = 🔂
[module/date]
type = internal/date
interval = 1.0
format = <label>
label = %{A1:gsimplecal:}%date% %time%%{A}
date = %A %B %d
time = %H:%M:%S
[module/logout]
type = custom/text
content = ""
click-left = xfce4-session-logout