forked from Shinonome/dots-hyprland
remove unecessary array spread; rename hidden dock thickness option
This commit is contained in:
@@ -54,7 +54,7 @@ const Windows = () => [
|
|||||||
SideRight(),
|
SideRight(),
|
||||||
forMonitors(Osk),
|
forMonitors(Osk),
|
||||||
Session(),
|
Session(),
|
||||||
...(userOptions.dock.enabled ? [forMonitors(Dock)] : []),
|
userOptions.dock.enabled ? forMonitors(Dock) : null,
|
||||||
// forMonitors(Bar),
|
// forMonitors(Bar),
|
||||||
...(userOptions.appearance.fakeScreenRounding ? [
|
...(userOptions.appearance.fakeScreenRounding ? [
|
||||||
forMonitors((id) => Corner(id, 'top left', true)),
|
forMonitors((id) => Corner(id, 'top left', true)),
|
||||||
|
|||||||
@@ -78,8 +78,7 @@ let configOptions = {
|
|||||||
},
|
},
|
||||||
'dock': {
|
'dock': {
|
||||||
'enabled': true,
|
'enabled': true,
|
||||||
// Threshold for hover to trigger dock display
|
'hiddenThickness': 5,
|
||||||
'hoverMinHeight': 5,
|
|
||||||
'pinnedApps': ['firefox', 'org.gnome.Nautilus'],
|
'pinnedApps': ['firefox', 'org.gnome.Nautilus'],
|
||||||
'layer': 'top',
|
'layer': 'top',
|
||||||
'monitorExclusivity': true, // Dock will move to other monitor along with focus if enabled
|
'monitorExclusivity': true, // Dock will move to other monitor along with focus if enabled
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ export default (monitor = 0) => {
|
|||||||
},
|
},
|
||||||
child: Box({
|
child: Box({
|
||||||
homogeneous: true,
|
homogeneous: true,
|
||||||
css: `min-height: ${userOptions.dock.hoverMinHeight}px;`,
|
css: `min-height: ${userOptions.dock.hiddenThickness}px;`,
|
||||||
children: [
|
children: [
|
||||||
dockRevealer,
|
dockRevealer,
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user