forked from Shinonome/dots-hyprland
ags: sync
This commit is contained in:
@@ -90,7 +90,7 @@ const BarBattery = () => Box({
|
|||||||
transitionDuration: 150,
|
transitionDuration: 150,
|
||||||
revealChild: false,
|
revealChild: false,
|
||||||
transition: 'slide_right',
|
transition: 'slide_right',
|
||||||
child: MaterialIcon('bolt', 'norm'),
|
child: MaterialIcon('bolt', 'norm', {tooltipText: "Charging"}),
|
||||||
setup: (self) => self.hook(Battery, revealer => {
|
setup: (self) => self.hook(Battery, revealer => {
|
||||||
self.revealChild = Battery.charging;
|
self.revealChild = Battery.charging;
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -35,10 +35,11 @@ export default (monitor = 0) => {
|
|||||||
setup: (self) => {
|
setup: (self) => {
|
||||||
self.set_size_request(SCREEN_WIDTH, SCREEN_HEIGHT);
|
self.set_size_request(SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||||
self
|
self
|
||||||
.hook(Hyprland.active.workspace, (self) => {
|
// TODO: reduced updates using timeouts to reduce lag
|
||||||
self.attribute.workspace = Hyprland.active.workspace.id
|
// .hook(Hyprland.active.workspace, (self) => {
|
||||||
self.attribute.updatePos(self);
|
// self.attribute.workspace = Hyprland.active.workspace.id
|
||||||
})
|
// self.attribute.updatePos(self);
|
||||||
|
// })
|
||||||
// .hook(App, (box, name, visible) => { // Update on open
|
// .hook(App, (box, name, visible) => { // Update on open
|
||||||
// if (self.attribute[name] === undefined) return;
|
// if (self.attribute[name] === undefined) return;
|
||||||
// self.attribute[name] = (visible ? 1 : 0);
|
// self.attribute[name] = (visible ? 1 : 0);
|
||||||
|
|||||||
@@ -278,6 +278,7 @@ const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) =>
|
|||||||
setup: (box) => {
|
setup: (box) => {
|
||||||
box
|
box
|
||||||
// .hook(Hyprland, (box, name, data) => { // idk, does this make it lag occasionally?
|
// .hook(Hyprland, (box, name, data) => { // idk, does this make it lag occasionally?
|
||||||
|
// console.log(name)
|
||||||
// if (["changefloatingmode", "movewindow"].includes(name))
|
// if (["changefloatingmode", "movewindow"].includes(name))
|
||||||
// box.attribute.update(box);
|
// box.attribute.update(box);
|
||||||
// }, 'event')
|
// }, 'event')
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export const ChatGPTSettings = () => MarginRevealer({
|
|||||||
ConfigToggle({
|
ConfigToggle({
|
||||||
icon: 'description',
|
icon: 'description',
|
||||||
name: 'Assistant prompt',
|
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,
|
initValue: ChatGPT.assistantPrompt,
|
||||||
onChange: (self, newValue) => {
|
onChange: (self, newValue) => {
|
||||||
ChatGPT.assistantPrompt = newValue;
|
ChatGPT.assistantPrompt = newValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user