22 lines
387 B
PHP
Executable file
22 lines
387 B
PHP
Executable file
#!/usr/bin/php
|
|
<?php
|
|
|
|
require __DIR__.'/base/block.php';
|
|
|
|
$format = $argv[1] ?? 'd/m/Y';
|
|
|
|
$fullText = span(' '.date($format).' ', color('date'), '#444');
|
|
|
|
if (getenv('BLOCK_BUTTON') === '1') {
|
|
shell_exec('i3-msg \'workspace "3. MAIL"\'');
|
|
}
|
|
|
|
echo block(
|
|
'date',
|
|
[
|
|
'full_text' => $fullText,
|
|
'separator' => false,
|
|
'separator_block_width' => 0,
|
|
]
|
|
);
|