refactor(ags): rename some imports
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
524a2a6de9
commit
b915591b26
5 changed files with 17 additions and 16 deletions
|
@ -9,13 +9,13 @@ import BgLayer from '../widgets/bg-layer/main';
|
||||||
import Calendar from '../widgets/date/binto';
|
import Calendar from '../widgets/date/binto';
|
||||||
import Clipboard from '../widgets/clipboard/main';
|
import Clipboard from '../widgets/clipboard/main';
|
||||||
import { NotifPopups, NotifCenter } from '../widgets/notifs/binto';
|
import { NotifPopups, NotifCenter } from '../widgets/notifs/binto';
|
||||||
import OSD from '../widgets/osd/main';
|
import OnScreenDisplay from '../widgets/on-screen-display/main';
|
||||||
import PowerMenu from '../widgets/powermenu/main';
|
import PowerMenu from '../widgets/powermenu/main';
|
||||||
import Screenshot from '../widgets/screenshot/main';
|
import Screenshot from '../widgets/screenshot/main';
|
||||||
|
|
||||||
import { closeAll, perMonitor } from '../lib';
|
import { closeAll, perMonitor } from '../lib';
|
||||||
import Brightness from '../services/brightness';
|
import Brightness from '../services/brightness';
|
||||||
import GSR from '../services/gpu-screen-recorder';
|
import GpuScreenRecorder from '../services/gpu-screen-recorder';
|
||||||
import MonitorClicks from '../services/monitor-clicks';
|
import MonitorClicks from '../services/monitor-clicks';
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ export default () => {
|
||||||
respond('osd popped up');
|
respond('osd popped up');
|
||||||
}
|
}
|
||||||
else if (request.startsWith('save-replay')) {
|
else if (request.startsWith('save-replay')) {
|
||||||
GSR.get_default().saveReplay();
|
GpuScreenRecorder.get_default().saveReplay();
|
||||||
respond('saving replay');
|
respond('saving replay');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -57,12 +57,12 @@ export default () => {
|
||||||
Clipboard();
|
Clipboard();
|
||||||
NotifPopups();
|
NotifPopups();
|
||||||
NotifCenter();
|
NotifCenter();
|
||||||
OSD();
|
OnScreenDisplay();
|
||||||
PowerMenu();
|
PowerMenu();
|
||||||
Screenshot();
|
Screenshot();
|
||||||
|
|
||||||
Brightness.get_default({ caps: 'input2::capslock' });
|
Brightness.get_default({ caps: 'input2::capslock' });
|
||||||
GSR.get_default();
|
GpuScreenRecorder.get_default();
|
||||||
MonitorClicks.get_default();
|
MonitorClicks.get_default();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,8 +11,8 @@ import Clipboard from '../widgets/clipboard/main';
|
||||||
import Corners from '../widgets/corners/main';
|
import Corners from '../widgets/corners/main';
|
||||||
import IconBrowser from '../widgets/icon-browser/main';
|
import IconBrowser from '../widgets/icon-browser/main';
|
||||||
import { NotifPopups, NotifCenter } from '../widgets/notifs/wim';
|
import { NotifPopups, NotifCenter } from '../widgets/notifs/wim';
|
||||||
import OSD from '../widgets/osd/main';
|
import OnScreenDisplay from '../widgets/on-screen-display/main';
|
||||||
import OSK from '../widgets/on-screen-keyboard/main';
|
import OnScreenKeyboard from '../widgets/on-screen-keyboard/main';
|
||||||
import PowerMenu from '../widgets/powermenu/main';
|
import PowerMenu from '../widgets/powermenu/main';
|
||||||
import Screenshot from '../widgets/screenshot/main';
|
import Screenshot from '../widgets/screenshot/main';
|
||||||
|
|
||||||
|
@ -65,8 +65,8 @@ export default () => {
|
||||||
IconBrowser();
|
IconBrowser();
|
||||||
NotifPopups();
|
NotifPopups();
|
||||||
NotifCenter();
|
NotifCenter();
|
||||||
OSD();
|
OnScreenDisplay();
|
||||||
OSK();
|
OnScreenKeyboard();
|
||||||
PowerMenu();
|
PowerMenu();
|
||||||
Screenshot();
|
Screenshot();
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ const notifySend = ({
|
||||||
});
|
});
|
||||||
|
|
||||||
@register()
|
@register()
|
||||||
export default class GSR extends GObject.Object {
|
export default class GpuScreenRecorder extends GObject.Object {
|
||||||
private _lastNotifID: number | undefined;
|
private _lastNotifID: number | undefined;
|
||||||
|
|
||||||
public constructor() {
|
public constructor() {
|
||||||
|
@ -83,7 +83,7 @@ export default class GSR extends GObject.Object {
|
||||||
['gsr-start'],
|
['gsr-start'],
|
||||||
(path) => {
|
(path) => {
|
||||||
if (!this._lastNotifID) {
|
if (!this._lastNotifID) {
|
||||||
console.error('[GSR] ID of warning notif not found');
|
console.error('[GpuScreenRecorder] ID of warning notif not found');
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this._onSaved(path);
|
this._onSaved(path);
|
||||||
|
@ -101,14 +101,14 @@ export default class GSR extends GObject.Object {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static _default: InstanceType<typeof GSR> | undefined;
|
private static _default: InstanceType<typeof GpuScreenRecorder> | undefined;
|
||||||
|
|
||||||
public static get_default() {
|
public static get_default() {
|
||||||
if (!GSR._default) {
|
if (!GpuScreenRecorder._default) {
|
||||||
GSR._default = new GSR();
|
GpuScreenRecorder._default = new GpuScreenRecorder();
|
||||||
}
|
}
|
||||||
|
|
||||||
return GSR._default;
|
return GpuScreenRecorder._default;
|
||||||
}
|
}
|
||||||
|
|
||||||
public saveReplay() {
|
public saveReplay() {
|
||||||
|
@ -122,7 +122,7 @@ export default class GSR extends GObject.Object {
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(`[GSR save-replay] ${err}`);
|
console.error(`[GpuScreenRecorder save-replay] ${err}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ import Brightness from '../../services/brightness';
|
||||||
declare global {
|
declare global {
|
||||||
function popup_osd(osd: string): void;
|
function popup_osd(osd: string): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
@register()
|
@register()
|
||||||
class ProgressBar extends astalify(Gtk.ProgressBar) {
|
class ProgressBar extends astalify(Gtk.ProgressBar) {
|
||||||
constructor(props: ConstructProps<
|
constructor(props: ConstructProps<
|
Loading…
Reference in a new issue