removing old non used scripts

This commit is contained in:
Chris Cochrun 2024-07-15 10:05:55 -05:00
parent 797d90f040
commit ff3d4fb592
32 changed files with 8 additions and 958 deletions

View file

@ -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: [

View file

@ -40,7 +40,7 @@ function Notification(n) {
justification: "left",
hexpand: true,
max_width_chars: 24,
truncate: "end",
// truncate: "end",
wrap: true,
label: n.summary,
use_markup: true,