ags: sync

This commit is contained in:
end-4 2024-01-22 22:16:02 +07:00
parent 5cae087bdb
commit 502abe7648
4 changed files with 8 additions and 6 deletions

View file

@ -90,7 +90,7 @@ const BarBattery = () => Box({
transitionDuration: 150,
revealChild: false,
transition: 'slide_right',
child: MaterialIcon('bolt', 'norm'),
child: MaterialIcon('bolt', 'norm', {tooltipText: "Charging"}),
setup: (self) => self.hook(Battery, revealer => {
self.revealChild = Battery.charging;
}),

View file

@ -35,10 +35,11 @@ export default (monitor = 0) => {
setup: (self) => {
self.set_size_request(SCREEN_WIDTH, SCREEN_HEIGHT);
self
.hook(Hyprland.active.workspace, (self) => {
self.attribute.workspace = Hyprland.active.workspace.id
self.attribute.updatePos(self);
})
// TODO: reduced updates using timeouts to reduce lag
// .hook(Hyprland.active.workspace, (self) => {
// self.attribute.workspace = Hyprland.active.workspace.id
// self.attribute.updatePos(self);
// })
// .hook(App, (box, name, visible) => { // Update on open
// if (self.attribute[name] === undefined) return;
// self.attribute[name] = (visible ? 1 : 0);

View file

@ -278,6 +278,7 @@ const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) =>
setup: (box) => {
box
// .hook(Hyprland, (box, name, data) => { // idk, does this make it lag occasionally?
// console.log(name)
// if (["changefloatingmode", "movewindow"].includes(name))
// box.attribute.update(box);
// }, 'event')

View file

@ -115,7 +115,7 @@ export const ChatGPTSettings = () => MarginRevealer({
ConfigToggle({
icon: 'description',
name: 'Assistant prompt',
desc: 'Tells ChatGPT\n 1. It\'s a sidebar assistant on Linux\n 2. Be short and concise\n 3. Use markdown features extensively\nLeave this off for a vanilla ChatGPT experience.',
desc: 'Tells ChatGPT to be brief,\nuse bullet points, and let\nit know it\'s a sidebar assistant',
initValue: ChatGPT.assistantPrompt,
onChange: (self, newValue) => {
ChatGPT.assistantPrompt = newValue;