geommer / yabar

A modern and lightweight status bar for X window managers.
MIT License
681 stars 49 forks source link

exec is not inherited properly #168

Open vlna opened 7 years ago

vlna commented 7 years ago

With configuration below block ya_diskusage2 shows /dev/mapper/cryptroot intead of /dev/mapper/data2

bottombar2:{
                font: "Droid Sans, FontAwesome Bold 9";
                block-list: ["ya_diskusage0", "ya_diskusage1", "ya_diskusage2"];
                position: "bottom";
                height: 20;
                slack-size: 5;
                underline-size: 2;
                overline-size: 2;
                gap-vertical: 25;

                ya_diskusage0:{
                                exec: "YABAR_DISKSPACE";
                                align: "right";
                                fixed-size: 150;
                                underline-color-rgb: 0xff0000;
                                internal-prefix: "root: ";
                                internal-option1: "/dev/mapper/cryptroot";
                }

                ya_diskusage1:{
                                inherit: "bottombar2.ya_diskusage0";
                                exec: "YABAR_DISKSPACE";
                                internal-prefix: "data1: ";
                                internal-option1: "/dev/mapper/data1";
                }

                ya_diskusage2:{
                                inherit: "bottombar2.ya_diskusage0";
                                internal-prefix: "data2: ";
                                internal-option1: "/dev/mapper/data2";
                }
}