summaryrefslogtreecommitdiffstats
path: root/.config/waybar/style.css
blob: 53d732b6c5a17a622b83ef33b75e1ac9e78fe9c1 (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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
/* Keyframes */

@keyframes blink-critical {
	to {
		/*color: @white;*/
		background-color: @critical;
	}
}


/* Styles */

/* Colors (gruvbox) */
@define-color black	#073642;
@define-color red	#dc322f;
@define-color green	#859900;
@define-color yellow	#b58900;
@define-color blue	#268bd2;
@define-color purple	#d33682;
@define-color aqua	#00afaf;
@define-color gray	#1c1c1c;
@define-color brgray	#928374;
@define-color brred	#cb4b16;
@define-color brgreen	#586e75;
@define-color bryellow	#657b83;
@define-color brblue	#839496;
@define-color brpurple	#6c71c4;
@define-color braqua	#93a1a1;
@define-color white	#eee8d5;
@define-color bg1	#073642;
@define-color bg2	#002b36;


@define-color warning 	@bryellow;
@define-color critical	@red;
@define-color mode	@bg2;
@define-color unfocused	@bg2;
@define-color focused	@blue;
@define-color inactive	@purple;
@define-color sound	@green;
@define-color network	@yellow;
@define-color memory	@aqua; 
@define-color cpu	@blue;
@define-color temp	@brpurple;
@define-color layout	@green;
@define-color battery	@yellow;
@define-color date	@aqua;
@define-color time	@bg2;
@define-color tray	@bg2;

/* Reset all styles */
* {
	border: none;
	border-radius: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	box-shadow: none;
	text-shadow: none;
	icon-shadow: none;
}

/* The whole bar */
#waybar {
        background: @bg2;
	color: @white;
	font-family: "Terminus (TTF)", FontAwesome;
	font-size: 12pt;
}

/* Each module */
#battery,
#clock,
#cpu,
#language,
#memory,
#mode,
#network,
#pulseaudio,
#temperature,
#tray,
#backlight,
#idle_inhibitor,
#disk,
#user,
#mpris {
	padding-left: 8pt;
	padding-right: 8pt;
}

/* Each critical module */
#memory.critical,
#cpu.critical,
#temperature.critical,
#battery.critical.discharging {
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-name: blink-critical;
	animation-duration: 1s;
}

/* Each warning */
#network.disconnected,
#memory.warning,
#cpu.warning,
#temperature.warning,
#battery.warning.discharging {
	color: @warning;
}

/* And now modules themselves in their respective order */

/* Current sway mode (resize etc) */
#mode {
	color: @white;
	background: @mode;
}

/* Workspaces stuff */
#workspaces button {
	/*font-weight: bold;*/
	padding-left: 2pt;
	padding-right: 2pt;
	color: @white;
	background: @unfocused;
}

/* Inactive (on unfocused output) */
#workspaces button.visible {
	color: @white;
	background: @inactive;
}

/* Active (on focused output) */
#workspaces button.focused {
	color: @black;
	background: @focused;
}

/* Contains an urgent window */
#workspaces button.urgent {
	color: @black;
	background: @warning;
}

/* Style when cursor is on the button */
#workspaces button:hover {
	background: @black;
	color: @white;
}

#window {
	margin-right: 35pt;
	margin-left: 35pt;
}

#pulseaudio {
	background: @sound;
	color: @black;
}

#network {
	background: @network;
	color: @white;
}

#memory {
	background: @memory;
	color: @black;
}

#cpu {
	background: @cpu;
	color: @white;
}

#temperature {
	background: @temp;
	color: @black;
}

#language {
	background: @layout;
	color: @black;
}

#battery {
	background: @battery;
	color: @white;
}

#tray {
	background: @tray;
}

#clock.date {
    background: @date;
    color: @black;
}

#clock.time {
    background: @time;
    color: @white;
}