panel.php 675 Bytes
Newer Older
epsi sayidina's avatar
epsi sayidina committed
1 2 3 4 5 6 7 8
#!/usr/bin/php 
<?php # using PHP7
# This is a modularized config for herbstluftwm tags in dzen2 statusbar

require_once(__DIR__.'/helper.php');
require_once(__DIR__.'/pipehandler.php');

# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----
epsi sayidina's avatar
epsi sayidina committed
9
# main
epsi sayidina's avatar
epsi sayidina committed
10 11 12 13

$panel_height = 24;
$monitor = get_monitor($argv);

epsi sayidina's avatar
epsi sayidina committed
14
kill_zombie();
epsi sayidina's avatar
epsi sayidina committed
15 16
system("herbstclient pad $monitor $panel_height 0 $panel_height 0");

epsi sayidina's avatar
epsi sayidina committed
17
// run process in the background
epsi sayidina's avatar
epsi sayidina committed
18

epsi sayidina's avatar
epsi sayidina committed
19 20
$params_top = get_params_top($monitor, $panel_height);
detach_dzen2($monitor, $params_top);
epsi sayidina's avatar
epsi sayidina committed
21

epsi sayidina's avatar
epsi sayidina committed
22 23
$params_bottom = get_params_bottom($monitor, $panel_height);
detach_dzen2_conky($params_bottom);
epsi sayidina's avatar
epsi sayidina committed
24

epsi sayidina's avatar
epsi sayidina committed
25
// optional transparency
epsi sayidina's avatar
epsi sayidina committed
26
detach_transset();