summaryrefslogtreecommitdiff
path: root/.config/polybar/config
blob: b41fb306c4ecb1a8eabd418629fa8fda7e8f4bcf (plain)
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
;
; | '__/ _ \ / _` / __|    Roger GonzΓ‘lez
; | | | (_) | (_| \__ \    https://rogs.me
; |_|  \___/ \__, |___/    https://git.rogs.me
;            |___/

[colors]
accent = #fba922

[bar/top]
monitor = ${env:MONITOR:}
enable-ipc = true
width = 100%
height = 17

;background = #222
background = #33000000
foreground = #fff

overline-size = 1
overline-color = ${self.background}
underline-size = 1
underline-color = ${self.background}

padding-left = 1
padding-right = 1
module-margin-left = 1
module-margin-right = 1

font-0 = NotoSans-Regular:size=10;0
font-1 = MaterialIcons:size=10;2
font-2 = Termsynu:size=10;0
font-3 = Siji:pixelsize=10;1
font-4 = FontAwesome:size=10;0
font-5 = Noto Color Emoji:scale=12;0
modules-left = i3 music
modules-center = xwindow
modules-right = pulseaudio xkeyboard cpu memory wireless-network mullvad-status battery clock


[module/i3]
type = internal/i3
format = <label-state> <label-mode>
pin-workspaces = true

label-dimmed-underline = ${root.background}

label-focused = %name%
label-focused-foreground = #f3f3f3
label-focused-background = ${root.background}
label-focused-underline = #75d85a
label-focused-font = 4
label-focused-padding = 3

label-unfocused = %name%
label-unfocused-font = 4
label-unfocused-padding = 3

label-urgent = %name%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-underline = #9b0a20
label-urgent-font = 4
label-urgent-padding = 4

label-visible = %name%
label-visible-foreground = #55ffffff
label-visible-font = 4
label-visible-padding = 4

[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "πŸŽ› "
format-underline = #f90000
label = %percentage:2%%

[module/memory]
type = internal/memory
interval = 2
format-prefix = " πŸ“Š "
format-underline = #4bffdc
label = %percentage_used%%

[module/wireless-network]
type = internal/network
interface = wlp2s0
interval = 2.0
ping-interval = 10
label-connected = πŸ“Ά %essid%
label-disconnected = 🚫 not connected
label-disconnected-foreground = #66

[module/clock]
type = internal/date
interval = 5
format-padding = 5
date = πŸ“… %d-%m-%Y πŸ•œ %H:%M%

[module/battery]
type = internal/battery
full-at = 99
battery = BAT0
adapter = AC
format-charging = %{T4} πŸ”Œ <label-charging> %{T-}
format-discharging = %{T4}πŸ”‹  <label-discharging> %{T-}
format-full = %{T4}πŸ”Œ  <label-full> %{T-}
label-charging-font = 3
label-discharging-font = 3
label-full = 100%

[module/xwindow]
type = internal/xwindow
label-maxlen = 75
label-foreground = #FFF

[module/xkeyboard]
type = custom/script
exec = /home/roger/.config/polybar/keyboard_lang.sh
interval = 1

[module/pulseaudio]
type = internal/pulseaudio
label-volume = πŸ”Š %percentage%%
label-muted = πŸ”ˆ
label-muted-foreground = #666

[module/spotify]
type = custom/script
interval = 1
exec = python /home/roger/.config/polybar/spotify_status.py -t 80 --playpause-font=5 -p '⏯,⏸️' -f ' {play_pause} {song} - {artist} - {album}'

[module/music]
type = custom/script
interval = 1
label = %output%
exec = ~/.config/polybar/music

[module/mullvad-status]
type = custom/script
exec = /home/roger/.config/polybar/mullvad_status.sh
interval = 1

[module/cpu-temperature]
type = internal/temperature
interval = 0.5
thermal-zone = 0
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon5/temp1_input
base-temperature = 20
warn-temperature = 80
format-prefix = "🌑"
label-warn = πŸ”₯ %temperature-c%

[module/gpu-temperature]
type = internal/temperature
interval = 0.5
thermal-zone = 0
hwmon-path = /sys/devices/virtual/hwmon/hwmon4/temp9_input
base-temperature = 20
warn-temperature = 80

[module/crypto]
type = custom/script
exec = python ~/.config/polybar/pcrypto.py --base USD --coins btc
interval = 60

font-0 = "coins:style=Regular;0"