parent
99ea57a669
commit
650a8c70fa
7 changed files with 80 additions and 88 deletions
devices/wim/config/ags/ts
|
@ -44,7 +44,6 @@ export const CoverArt = (
|
|||
props: CenterBoxProps,
|
||||
) => CenterBox({
|
||||
...props,
|
||||
// @ts-expect-error
|
||||
vertical: true,
|
||||
|
||||
attribute: {
|
||||
|
|
|
@ -38,36 +38,26 @@ const Center = (
|
|||
|
||||
children: [
|
||||
CenterBox({
|
||||
// @ts-expect-error
|
||||
vertical: true,
|
||||
|
||||
children: [
|
||||
Box({
|
||||
class_name: 'metadata',
|
||||
vertical: true,
|
||||
hpack: 'start',
|
||||
vpack: 'center',
|
||||
hexpand: true,
|
||||
start_widget: Box({
|
||||
class_name: 'metadata',
|
||||
vertical: true,
|
||||
hpack: 'start',
|
||||
vpack: 'center',
|
||||
hexpand: true,
|
||||
|
||||
children: [
|
||||
mpris.TitleLabel(player),
|
||||
mpris.ArtistLabel(player),
|
||||
],
|
||||
}),
|
||||
null,
|
||||
null,
|
||||
],
|
||||
children: [
|
||||
mpris.TitleLabel(player),
|
||||
mpris.ArtistLabel(player),
|
||||
],
|
||||
}),
|
||||
}),
|
||||
|
||||
CenterBox({
|
||||
// @ts-expect-error
|
||||
vertical: true,
|
||||
|
||||
children: [
|
||||
null,
|
||||
mpris.PlayPauseButton(player, colors),
|
||||
null,
|
||||
],
|
||||
center_widget: mpris.PlayPauseButton(player, colors),
|
||||
}),
|
||||
|
||||
],
|
||||
|
|
|
@ -37,8 +37,8 @@ const NotificationIcon = (notif: NotifObj) => {
|
|||
console.log(box);
|
||||
};
|
||||
|
||||
if (notif._appEntry && Applications.query(notif._appEntry).length > 0) {
|
||||
const app = Applications.query(notif._appEntry)[0];
|
||||
if (notif.app_entry && Applications.query(notif.app_entry).length > 0) {
|
||||
const app = Applications.query(notif.app_entry)[0];
|
||||
|
||||
let wmClass = app.app.get_string('StartupWMClass');
|
||||
|
||||
|
@ -109,13 +109,13 @@ const NotificationIcon = (notif: NotifObj) => {
|
|||
|
||||
let icon = 'dialog-information-symbolic';
|
||||
|
||||
if (lookUpIcon(notif._appIcon)) {
|
||||
icon = notif._appIcon;
|
||||
if (lookUpIcon(notif.app_icon)) {
|
||||
icon = notif.app_icon;
|
||||
}
|
||||
|
||||
|
||||
if (notif._appEntry && lookUpIcon(notif._appEntry)) {
|
||||
icon = notif._appEntry;
|
||||
if (notif.app_entry && lookUpIcon(notif.app_entry)) {
|
||||
icon = notif.app_entry;
|
||||
}
|
||||
|
||||
|
||||
|
@ -158,7 +158,7 @@ export const Notification = ({
|
|||
'Spotify',
|
||||
];
|
||||
|
||||
if (BlockedApps.find((app) => app === notif._appName)) {
|
||||
if (BlockedApps.find((app) => app === notif.app_name)) {
|
||||
notif.close();
|
||||
|
||||
return;
|
||||
|
|
|
@ -47,11 +47,11 @@ const LCTRL_CODE = 29;
|
|||
// Types
|
||||
import { Variable as Var } from 'types/variable.ts';
|
||||
type Key = {
|
||||
keytype: 'normal',
|
||||
keytype: string,
|
||||
label: string,
|
||||
labelShift?: string,
|
||||
labelAltGr?: string,
|
||||
shape: 'normal' | 'modkey',
|
||||
shape: string,
|
||||
keycode: number
|
||||
};
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ import CursorBox from './misc/cursorbox.ts';
|
|||
|
||||
const PowermenuWidget = () => CenterBox({
|
||||
class_name: 'powermenu',
|
||||
// @ts-expect-error
|
||||
vertical: false,
|
||||
|
||||
start_widget: CursorBox({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue