summaryrefslogtreecommitdiff
path: root/.config/polybar/date.ini
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-20 17:18:29 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-20 17:18:29 -0700
commit945c3d8cb7e9f5cb9de8b83e9fc40a581dc42611 (patch)
tree2362d42247171bd42d396a000252b014f9222720 /.config/polybar/date.ini
parentf6432f0cc889b1e6b4a4244e471d7a5aa065500a (diff)
Separate polybar modules
Diffstat (limited to '.config/polybar/date.ini')
-rw-r--r--.config/polybar/date.ini36
1 files changed, 36 insertions, 0 deletions
diff --git a/.config/polybar/date.ini b/.config/polybar/date.ini
new file mode 100644
index 0000000..4385072
--- /dev/null
+++ b/.config/polybar/date.ini
@@ -0,0 +1,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