Skip to content

Commit ac6960f

Browse files
committed
add date to bar
1 parent ce650a8 commit ac6960f

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

home/wayland/waybar_new.nix

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"battery"
2828
"idle_inhibitor"
2929
"group/bottom"
30+
"clock"
3031
];
3132
battery = {
3233
rotate = 90;
@@ -71,6 +72,22 @@
7172
interval = 1;
7273
tooltip-format = "<tt>{calendar}</tt>";
7374
};
75+
"clock#date" = {
76+
calendar = {
77+
format = {
78+
days = "<span color='#dcd7ba'>{}</span>";
79+
months = "<span color='#dcd7ba'>{}</span>";
80+
today = "<span color='#c34043'><b>{}</b></span>";
81+
weekdays = "<span color='#dcd7ba'>{}</span>";
82+
weeks = "<span color='#727169'>W{}</span>";
83+
};
84+
mode = "year";
85+
mode-mon-col = 3;
86+
weeks-pos = "left";
87+
};
88+
format = "{:%d\n%m}";
89+
tooltip-format = "<tt>{calendar}</tt>";
90+
};
7491
cpu = {
7592
rotate = 90;
7693
format = "󰊚 {usage}%";
@@ -135,7 +152,7 @@
135152
children-class = "in-group";
136153
};
137154
modules = [
138-
"clock"
155+
"clock#date"
139156
"cpu"
140157
"memory"
141158
"disk"
@@ -285,6 +302,10 @@
285302
padding: 0.6em 0em;
286303
}
287304
305+
#clock {
306+
padding-top: 0em;
307+
}
308+
288309
#pulseaudio.mic {
289310
color: #${config.colors.background};
290311
background-color: #${config.colors.red};

0 commit comments

Comments
 (0)