28 lines
559 B
PHP
Executable file
28 lines
559 B
PHP
Executable file
#!/usr/bin/php7.1
|
|
<?php
|
|
|
|
require __DIR__.'/base/block.php';
|
|
|
|
$format = $argv[1] ?? 'H:i:s';
|
|
|
|
$fullText = date($format);
|
|
|
|
if (getenv('BLOCK_BUTTON') === '1') {
|
|
shell_exec('i3-msg \'workspace "3. MAIL"\'');
|
|
}
|
|
|
|
if (date('H:i:s') === '13:37:00') {
|
|
shell_exec('notify-send "1337" "Powaaaa" --icon=/home/simon/Images/if_geek_zombie_60815.png');
|
|
}
|
|
|
|
$fullText = span(pemoji(0xf073).$fullText, color('date'), '#444');
|
|
|
|
echo block(
|
|
'time',
|
|
[
|
|
'full_text' => $fullText,
|
|
'separator' => false,
|
|
'separator_block_width' => 0,
|
|
]
|
|
);
|