adjust config options

This commit is contained in:
end-4
2024-04-18 18:36:56 +07:00
parent 17d93cd0f2
commit 28731a2316
2 changed files with 5 additions and 8 deletions
@@ -77,24 +77,21 @@ let configOptions = {
'shown': 10,
},
'dock': {
'enabled': false,
'enabled': true,
// Threshold for hover to trigger dock display
'hoverMinHeight': 5,
'pinnedApps': ['firefox', 'org.gnome.Nautilus'],
// top or bottom
'layer': 'top',
// Dock will move to other monitor along with focus if enabled
'monitorExclusivity': true,
'monitorExclusivity': true, // Dock will move to other monitor along with focus if enabled
// It's useful to keep the icons consistent, which is useful if you're OCD :)
'searchPinnedAppIcons': false,
// available: client_added, client_move, workspace_active, client_active
'trigger': ['client-added', 'client-removed',
'workspace-active'],
'trigger': ['client-added', 'client-removed'],
// Automatically hide dock after a period of time
// after a trigger has been triggered.
// Time in milliseconds. empty if always displays.
// { 'trigger': 'client-added', interval: 1000, }
'autoHidden': [
'autoHide': [
{
'trigger': 'client-added',
'interval': 2000,
+1 -1
View File
@@ -327,7 +327,7 @@ export default (monitor = 0) => {
const hidden = userOptions
.dock
.autoHidden.find(e => e["trigger"] === trigger)
.autoHide.find(e => e["trigger"] === trigger)
if (hidden) {
let id = Utils.timeout(hidden.interval, () => {