summaryrefslogtreecommitdiff
path: root/.config/polybar/date.ini
blob: 4385072325dc1a64eb8ac0dc4458af5b7adb2e26 (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
# NOTE: This module supports most—but not all—of the formatting sequences that can be found in man date. For example, to display the time in 12-hour format, you can use either %I:%M or %l:%M for a 0-padded hour or a space-padded hour respectively.
# Formatting sequences such as %-I (12-hour time without padding) will not work. Use a custom script with the date command as a workaround.
[module/date]
type = internal/date
# Seconds to sleep between updates
# Default: 1.0
interval = 1.0

# See "https://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
# NOTE: if you want to use syntax tags here you need to use %%{...}
date = %d-%m-%y%

# Optional time format
time = %H:%M

# if 'date-alt' or 'time-alt' is defined, clicking
# the module will toggle between formats
date-alt = %A, %d %B %Y
time-alt = %H:%M:%S

# Available tags:
#   <label> (default)
# format-prefix =  
# format-prefix-foreground = ${colors.foreground-alt}
format =<label>
# format-background = #55ff3399
# format-foreground = #fff
format-underline = ${colors.cyan}

# Available tokens:
#   %date%
#   %time%
# Default: %date%
label = %date% %time%
# label-font = 3
# label-foreground = #9A32DB