forked from Shinonome/dots-hyprland
fakeScreenRounding=false -> corners when not fullscreen (#248)
This commit is contained in:
@@ -56,13 +56,13 @@ const Windows = () => [
|
|||||||
Session(),
|
Session(),
|
||||||
// forMonitors(Bar),
|
// forMonitors(Bar),
|
||||||
...(userOptions.appearance.fakeScreenRounding ? [
|
...(userOptions.appearance.fakeScreenRounding ? [
|
||||||
forMonitors((id) => Corner(id, 'top left')),
|
forMonitors((id) => Corner(id, 'top left', true)),
|
||||||
forMonitors((id) => Corner(id, 'top right')),
|
forMonitors((id) => Corner(id, 'top right', true)),
|
||||||
forMonitors((id) => Corner(id, 'bottom left')),
|
|
||||||
forMonitors((id) => Corner(id, 'bottom right')),
|
|
||||||
forMonitors(BarCornerTopleft),
|
|
||||||
forMonitors(BarCornerTopright),
|
|
||||||
] : []),
|
] : []),
|
||||||
|
forMonitors((id) => Corner(id, 'bottom left', userOptions.appearance.fakeScreenRounding)),
|
||||||
|
forMonitors((id) => Corner(id, 'bottom right', userOptions.appearance.fakeScreenRounding)),
|
||||||
|
forMonitors(BarCornerTopleft),
|
||||||
|
forMonitors(BarCornerTopright),
|
||||||
forMonitors(Click2Close),
|
forMonitors(Click2Close),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ import Widget from 'resource:///com/github/Aylur/ags/widget.js';
|
|||||||
import { enableClickthrough } from "../.widgetutils/clickthrough.js";
|
import { enableClickthrough } from "../.widgetutils/clickthrough.js";
|
||||||
import { RoundedCorner } from "../.commonwidgets/cairo_roundedcorner.js";
|
import { RoundedCorner } from "../.commonwidgets/cairo_roundedcorner.js";
|
||||||
|
|
||||||
export default (monitor = 0, where = 'bottom left') => {
|
export default (monitor = 0, where = 'bottom left', useOverlayLayer = true) => {
|
||||||
const positionString = where.replace(/\s/, ""); // remove space
|
const positionString = where.replace(/\s/, ""); // remove space
|
||||||
return Widget.Window({
|
return Widget.Window({
|
||||||
monitor,
|
monitor,
|
||||||
name: `corner${positionString}${monitor}`,
|
name: `corner${positionString}${monitor}`,
|
||||||
layer: 'overlay',
|
layer: useOverlayLayer ? 'overlay' : 'top',
|
||||||
anchor: where.split(' '),
|
anchor: where.split(' '),
|
||||||
exclusivity: 'ignore',
|
exclusivity: 'ignore',
|
||||||
visible: true,
|
visible: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user