summaryrefslogtreecommitdiffstats
path: root/.config/polybar/config##c.desktop,h.maus
diff options
context:
space:
mode:
authorYigit Sever2021-10-06 02:30:07 +0300
committerYigit Sever2021-10-06 02:30:07 +0300
commit0b473ecaa8640695ca2f748231dd68d6fb79af41 (patch)
tree968f5c56a749d06e2d2d51aebf6c14eb3b55e142 /.config/polybar/config##c.desktop,h.maus
parent67a15160f735f33932e8b355bc304b04a531c94e (diff)
downloaddotfiles-0b473ecaa8640695ca2f748231dd68d6fb79af41.tar.gz
dotfiles-0b473ecaa8640695ca2f748231dd68d6fb79af41.tar.bz2
dotfiles-0b473ecaa8640695ca2f748231dd68d6fb79af41.zip
polybar: new & improved
Diffstat (limited to '.config/polybar/config##c.desktop,h.maus')
-rw-r--r--.config/polybar/config##c.desktop,h.maus221
1 files changed, 139 insertions, 82 deletions
diff --git a/.config/polybar/config##c.desktop,h.maus b/.config/polybar/config##c.desktop,h.maus
index 3c51ec4..b2105f2 100644
--- a/.config/polybar/config##c.desktop,h.maus
+++ b/.config/polybar/config##c.desktop,h.maus
@@ -10,26 +10,35 @@
10;========================================================== 10;==========================================================
11 11
12[colors] 12[colors]
13background = #0c1014 13background = #2D2926
14background_alt = #0a3749 14background_modules = #F6F4EA
15background_modules = #fbf1c7 15foreground = #F6F4EA
16foreground = #d3ebe9 16foreground_modules = #2D2926
17foreground_alt = #99d1ce 17red = #CE3643
18foreground_modules = #282828 18green = #6AAFAA
19red = #9d0006 19sold_out_green = #1DB954
20green = #427b58 20yellow = #D9C91A
21sold_out_green = #1DB954 21blue = #8AAAEB
22yellow = #b56714 22purple = #7F21AD
23blue = #458588 23aqua = #4CC9BE
24purple = #8f3f71 24orange = #C24049
25aqua = #689d6a 25
26orange = #d65d0e 26; [colors]
27primary = #d26937 27; background = #080808
28secondary = #888ca6 28; background_modules = #eeeeee
29alert = #c23127 29; foreground = #b2b2b2
30; foreground_modules = #080808
31; red = #ff5454
32; green = #8cc85f
33; sold_out_green = #1DB954
34; yellow = #e3c78a
35; blue = #80a0ff
36; purple = #d183e8
37; aqua = #79dac8
38; orange = #ff5189
30 39
31[bar/top] 40[bar/top]
32monitor = HDMI-0 41monitor = DP-0
33width = 100% 42width = 100%
34height = 20 43height = 20
35offset-x = 0 44offset-x = 0
@@ -40,29 +49,43 @@ fixed-center = true
40background = ${colors.background} 49background = ${colors.background}
41foreground = ${colors.foreground} 50foreground = ${colors.foreground}
42 51
43border-top-size = 0 52padding-right = 2
44border-bottom-size = 0
45border-top-color = ${colors.background}
46border-bottom-color = ${colors.background}
47
48padding = 2
49module-margin = 1 53module-margin = 1
50 54
51font-0 = scientifica:antialias=false;1 55font-0 = scientifica:antialias=false;1
52font-1 = Lato:size=10;1 56font-1 = Siji:size=20;1
53font-2 = Raleway:size=10;1
54font-3 = FuraCode Nerd Font:size=12;2
55font-4 = Noto Color Emoji:scale=10;2
56 57
57modules-left = i3 pulseaudio-control spotify mpd 58modules-left = i3 pulseaudio-control spotify mpd github
58modules-center = xwindow 59modules-center = xwindow
59modules-right = notification_pause cpu focus date time 60modules-right = focus notification_pause cpu download upload date time
60 61
61tray-position = right 62tray-position = right
63separator = 
62 64
63[module/cpu] 65[module/github]
64label = %percentage:4%% 66type = internal/github
65type = internal/cpu 67
68token = ${file:/home/yigit/.local/share/polybar/github_token}
69user = yigitsever
70empty-notifications = false
71interval = 10
72api-url = https://api.github.com/
73
74format = <label>
75label = %notifications%
76
77label-padding = 1
78
79format-background = ${colors.background_modules}
80format-foreground = ${colors.foreground_modules}
81
82format-prefix = 
83format-prefix-foreground = ${colors.background_modules}
84format-prefix-background = ${colors.purple}
85format-prefix-padding = 1
86
87format-offline = <label-offline>
88label-offline = Github offline
66 89
67[module/focus] 90[module/focus]
68type = custom/script 91type = custom/script
@@ -75,44 +98,46 @@ type = custom/script
75exec = ~/.config/polybar/notification_pause.sh 98exec = ~/.config/polybar/notification_pause.sh
76interval = 5 99interval = 5
77 100
78[module/newyork]
79type = custom/script
80exec = ~/.config/polybar/new_york.sh
81format = <label>
82format-prefix = ""
83format-prefix-background = ${colors.secondary}
84format-prefix-foreground = ${colors.foreground}
85format-prefix-font = 4
86format-prefix-padding = 1
87
88label-background = ${colors.background_modules}
89label-foreground = ${colors.foreground_modules}
90label-padding = 1
91interval = 1
92
93[module/spotify] 101[module/spotify]
94type = custom/script 102type = custom/script
95interval = 1 103interval = 1
96format-prefix = "" 104
105format-prefix = 
97format-prefix-padding = 1 106format-prefix-padding = 1
98format-prefix-background = ${colors.sold_out_green} 107format-prefix-background = ${colors.sold_out_green}
99format-prefix-foreground = ${colors.foreground} 108format-prefix-foreground = ${colors.foreground_modules}
100format = <label> 109format = <label>
101format-padding = 0 110format-padding = 0
102exec = python /home/yigit/.config/polybar/spotify_status.py -f '{play_pause} {artist} - {song}' -p ', ' 111exec = python /usr/share/polybar/scripts/spotify_status.py -f '{play_pause} {artist} - {song}' -p ', '
103;契 112;契
104 113
105[module/mpd] 114[module/mpd]
106type = internal/mpd 115type = internal/mpd
107 116
108format-online = <toggle> <label-song> <icon-random> 117; <toggle> - gets replaced with <icon-(pause|play)>
109label-song = %artist% - %title% 118format-online = <toggle><label-song> <icon-random> <icon-repeat>
110icon-pause =  119label-song = %{F#080808}%artist% %{F#427b58}%title%
111icon-play =  120format-online-font = 4
112icon-random = 咽 121
122icon-pause = 
123icon-play = 
124icon-random = 
125icon-repeat = 
126
127icon-play-foreground = ${colors.foreground}
128icon-play-background = #b8bb26
129icon-play-padding = 1
130
131icon-pause-foreground = ${colors.foreground}
132icon-pause-background = #9d0006
133icon-pause-padding = 1
134
135label-song-foreground = ${colors.foreground_modules}
136label-song-background = ${colors.background_modules}
137label-song-padding = 1
113 138
114toggle-on-foreground = ${colors.background_modules} 139toggle-on-foreground = ${colors.background_modules}
115toggle-off-foreground = ${colors.foreground_modules} 140toggle-off-foreground = #504945
116 141
117format-offline = <label-offline> 142format-offline = <label-offline>
118label-offline = mpd is offline 143label-offline = mpd is offline
@@ -125,8 +150,8 @@ label = %title:0:70:...%
125y-offset = 10 150y-offset = 10
126label-padding = 1 151label-padding = 1
127 152
128label-empty = 153; there is a archlinux logo below
129label-empty-font = 4 154label-empty =
130label-empty-padding = 5 155label-empty-padding = 5
131 156
132[module/xkeyboard] 157[module/xkeyboard]
@@ -141,7 +166,6 @@ format-prefix = 
141format-prefix-padding = 1 166format-prefix-padding = 1
142format-prefix-background = ${colors.blue} 167format-prefix-background = ${colors.blue}
143format-prefix-foreground = ${colors.foreground} 168format-prefix-foreground = ${colors.foreground}
144format-prefix-font = 4
145 169
146label-layout = %name% 170label-layout = %name%
147label-layout-padding = 1 171label-layout-padding = 1
@@ -150,39 +174,75 @@ label-layout-foreground = ${colors.foreground_modules}
150 174
151label-indicator-padding = 2 175label-indicator-padding = 2
152label-indicator-margin = 176label-indicator-margin =
153label-indicator-background = ${colors.alert} 177label-indicator-background = ${colors.red}
154 178
155[module/i3] 179[module/i3]
156type = internal/i3 180type = internal/i3
157format = <label-state> <label-mode> 181format = <label-state>
158index-sort = true 182index-sort = false
159wrapping-scroll = false 183wrapping-scroll = false
160strip-wsnumbers = true 184strip-wsnumbers = true
161 185
186ws-icon-default = 
187ws-icon-0 = 0;
188ws-icon-1 = 1;
189ws-icon-2 = 2;
190ws-icon-3 = 3;
191ws-icon-4 = 4;
192ws-icon-5 = 5;
193ws-icon-6 = 6;
194ws-icon-7 = 7;
195ws-icon-8 = 8;
196ws-icon-9 = 9;
197ws-icon-10 = music;
198ws-icon-11 = zotero;
199ws-icon-12 = desktop;
200ws-icon-13 = browser;
201ws-icon-14 = steam;
202
162label-mode-background = ${colors.background_modules} 203label-mode-background = ${colors.background_modules}
163label-mode-foreground = ${colors.foreground_modules} 204label-mode-foreground = ${colors.foreground_modules}
164label-mode-padding = 2 205label-mode-padding = 2
165 206
166label-focused = %name% 207label-focused = %icon% %output:0:1%
167label-focused-background = ${colors.red} 208label-focused-background = ${colors.green}
168label-focused-foreground = ${colors.background_modules} 209label-focused-foreground = ${colors.background_modules}
169label-focused-padding = 1 210label-focused-padding = 1
170 211
171label-unfocused = %name% 212label-unfocused = %icon%
172label-unfocused-background = ${colors.background_modules} 213label-unfocused-background = ${colors.background_modules}
173label-unfocused-foreground = ${colors.foreground_modules} 214label-unfocused-foreground = ${colors.foreground_modules}
174label-unfocused-padding = 1 215label-unfocused-padding = 1
175 216
176label-visible = %name% 217label-visible = %icon% %output:0:1%
177label-visible-background = ${colors.background_modules} 218label-visible-background = ${colors.blue}
178label-visible-foreground = ${colors.foreground_modules} 219label-visible-foreground = ${colors.foreground_modules}
179label-visible-padding = 1 220label-visible-padding = 1
180 221
181label-urgent = %name% 222label-urgent = %icon%
182label-urgent-background = ${colors.alert} 223label-urgent-background = ${colors.red}
183label-urgent-foreground = ${colors.background} 224label-urgent-foreground = ${colors.background_modules}
184label-urgent-padding = 1 225label-urgent-padding = 1
185 226
227label-separator = " "
228label-separator-foreground = ${colors.foreground}
229label-separator-background = #504945
230
231[module/cpu]
232type = internal/cpu
233label = %percentage:3%%
234format = <label>
235
236format-prefix = 
237format-prefix-background = ${colors.purple}
238format-prefix-foreground = ${colors.foreground}
239format-prefix-padding = 1
240
241format-background = ${colors.background_modules}
242format-foreground = ${colors.foreground_modules}
243
244label-padding = 1
245
186[module/download] 246[module/download]
187type = internal/network 247type = internal/network
188interface = eno1 248interface = eno1
@@ -190,12 +250,12 @@ interval = 3.0
190 250
191format-connected = <label-connected> 251format-connected = <label-connected>
192 252
193format-connected-prefix = 253format-connected-prefix =
194format-connected-prefix-padding = 1 254format-connected-prefix-padding = 1
195format-connected-prefix-background = ${colors.green} 255format-connected-prefix-background = ${colors.green}
196format-connected-prefix-foreground = ${colors.foreground} 256format-connected-prefix-foreground = ${colors.foreground}
197 257
198label-connected = %downspeed% 258label-connected = %downspeed:8%
199label-connected-background = ${colors.background_modules} 259label-connected-background = ${colors.background_modules}
200label-connected-foreground = ${colors.foreground_modules} 260label-connected-foreground = ${colors.foreground_modules}
201label-connected-padding = 1 261label-connected-padding = 1
@@ -210,12 +270,12 @@ interval = 3.0
210 270
211format-connected = <label-connected> 271format-connected = <label-connected>
212 272
213format-connected-prefix = 273format-connected-prefix =
214format-connected-prefix-padding = 1 274format-connected-prefix-padding = 1
215format-connected-prefix-background = ${colors.yellow} 275format-connected-prefix-background = ${colors.yellow}
216format-connected-prefix-foreground = ${colors.foreground} 276format-connected-prefix-foreground = ${colors.foreground}
217 277
218label-connected = %upspeed% 278label-connected = %upspeed:8%
219label-connected-background = ${colors.background_modules} 279label-connected-background = ${colors.background_modules}
220label-connected-foreground = ${colors.foreground_modules} 280label-connected-foreground = ${colors.foreground_modules}
221label-connected-padding = 1 281label-connected-padding = 1
@@ -228,10 +288,9 @@ date = %Y-%m-%d %A
228label = %date% 288label = %date%
229format = <label> 289format = <label>
230 290
231format-prefix = 291format-prefix =
232format-prefix-background = ${colors.orange} 292format-prefix-background = ${colors.orange}
233format-prefix-foreground = ${colors.foreground} 293format-prefix-foreground = ${colors.foreground}
234format-prefix-font = 4
235format-prefix-padding = 1 294format-prefix-padding = 1
236 295
237label-background = ${colors.background_modules} 296label-background = ${colors.background_modules}
@@ -246,10 +305,9 @@ time = %H:%M
246label = %time% 305label = %time%
247format = <label> 306format = <label>
248 307
249format-prefix = 308format-prefix =
250format-prefix-background = ${colors.secondary} 309format-prefix-background = ${colors.aqua}
251format-prefix-foreground = ${colors.foreground} 310format-prefix-foreground = ${colors.foreground}
252format-prefix-font = 4
253format-prefix-padding = 1 311format-prefix-padding = 1
254 312
255label-background = ${colors.background_modules} 313label-background = ${colors.background_modules}
@@ -262,10 +320,9 @@ interval = 5
262 320
263format-volume = <label-volume> 321format-volume = <label-volume>
264 322
265format-volume-prefix = 323format-volume-prefix =
266format-volume-prefix-background = ${colors.purple} 324format-volume-prefix-background = ${colors.purple}
267format-volume-prefix-foreground = ${colors.background_modules} 325format-volume-prefix-foreground = ${colors.background_modules}
268format-volume-prefix-font = 4
269format-volume-prefix-padding = 1 326format-volume-prefix-padding = 1
270 327
271label-volume = %percentage% 328label-volume = %percentage%