Waybar: Separate styles for date and time.
This commit is contained in:
parent
011fc516e0
commit
37e7366429
|
@ -15,7 +15,7 @@ in
|
||||||
start_hidden = false;
|
start_hidden = false;
|
||||||
output = [ config.module.display.primary ];
|
output = [ config.module.display.primary ];
|
||||||
modules-left = [
|
modules-left = [
|
||||||
"clock"
|
"group/datetime"
|
||||||
"sway/scratchpad"
|
"sway/scratchpad"
|
||||||
"mpris"
|
"mpris"
|
||||||
];
|
];
|
||||||
|
@ -42,8 +42,13 @@ in
|
||||||
""
|
""
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
clock = {
|
"clock#time" = {
|
||||||
format = "{:%H:%M %a %d}";
|
format = "{:%H:%M}";
|
||||||
|
on-click = "xdg-open https://cloud.voronind.com/apps/calendar/";
|
||||||
|
tooltip-format = "<big><tt>{calendar}</tt></big>";
|
||||||
|
};
|
||||||
|
"clock#date" = {
|
||||||
|
format = "{:%a %d}";
|
||||||
on-click = "xdg-open https://cloud.voronind.com/apps/calendar/";
|
on-click = "xdg-open https://cloud.voronind.com/apps/calendar/";
|
||||||
tooltip-format = "<big><tt>{calendar}</tt></big>";
|
tooltip-format = "<big><tt>{calendar}</tt></big>";
|
||||||
};
|
};
|
||||||
|
@ -165,6 +170,13 @@ in
|
||||||
"custom/taghw2"
|
"custom/taghw2"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
"group/datetime" = {
|
||||||
|
orientation = "horizontal";
|
||||||
|
modules = [
|
||||||
|
"clock#time"
|
||||||
|
"clock#date"
|
||||||
|
];
|
||||||
|
};
|
||||||
"custom/display" = {
|
"custom/display" = {
|
||||||
exec = "swayscript displaywidget";
|
exec = "swayscript displaywidget";
|
||||||
on-click = "sleep 0.1 && swayscript dnd"; # HACK: https://github.com/Alexays/Waybar/issues/2166 & https://github.com/Alexays/Waybar/issues/1968
|
on-click = "sleep 0.1 && swayscript dnd"; # HACK: https://github.com/Alexays/Waybar/issues/2166 & https://github.com/Alexays/Waybar/issues/1968
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Padding for global widgets. */
|
/* Padding for global widgets. */
|
||||||
#clock,
|
|
||||||
#custom-display,
|
#custom-display,
|
||||||
#custom-network,
|
#custom-network,
|
||||||
|
#datetime,
|
||||||
#mpris,
|
#mpris,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#scratchpad {
|
#scratchpad {
|
||||||
|
@ -23,6 +23,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Padding for combined widgets. */
|
/* Padding for combined widgets. */
|
||||||
|
#clock.date,
|
||||||
#cpu.load,
|
#cpu.load,
|
||||||
#custom-powerlimit,
|
#custom-powerlimit,
|
||||||
#custom-powersave,
|
#custom-powersave,
|
||||||
|
@ -33,9 +34,9 @@
|
||||||
|
|
||||||
/* Hover style. */
|
/* Hover style. */
|
||||||
#batteryinfo:hover,
|
#batteryinfo:hover,
|
||||||
#clock:hover,
|
|
||||||
#custom-display:hover,
|
#custom-display:hover,
|
||||||
#custom-network:hover,
|
#custom-network:hover,
|
||||||
|
#datetime:hover,
|
||||||
#hardware:hover,
|
#hardware:hover,
|
||||||
#mpris:hover,
|
#mpris:hover,
|
||||||
#pulseaudio:hover,
|
#pulseaudio:hover,
|
||||||
|
@ -89,6 +90,6 @@
|
||||||
border-top: @borderSize@ solid @accent@;
|
border-top: @borderSize@ solid @accent@;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock {
|
#clock.time {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue