mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-03 06:12:51 +00:00
feat: integrate system config
This commit is contained in:
40
home/desktops/hyprland/ags/windows/corners.js
Normal file
40
home/desktops/hyprland/ags/windows/corners.js
Normal file
@@ -0,0 +1,40 @@
|
||||
import { Widget } from '../imports.js';
|
||||
import { RoundedCorner } from "../modules/lib/roundedcorner.js";
|
||||
|
||||
export const CornerTopleft = monitor => Widget.Window({
|
||||
name: 'cornertl',
|
||||
layer: 'top',
|
||||
monitor,
|
||||
anchor: ['top', 'left'],
|
||||
exclusive: false,
|
||||
visible: true,
|
||||
child: RoundedCorner('topleft', { className: monitor === 1 ? 'corner' : 'corner-black', }),
|
||||
});
|
||||
export const CornerTopright = monitor => Widget.Window({
|
||||
name: 'cornertr',
|
||||
layer: 'top',
|
||||
monitor,
|
||||
anchor: ['top', 'right'],
|
||||
exclusive: false,
|
||||
visible: true,
|
||||
child: RoundedCorner('topright', { className: monitor === 1 ? 'corner' : 'corner-black', }),
|
||||
});
|
||||
export const CornerBottomleft = monitor => Widget.Window({
|
||||
name: 'cornerbl',
|
||||
layer: 'top',
|
||||
monitor,
|
||||
anchor: ['bottom', 'left'],
|
||||
exclusive: false,
|
||||
visible: true,
|
||||
child: RoundedCorner('bottomleft', { className: 'corner-black', }),
|
||||
});
|
||||
export const CornerBottomright = monitor => Widget.Window({
|
||||
name: 'cornerbr',
|
||||
layer: 'top',
|
||||
monitor,
|
||||
anchor: ['bottom', 'right'],
|
||||
exclusive: false,
|
||||
visible: true,
|
||||
child: RoundedCorner('bottomright', { className: 'corner-black', }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user