adjust config options

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