2017-06-19 16:36:59 +02:00
|
|
|
#!/usr/bin/php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
require __DIR__.'/base/block.php';
|
|
|
|
|
|
|
|
$format = $argv[1] ?? 'H:i:s';
|
|
|
|
|
|
|
|
$fullText = date($format);
|
|
|
|
|
2017-12-04 19:41:16 +01:00
|
|
|
if (getenv('BLOCK_BUTTON') === '1') {
|
|
|
|
shell_exec('i3-msg \'workspace "3. MAIL"\'');
|
|
|
|
}
|
|
|
|
|
2018-01-03 13:53:49 +01:00
|
|
|
if (date('H:i:s') === '13:37:00') {
|
|
|
|
shell_exec('notify-send "1337" "Powaaaa" --icon=/home/simon/Images/if_geek_zombie_60815.png');
|
|
|
|
}
|
|
|
|
|
2017-06-19 16:36:59 +02:00
|
|
|
echo block(
|
2017-12-04 19:41:16 +01:00
|
|
|
'time',
|
2017-06-19 16:36:59 +02:00
|
|
|
[
|
|
|
|
'full_text' => $fullText,
|
|
|
|
'color' => color('date'),
|
|
|
|
]
|
|
|
|
);
|