-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
154 lines (131 loc) · 3.32 KB
/
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
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
[bar/fullbar]
monitor = ${env:MONITOR:eDP1}
dpi = 192
include-file = ~/.config/polybar/fullbar
background = #D92E3440
foreground = #ECEFF4
modules-left = music
modules-center =
modules-right = date volume eth poweroff
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/date]
type = internal/date
interval = 60
date = %a %d %b
time = %l:%M %p
label = %date% %time%
;label = %time%
format-padding = 1
[module/backlight]
type = internal/xbacklight
label = %percentage%%
[module/battery]
type = internal/battery
battery = BAT1
adapter = ADP1
poll-interval = 0
format-discharging = <label-discharging> <ramp-capacity>
format-full = <label-full> <ramp-capacity>
format-charging = <label-charging> <ramp-capacity>
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
[module/wlan]
type = internal/network
interface = wlan0
interval = 5
label-connected = %essid%
[module/wlan2]
inherit = module/wlan
interface = wlp1s0
[module/volume]
type = internal/volume
format-volume = <ramp-volume> <label-volume>
format-muted = 0%
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
[module/poweroff]
type = custom/script
exec = echo " "
click-left = rofi -modi run,drun,window -show drun
click-right = i3lock-fancy -pg &
click-middle = /usr/bin/rofi-logout
format-padding = 1
[module/rofi]
type = custom/script
exec = echo " "
click-left = rofi -modi run,drun,window -show drun
format-padding = 1
[module/time]
type = internal/date
interval = 5
label-foreground = #b6a49b
date =
date-alt = " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
format-prefix =
format-prefix-foreground = #b6a49b
;format-underline = #0a6cf5
format-padding = 1
label = %date% %time%
[module/pkg]
type = custom/script
label = %output%
tail = true
label-padding = 1
exec = $HOME/.config/polybar/updates
exec-if = "ping -c 1 8.8.8.8 > /dev/null"
click-left = urxvt --geometry 100x30 -e sudo pacman -Syyu &
[module/play]
type = custom/script
exec = python3 ~/.config/polybar/Play.py
format-padding = 1
interval = 2
format = <label>
format-foreground = #b6a49b
click-left = playerctl play
click-right = playerctl pause
[module/pause]
type = custom/script
exec = python3 ~/.config/polybar/Pause.py
format-padding = 1
format = <label>
interval = 2
format-foreground = #b6a49b
click-left = playerctl pause
[module/volume1]
type = custom/script
interval = 1
label = %output%
exec = $HOME/.config/polybar/pavolume.sh
click-right = exec pavucontrol &
click-left = $HOME/.config/polybar/pavolume.sh --togmute
scroll-up = $HOME/.config/polybar/pavolume.sh --up
scroll-down = $HOME/.config/polybar/pavolume.sh --down
tail = true
format-padding = 1
[module/eth]
type = internal/network
interface = enp2s0
interval = 3.0
format-connected = <label-connected>
format-connected-prefix = " "
format-connected-prefix-foreground = #eceff4
label-connected = %downspeed:9%
format-disconnected = <label-disconnected>
label-disconnected = not connected
label-disconnected-foreground = #66ffffff
format-padding = 1
[module/music]
type = custom/script
interval = 2
label = %output:0:305:...%
label-padding = 1
exec = ~/.config/polybar/mpris2.sh
click-left = playerctl pause
click-right = playerctl play
format-padding = 3