fix(ags): adjust to new service getters
This commit is contained in:
parent
56ea245a9b
commit
0ac782cd8e
4 changed files with 6 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
import { exec } from 'resource:///com/github/Aylur/ags/utils.js';
|
import { exec } from 'resource:///com/github/Aylur/ags/utils.js';
|
||||||
import { Powermenu } from './js/powermenu.js';
|
import { Powermenu } from './js/powermenu.js';
|
||||||
import { Bar } from './js/bar/bar.js';
|
import { Bar } from './js/bar/bar.js';
|
||||||
import { DragTest } from './js/test/drag.js';
|
//import { DragTest } from './js/test/drag.js';
|
||||||
import { Closer } from './js/common.js';
|
import { Closer } from './js/common.js';
|
||||||
|
|
||||||
const scss = ags.App.configDir + '/scss/main.scss';
|
const scss = ags.App.configDir + '/scss/main.scss';
|
||||||
|
@ -18,6 +18,6 @@ export default {
|
||||||
Powermenu,
|
Powermenu,
|
||||||
Bar,
|
Bar,
|
||||||
Closer,
|
Closer,
|
||||||
DragTest,
|
//DragTest,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,9 +14,8 @@ Revealer({
|
||||||
child: Label(`${i}`),
|
child: Label(`${i}`),
|
||||||
connections: [
|
connections: [
|
||||||
[Hyprland, btn => {
|
[Hyprland, btn => {
|
||||||
const { workspaces, active } = Hyprland;
|
const occupied = Hyprland.getWorkspace(i)?.windows > 0;
|
||||||
const occupied = workspaces.has(i) && workspaces.get(i).windows > 0;
|
btn.toggleClassName('active', Hyprland.active.workspace.id === i);
|
||||||
btn.toggleClassName('active', active.workspace.id === i);
|
|
||||||
btn.toggleClassName('occupied', occupied);
|
btn.toggleClassName('occupied', occupied);
|
||||||
btn.toggleClassName('empty', !occupied);
|
btn.toggleClassName('empty', !occupied);
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
margin-top: -30px;
|
margin-top: -30px;
|
||||||
border-radius: 80px;
|
border-radius: 80px;
|
||||||
min-height: 37px;
|
min-height: 37px;
|
||||||
background: rgba(#8466ae, 0.8);
|
background: rgba(#5e497c, 0.8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
margin-top: -30px;
|
margin-top: -30px;
|
||||||
border-radius: 80px;
|
border-radius: 80px;
|
||||||
min-height: 37px;
|
min-height: 37px;
|
||||||
background: rgba(132, 102, 174, 0.8); }
|
background: rgba(94, 73, 124, 0.8); }
|
||||||
|
|
||||||
tooltip {
|
tooltip {
|
||||||
background: rgba(0, 0, 0, 0.6);
|
background: rgba(0, 0, 0, 0.6);
|
||||||
|
|
Loading…
Reference in a new issue