removing old non used scripts
This commit is contained in:
parent
797d90f040
commit
ff3d4fb592
32 changed files with 8 additions and 958 deletions
|
@ -4,14 +4,14 @@ const battery = await Service.import("battery");
|
|||
const laptop = Utils.exec(`hostname`) === "syl";
|
||||
|
||||
export function BatteryPopup(monitor = laptop ? 0 : 2) {
|
||||
const battery_state = battery.bind("percent");
|
||||
const battery_percent = battery.bind("percent");
|
||||
return Widget.Window({
|
||||
monitor,
|
||||
name: `battery${monitor}`,
|
||||
class_name: "battery-popup",
|
||||
anchor: [laptop ? "bottom" : "top"],
|
||||
css: "margin-right: 30px",
|
||||
visible: battery_state.as(p => p < 25 ? true : false),
|
||||
visible: battery_percent.as(p => p < 25 ? battery.bind("charging").as(c => c == true ? true : false) : false),
|
||||
child: Widget.Box({
|
||||
// css: "padding: .8em",
|
||||
children: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue