Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tophat@fflewddur.github.io/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import * as Cpu from './lib/cpu.js';
import * as Mem from './lib/mem.js';
import * as Net from './lib/net.js';
import * as FS from './lib/fs.js';
import * as Bat from './lib/battery.js';

// TODO: Update the UI if we have trouble loading GTop + friends
// console.error(`[${Me.metadata.name}] Error loading dependencies: ${err}`);
Expand All @@ -53,10 +54,12 @@ class TopHat {
this.mem = new Mem.MemMonitor(this.configHandler);
this.net = new Net.NetMonitor(this.configHandler);
this.fs = new FS.FileSystemMonitor(this.configHandler);
this.bat = new Bat.PowerMonitor(this.configHandler);
this.container.addMonitor(this.cpu);
this.container.addMonitor(this.mem);
this.container.addMonitor(this.fs);
this.container.addMonitor(this.net);
this.container.addMonitor(this.bat);
this.configHandler.connect_void('position-in-panel', () => {
this.moveWithinPanel();
});
Expand Down
125 changes: 125 additions & 0 deletions tophat@fflewddur.github.io/icons/bat-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading