forked from Shinonome/dots-hyprland
config option for fake screen round corners
This commit is contained in:
@@ -55,18 +55,20 @@ const Windows = () => [
|
|||||||
forMonitors(Osk),
|
forMonitors(Osk),
|
||||||
Session(),
|
Session(),
|
||||||
// forMonitors(Bar),
|
// forMonitors(Bar),
|
||||||
forMonitors((id) => Corner(id, 'top left')),
|
...(userOptions.appearance.fakeScreenRounding ? [
|
||||||
forMonitors((id) => Corner(id, 'top right')),
|
forMonitors((id) => Corner(id, 'top left')),
|
||||||
forMonitors((id) => Corner(id, 'bottom left')),
|
forMonitors((id) => Corner(id, 'top right')),
|
||||||
forMonitors((id) => Corner(id, 'bottom right')),
|
forMonitors((id) => Corner(id, 'bottom left')),
|
||||||
forMonitors(BarCornerTopleft),
|
forMonitors((id) => Corner(id, 'bottom right')),
|
||||||
forMonitors(BarCornerTopright),
|
forMonitors(BarCornerTopleft),
|
||||||
|
forMonitors(BarCornerTopright),
|
||||||
|
] : []),
|
||||||
forMonitors(Click2Close),
|
forMonitors(Click2Close),
|
||||||
];
|
];
|
||||||
|
|
||||||
const CLOSE_ANIM_TIME = 210; // Longer than actual anim time to make sure widgets animate fully
|
const CLOSE_ANIM_TIME = 210; // Longer than actual anim time to make sure widgets animate fully
|
||||||
const closeWindowDelays = {}; // For animations
|
const closeWindowDelays = {}; // For animations
|
||||||
for(let i = 0; i < (Gdk.Display.get_default()?.get_n_monitors() || 1); i++) {
|
for (let i = 0; i < (Gdk.Display.get_default()?.get_n_monitors() || 1); i++) {
|
||||||
closeWindowDelays[`osk${i}`] = CLOSE_ANIM_TIME;
|
closeWindowDelays[`osk${i}`] = CLOSE_ANIM_TIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ let configOptions = {
|
|||||||
'keyboardUseFlag': false, // Use flag emoji instead of abbreviation letters
|
'keyboardUseFlag': false, // Use flag emoji instead of abbreviation letters
|
||||||
'layerSmoke': false,
|
'layerSmoke': false,
|
||||||
'layerSmokeStrength': 0.2,
|
'layerSmokeStrength': 0.2,
|
||||||
|
'fakeScreenRounding': true,
|
||||||
},
|
},
|
||||||
'apps': {
|
'apps': {
|
||||||
'bluetooth': "blueberry",
|
'bluetooth': "blueberry",
|
||||||
|
|||||||
Reference in New Issue
Block a user