在 i3 状态栏中显示工作日
Display week day in i3 status bar
我想在 i3 状态栏中显示当前星期几(例如星期一)。
我当前的状态栏格式如下:27.06.2016 18:00:00
。
我想实现这样的格式:Monday, 27.06.2016 18:00:00
.
i3status.conf 中的相应配置如下所示:
tztime local {
format = "%d.%m.%Y %H:%M:%S"
}
我在 Debian Linux 上 运行 i3。
有没有人知道如何在状态栏中显示星期几?手册页没有提供解决方案,互联网搜索也没有...
tztime local {
format = "%A, %d.%m.%Y %H:%M:%S"
}
至于联机帮助页未提供解决方案:
来自 i3status
联机帮助页:
TzTime
Outputs the current time in the given timezone. If no timezone is given, local time will be used. See strftime(3)
for details on the format string.
所以查找 man 3 strftime
你应该找到
%A
The full name of the day of the week according to the current locale.
我想在 i3 状态栏中显示当前星期几(例如星期一)。
我当前的状态栏格式如下:27.06.2016 18:00:00
。
我想实现这样的格式:Monday, 27.06.2016 18:00:00
.
i3status.conf 中的相应配置如下所示:
tztime local {
format = "%d.%m.%Y %H:%M:%S"
}
我在 Debian Linux 上 运行 i3。
有没有人知道如何在状态栏中显示星期几?手册页没有提供解决方案,互联网搜索也没有...
tztime local {
format = "%A, %d.%m.%Y %H:%M:%S"
}
至于联机帮助页未提供解决方案:
来自 i3status
联机帮助页:
TzTime
Outputs the current time in the given timezone. If no timezone is given, local time will be used. See
strftime(3)
for details on the format string.
所以查找 man 3 strftime
你应该找到
%A
The full name of the day of the week according to the current locale.