Rework polybar date module

This commit is contained in:
Tanguy Herbron 2021-04-26 17:21:56 +02:00
parent 8088b559e7
commit d4bac3c344

View File

@ -420,26 +420,20 @@ label = "%percentage%% "
;;ramp-coreload-3 =  ;;ramp-coreload-3 = 
;;ramp-coreload-4 =  ;;ramp-coreload-4 = 
ramp-load-0 =
ramp-load-1 =
ramp-load-2 =
ramp-load-3 =
ramp-load-4 =
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
[module/date] [module/date]
type = internal/date type = internal/date
; Seconds to sleep between updates ; Seconds to sleep between updates
interval = 1.0 interval = 30
; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string ; See "http://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 %%{...} ; NOTE: if you want to use syntax tags here you need to use %%{...}
;;date = %Y-%m-%d% ;;date = %Y-%m-%d%
; Optional time format ; Optional time format
time = %H:%M %d-%m-%Y% time = %H:%M
; if `date-alt` or `time-alt` is defined, clicking ; if `date-alt` or `time-alt` is defined, clicking
; the module will toggle between formats ; the module will toggle between formats
@ -448,13 +442,16 @@ time-alt =  %Y-%m-%d%
; Available tags: ; Available tags:
; <label> (default) ; <label> (default)
format = <label> format = "%{F#888e96} <label>%{F-}"
format-foreground = ${color.magenta}
format-background = ${color.black}
; Available tokens: ; Available tokens:
; %date% ; %date%
; %time% ; %time%
; Default: %date% ; Default: %date%
label = %time% label = %time%
label-foreground = ${color.white}
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_